:root {
    /* Типографика: Alegreya Sans — тело/UI; Yeseva One подключается на главной для display */
    --font-body: "Alegreya Sans", "Manrope", system-ui, sans-serif;
    --font-display: "Yeseva One", Georgia, "Times New Roman", serif;
    --bg: #f6efde;
    --paper: #fff7e8;
    --ink: #24160f;
    --ink-soft: #4d3a2e;
    --muted: #6e5946;
    --line: #e2c9a5;
    --line-strong: #d8bc93;
    --accent: #f7bd57;
    --accent-soft: #ffe2a4;
    --mint: #b8dece;
    --blue: #bcc6ef;
    --card-shadow: 0 16px 28px rgba(88, 53, 24, 0.08);
    --radius-xl: 34px;
    --radius-lg: 28px;
    --radius-md: 20px;
    --community-strip-height: 38px;
    --header-height: 82px;
    /* Отступ контента под фиксированную связку «полоса сообществ + шапка» */
    --main-content-top-gap: 12px;
    --main-padding-top: calc(var(--community-strip-height) + var(--header-height) + var(--main-content-top-gap));
    --main-padding-top-seo-extra: 20px;
    --space-desktop-xl: 110px;
    --space-desktop-lg: 92px;
    --space-desktop-md: 72px;
    --space-desktop-sm: 44px;
    --space-desktop-xs: 24px;
}

* {
    box-sizing: border-box;
}

/* Глобальный масштаб текста: +35% к базовому размеру браузера для всего, что задано в rem/em. */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 110%;
}

[id] {
    scroll-margin-top: calc(var(--main-padding-top) + 4px);
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.58;
    background-color: var(--bg);
    background-image: radial-gradient(rgba(160, 121, 73, 0.13) 0.65px, transparent 0.65px);
    background-size: 11px 11px;
    overflow-x: hidden;
    width: 100%;
}

/* Текстовые ссылки: палитра и подчёркивание вместо синего браузера (навигация и кнопки переопределяют ниже) */
a {
    color: var(--ink-soft);
    text-decoration: underline;
    text-decoration-color: rgba(126, 96, 72, 0.42);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    text-decoration-skip-ink: auto;
    transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

a:visited {
    color: var(--ink-soft);
}

a:hover {
    color: var(--ink);
    text-decoration-color: rgba(77, 58, 46, 0.55);
}

a:active {
    color: var(--ink);
}

a:focus-visible {
    outline: 2px solid rgba(200, 140, 55, 0.92);
    outline-offset: 2px;
}

body.modal-open {
    overflow: hidden;
}

main,
section {
    overflow-x: clip;
    max-width: 100%;
}

.cabinet-page main,
.cabinet-page section {
    overflow: visible;
}

.legal-page main,
.legal-page section {
    overflow: visible;
}

.admin-page main,
.admin-page section {
    overflow: visible;
}

.noise,
.ambient {
    display: none;
}

.container {
    width: min(1160px, calc(100% - 2.2rem));
    margin: 0 auto;
}

.section {
    padding: var(--space-desktop-lg) 0;
}

/* Delay layout/paint work for offscreen blocks on long pages. */
.section.reveal {
    content-visibility: auto;
    contain-intrinsic-size: 900px;
}

.community-strip {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 70;
    min-height: var(--community-strip-height);
    border-bottom: 1px solid rgba(170, 130, 88, 0.2);
    background: rgba(248, 239, 220, 0.96);
    backdrop-filter: blur(8px);
}

.community-strip__inner {
    min-height: var(--community-strip-height);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.87rem;
    color: #4a3324;
}

.community-strip__text {
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    max-width: calc(100vw - 190px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.community-strip__links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.community-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(170, 122, 75, 0.3);
    background: rgba(255, 249, 236, 0.95);
    color: #2f2016;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.community-chip img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 4px;
}

.community-chip:hover {
    background: rgba(255, 238, 199, 0.98);
}

.site-header {
    position: fixed;
    top: var(--community-strip-height);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
    background: rgba(246, 239, 222, 0.9);
    border-bottom: 1px solid rgba(170, 130, 88, 0.23);
    backdrop-filter: blur(10px);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

main {
    padding-top: var(--main-padding-top);
}

.site-header.is-scrolled {
    background: rgba(246, 239, 222, 0.96);
    box-shadow: 0 8px 18px rgba(87, 52, 25, 0.09);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: var(--ink);
    text-decoration: none;
    font-family: "Alegreya Sans", sans-serif;
    font-size: clamp(1rem, 2vw, 1.24rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.brand-bee {
    width: 42px;
    height: 42px;
}

.brand-bee g {
    fill: none;
    stroke: #111111;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-item--has-dropdown {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: auto;
    right: 0;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    min-width: min(280px, 72vw);
    background: rgba(255, 249, 236, 0.98);
    border: 1px solid rgba(170, 130, 88, 0.25);
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(87, 52, 25, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    z-index: 60;
}

.nav-item--has-dropdown:hover .nav-dropdown,
.nav-item--has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 0.55rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-dropdown a:hover {
    background: rgba(247, 189, 87, 0.18);
    color: var(--ink);
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.account-link {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(170, 119, 61, 0.34);
    background: rgba(255, 247, 233, 0.9);
    color: #2f2016;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.account-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 236, 188, 0.95);
    border-color: rgba(167, 119, 62, 0.6);
}

.account-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(170, 119, 61, 0.38);
    background: rgba(255, 247, 233, 0.88);
    color: var(--ink);
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #3f2d1f;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
    display: none;
}

.mobile-nav-book {
    display: none;
}

.hero {
    padding-top: 56px;
    padding-bottom: 76px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr minmax(360px, 510px);
    gap: 30px;
    align-items: end;
}

.overline {
    margin: 0;
    display: inline-flex;
    padding: 8px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 248, 232, 0.8);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b523f;
}

.hero-copy h1 {
    margin: 16px 0 0;
    max-width: 10ch;
    font-family: "Alegreya Sans", sans-serif;
    font-size: clamp(2.16rem, 5.9vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.accent-word {
    position: relative;
    display: inline-block;
}

.accent-word::after {
    content: "";
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: 0.1em;
    height: 0.42em;
    border-radius: 999px;
    background: rgba(249, 205, 102, 0.55);
    z-index: -1;
}

.hero-copy p {
    margin: 16px 0 0;
    max-width: 58ch;
    color: var(--ink-soft);
    font-size: 1.04rem;
}

.lead {
    color: #2f2218;
    font-size: 1.18rem;
    font-weight: 700;
}

.lead-end {
    font-weight: 800;
    color: #2b1d13;
}

.actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 999px;
    padding: 0 24px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:focus-visible {
    outline: 2px solid rgba(200, 140, 55, 0.95);
    outline-offset: 3px;
}

.btn:focus:not(:focus-visible) {
    outline: none;
}

.btn-solid {
    color: var(--ink);
    background: var(--accent);
    border: 1px solid rgba(166, 117, 57, 0.32);
    box-shadow: 0 10px 16px rgba(109, 73, 39, 0.16);
}

.btn-outline {
    color: var(--ink);
    background: rgba(255, 247, 233, 0.8);
    border: 1px solid var(--line-strong);
}

.btn-chip {
    min-height: 44px;
    padding-inline: 18px;
    color: var(--ink);
    background: var(--accent);
    border: 1px solid rgba(166, 117, 57, 0.32);
    box-shadow: 0 10px 16px rgba(109, 73, 39, 0.16);
    font-weight: 900;
    opacity: 1;
}

.btn-large {
    min-height: 58px;
    padding-inline: 34px;
}

.hero-art-wrap {
    display: grid;
    gap: 12px;
    overflow: hidden;
}

.hero-art {
    --parallax-x: 0px;
    --parallax-y: 0px;
    position: relative;
    min-height: 468px;
    border-radius: 24px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 247, 233, 0.88);
    box-shadow: none;
    overflow: hidden;
    transform: translate3d(var(--parallax-x), var(--parallax-y), 0);
}

.hero-main-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-art::before,
.hero-art::after {
    content: none;
}

.hero-art::before {
    width: 184px;
    height: 184px;
    top: 18px;
    right: 16px;
    background: rgba(247, 189, 87, 0.55);
}

.hero-art::after {
    width: 126px;
    height: 126px;
    left: 22px;
    bottom: 32px;
    background: rgba(184, 222, 206, 0.62);
}

.shape {
    position: absolute;
    z-index: 1;
}

.shape-star {
    width: 74px;
    height: 74px;
    left: 22px;
    top: 24px;
    background: #ffe59f;
    clip-path: polygon(50% 0%, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0% 50%, 39% 36%);
    border: 1px solid rgba(170, 123, 64, 0.34);
}

.shape-ribbon {
    right: 22px;
    bottom: 20px;
    width: 94px;
    height: 94px;
    border-radius: 30px 22px 34px 20px / 24px 30px 20px 34px;
    background: rgba(188, 198, 239, 0.72);
    border: 1px solid rgba(150, 139, 194, 0.4);
    transform: rotate(16deg);
}

.hive-cube {
    --parallax-x: 0px;
    --parallax-y: 0px;
    position: absolute;
    width: 198px;
    height: 198px;
    left: 12%;
    top: 18%;
    transform: translate3d(var(--parallax-x), var(--parallax-y), 0) rotateX(56deg) rotateZ(45deg);
    transform-style: preserve-3d;
    z-index: 2;
}

.face {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(168, 122, 66, 0.45);
}

.face.top {
    background: #f7c35c;
}

.face.left {
    width: 124px;
    background: #efb64a;
    transform: rotateY(90deg) translateZ(-62px);
}

.face.right {
    height: 124px;
    background: #fbd98a;
    transform: rotateX(90deg) translateZ(-62px);
}

.honey-jar {
    --parallax-x: 0px;
    --parallax-y: 0px;
    position: absolute;
    width: 178px;
    height: 212px;
    right: 12%;
    top: 24%;
    border-radius: 50px 44px 40px 46px / 44px 40px 42px 48px;
    border: 1px solid rgba(166, 117, 59, 0.45);
    background: #f8c246;
    transform: translate3d(var(--parallax-x), var(--parallax-y), 0);
    z-index: 2;
}

.jar-lid {
    position: absolute;
    top: -22px;
    left: 11%;
    width: 78%;
    height: 30px;
    border-radius: 16px;
    border: 1px solid rgba(167, 118, 58, 0.46);
    background: #fee29a;
}

.jar-glow {
    position: absolute;
    top: 14%;
    left: 16%;
    width: 22px;
    height: 118px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.44);
}

.jar-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120px;
    height: 120px;
    display: block;
    border-radius: 50%;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 8px 14px rgba(18, 12, 8, 0.26);
    transform: translate(-50%, -50%);
}

.jar-badge svg {
    width: 100%;
    height: 100%;
    display: block;
}

.jar-badge text {
    fill: #ffffff;
    font-family: "Alegreya Sans", "Manrope", sans-serif;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.jar-badge .bee-icon {
    fill: none;
    stroke: #ffffff;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hex-cloud {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hex-cloud li {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 56px;
    aspect-ratio: 1;
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
    border: 1px solid rgba(160, 115, 64, 0.44);
    background: rgba(255, 228, 159, 0.82);
    animation: floatHex 4.2s ease-in-out infinite;
    animation-delay: var(--d);
}

@keyframes floatHex {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero-badges {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.badge-card {
    border-radius: 24px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 247, 233, 0.88);
    padding: 12px 12px;
    box-shadow: none;
}

.badge-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.81rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.badge-card strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-family: "Alegreya Sans", sans-serif;
    font-size: 0.84rem;
    line-height: 1.1;
    white-space: nowrap;
}

.badge-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(164, 117, 67, 0.32);
    background: rgba(247, 189, 87, 0.2);
    flex-shrink: 0;
}

.badge-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #2b1d13;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ticker {
    overflow: hidden;
    contain: paint;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    background: rgba(251, 208, 108, 0.64);
    padding: 15px 0;
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
    flex: 0 0 auto;
    min-width: max-content;
    padding-right: 24px;
}

.ticker-marquee {
    display: flex;
    width: max-content;
    white-space: nowrap;
    animation: tickerMove 16s linear infinite;
    will-change: transform;
}

.ticker-track span {
    font-family: "Alegreya Sans", sans-serif;
    font-size: clamp(0.95rem, 2.2vw, 1.34rem);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #4e3625;
}

.ticker-bee {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.ticker-bee g {
    fill: none;
    stroke: #4e3625;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes tickerMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-25%);
    }
}

.section-head {
    margin-bottom: 24px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.section-head h2,
.why-title h2,
.why-heading,
.panel h2,
.calm-box h2,
.cta-box h2 {
    margin: 0;
    font-family: "Alegreya Sans", sans-serif;
    line-height: 1.02;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.section-head h2,
.why-title h2,
.why-heading,
.panel h2,
.calm-box h2 {
    font-size: clamp(1.7rem, 4.2vw, 3rem);
}

.section-head p {
    margin: 0;
    max-width: 36ch;
    color: var(--muted);
    font-weight: 700;
}

.stats-lab .section-head p {
    max-width: 47ch;
}

#formats .section-head p {
    max-width: none;
    white-space: nowrap;
}

#formats .section-head h2 {
    white-space: nowrap;
    text-wrap: nowrap;
}

#home-articles .section-head {
    flex-wrap: wrap;
}

#home-articles .section-head p {
    max-width: none;
    white-space: nowrap;
}

#formats {
    padding-top: var(--space-desktop-lg);
    padding-bottom: var(--space-desktop-sm);
}

#formats + .gifting {
    padding-top: 12px;
}

.client-value {
    padding-top: var(--space-desktop-md);
    padding-bottom: var(--space-desktop-sm);
    overflow: visible;
}

.client-value.reveal {
    content-visibility: visible;
    contain: none;
}

#formats.reveal,
.gifting.reveal,
.calm.reveal,
.apipuls.reveal,
.sensor-bridge.reveal,
.sensor-proof.reveal {
    content-visibility: visible;
    contain: none;
}

.client-value .container {
    overflow: visible;
}

.client-value-card {
    position: relative;
    overflow: visible;
    border-radius: 24px;
    border: 1px solid rgba(170, 122, 75, 0.22);
    background: rgba(255, 252, 246, 0.98);
    box-shadow: 0 20px 32px rgba(86, 56, 29, 0.09);
    padding: clamp(22px, 3.2vw, 34px);
}

.client-value-kicker {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #7a624c;
}

.client-value-card h2 {
    margin: 4px 0 0;
    font-family: "Alegreya Sans", sans-serif;
    font-size: clamp(1.45rem, 3.4vw, 2.2rem);
    line-height: 1.14;
    letter-spacing: -0.01em;
    max-width: 20ch;
}

.client-value-line-2 {
    display: inline;
}

.client-value-lead {
    margin: 16px 0 0;
    max-width: 78ch;
    color: rgba(52, 39, 29, 0.9);
    line-height: 1.64;
}

.client-value-list {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.client-value-list li {
    border-radius: 16px;
    border: 1px solid rgba(170, 122, 75, 0.2);
    background: #fffdf8;
    padding: 14px 16px;
}

.client-value-list strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #2f2118;
    font-size: 1rem;
}

.client-value-icon {
    width: 24px;
    height: 24px;
    position: relative;
    border-radius: 999px;
    border: 1px solid rgba(174, 124, 70, 0.35);
    background: rgba(255, 234, 182, 0.62);
    display: inline-block;
    flex-shrink: 0;
    line-height: 0;
    vertical-align: middle;
}

.client-value-icon svg {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 15px;
    height: 15px;
    display: block;
    transform: translate(-50%, -50%);
    fill: none;
    stroke: #6a4a2d;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-value-list span {
    display: block;
    margin-top: 7px;
    color: rgba(67, 50, 38, 0.88);
    line-height: 1.56;
}

.client-value-note {
    margin: 18px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(163, 117, 67, 0.42);
    background: rgba(255, 247, 228, 0.92);
    font-size: 0.92rem;
    font-weight: 800;
    color: #62452f;
}

.client-value-note-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.client-value-note-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #8b642f;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-value-fan {
    margin: 12px 0 6px;
    position: relative;
    height: 248px;
    overflow: visible;
}

.client-value-fan-card {
    position: absolute;
    width: min(420px, 84%);
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(165, 118, 69, 0.26);
    box-shadow: 0 14px 22px rgba(78, 52, 28, 0.15);
    background: #fff7e8;
}

.client-value-fan-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-value-fan-card-1 {
    left: 0;
    top: 8px;
    height: 224px;
    transform: rotate(-5deg);
    z-index: 1;
}

.client-value-fan-card-1 img {
    object-position: center 20%;
}

.client-value-fan-card-2 {
    left: 50%;
    top: 0;
    height: 236px;
    transform: translateX(-50%) rotate(1.5deg);
    z-index: 3;
}

.client-value-fan-card-3 {
    right: 0;
    top: 18px;
    height: 220px;
    transform: rotate(6deg);
    z-index: 2;
}

.media-lab {
    padding-top: var(--space-desktop-md);
    padding-bottom: var(--space-desktop-md);
}

.media-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 14px;
    align-items: stretch;
}

.placeholder {
    position: relative;
    border-radius: 24px;
    border: 1px dashed rgba(162, 117, 67, 0.48);
    background: rgba(255, 248, 234, 0.76);
    padding: 28px;
    overflow: hidden;
}

.media-layout .placeholder:nth-child(2) {
    border-radius: 24px;
}

.photo-strip .placeholder:nth-child(1) {
    border-radius: 24px;
}

.photo-strip .placeholder:nth-child(2) {
    border-radius: 24px;
}

.photo-strip .placeholder:nth-child(3) {
    border-radius: 24px;
}

.placeholder::after {
    display: none;
}

.placeholder-kicker {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7a624c;
}

.placeholder h3 {
    margin: 8px 0 0;
    font-size: 1.28rem;
    font-family: "Alegreya Sans", sans-serif;
    line-height: 1.15;
}

.placeholder p {
    margin: 10px 0 0;
    color: var(--ink-soft);
}

.placeholder-video {
    min-height: 320px;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border-style: solid;
    border-color: rgba(165, 118, 69, 0.24);
}

.placeholder-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: translate(-50%, -50%);
    border-radius: inherit;
}

.placeholder-video.is-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 248, 232, 0.46);
    z-index: 2;
    pointer-events: none;
}

.placeholder-video.is-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 36px;
    height: 36px;
    margin-left: -18px;
    margin-top: -18px;
    border-radius: 999px;
    border: 3px solid rgba(88, 62, 39, 0.2);
    border-top-color: rgba(88, 62, 39, 0.72);
    animation: spin 0.9s linear infinite;
    z-index: 3;
    pointer-events: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.placeholder-tag {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(163, 117, 67, 0.36);
    font-size: 0.82rem;
    font-weight: 700;
    color: #725844;
}

.placeholder-chart {
    min-height: 320px;
}

.chart-gain {
    margin-top: 18px;
    border-radius: 16px;
    border: 1px solid rgba(169, 121, 71, 0.28);
    background: rgba(255, 251, 241, 0.76);
    padding: 12px;
}

.chart-gain-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.chart-gain-head strong {
    font-family: "Alegreya Sans", sans-serif;
    font-size: 1rem;
    color: #2d2118;
}

.chart-gain-head span {
    color: #6f5a48;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.chart-gain svg {
    width: 100%;
    height: auto;
    margin-top: 6px;
    display: block;
}

.chart-gain-svg line,
.chart-gain-svg path {
    fill: none;
    stroke: rgba(143, 111, 74, 0.25);
    stroke-width: 1.2;
}

.chart-gain polyline {
    fill: none;
    stroke: rgba(224, 162, 54, 0.95);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-gain-svg text {
    fill: #7b6652;
    font-size: 10px;
    font-weight: 700;
    font-family: "Manrope", "Segoe UI", sans-serif;
}

.chart-gain-axis {
    margin-top: 4px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    justify-items: center;
    color: #7b6652;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.photo-strip {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.placeholder-photo {
    min-height: 208px;
    border-style: solid;
    border-color: rgba(165, 118, 69, 0.24);
}

.placeholder-photo > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.stats-lab {
    padding-top: var(--space-desktop-sm);
    padding-bottom: var(--space-desktop-md);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.stats-promo {
    margin-top: 16px;
    margin-bottom: 16px;
    max-width: 100%;
}

.stats-promo-side {
    margin: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stats-promo-side .stats-lead {
    margin: 0;
}

.stats-promo-side .stats-points {
    margin: 0;
    grid-template-columns: 1fr;
    gap: 8px;
}

.stats-lead {
    margin: 0;
    color: rgba(47, 34, 24, 0.84);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    border-radius: 18px;
    border: 1px solid rgba(170, 122, 75, 0.26);
    background: rgba(255, 249, 238, 0.82);
    padding: 14px 16px;
}

.stats-points {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.stats-points li {
    border-radius: 16px;
    border: 1px solid rgba(170, 122, 75, 0.24);
    background: rgba(255, 250, 241, 0.86);
    padding: 12px 13px;
}

.stats-points strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(45, 33, 24, 0.9);
    font-weight: 700;
}

.stats-points span {
    display: block;
    margin-top: 4px;
    margin-left: 0;
    color: rgba(77, 58, 46, 0.82);
    font-size: 0.9rem;
    font-weight: 500;
}

.stats-point-icon {
    width: 22px;
    height: 22px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    border: 1px solid rgba(164, 117, 67, 0.28);
    background: rgba(247, 189, 87, 0.16);
    flex-shrink: 0;
}

.stats-point-icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13px;
    height: 13px;
    display: block;
    transform: translate(-50%, -50%);
    fill: none;
    stroke: #2b1d13;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.sensor-card {
    border-radius: 24px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 247, 233, 0.84);
    box-shadow: var(--card-shadow);
    padding: 14px;
}

.sensor-card-copy {
    padding: 2px 4px 10px;
}

.sensor-card-copy h3 {
    margin: 0;
    font-size: 1.1rem;
    font-family: "Alegreya Sans", sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
}

.sensor-card-copy p {
    margin: 10px 0 0;
    color: var(--ink-soft);
}

.sensor-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 189, 87, 0.24);
    border: 1px solid rgba(169, 120, 70, 0.36);
    flex-shrink: 0;
}

.sensor-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #2c2017;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sensor-shot {
    border-radius: 16px;
    border: 1px solid rgba(169, 120, 70, 0.2);
    background: linear-gradient(180deg, rgba(255, 250, 239, 0.9), rgba(250, 240, 222, 0.66));
    padding: 8px;
    overflow: hidden;
}

a.sensor-shot {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sensor-shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.sensor-shot video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.sensor-shot.glightbox {
    cursor: zoom-in;
}

.sensor-shot.glightbox:focus-visible {
    outline: 2px solid rgba(174, 122, 69, 0.75);
    outline-offset: 3px;
}

.stats-tail {
    margin: 18px 0 0;
    max-width: 94ch;
    color: rgba(48, 36, 28, 0.8);
    font-size: 1.01rem;
    font-weight: 500;
    line-height: 1.45;
}

.stats-tail span {
    display: block;
}

.stats-tail span + span {
    margin-top: 3px;
}

.why-layout {
    display: grid;
    grid-template-columns: minmax(240px, 332px) 1fr;
    gap: 24px;
}

#why {
    position: relative;
    padding-top: var(--space-desktop-sm);
    padding-bottom: var(--space-desktop-md);
}

.why-title p {
    margin-top: 12px;
    color: var(--muted);
    font-weight: 800;
}

.why-title h2,
.why-heading {
    font-size: clamp(1.56rem, 3.2vw, 2.6rem);
    max-width: 10.5ch;
    line-height: 1.02;
}

.why-photo {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(166, 119, 70, 0.24);
    background: rgba(255, 249, 236, 0.72);
}

.why-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.benefit-grid {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    position: relative;
}

.benefit-grid::before {
    content: "";
    position: absolute;
    left: 39px;
    top: 56px;
    bottom: 56px;
    width: 30px;
    transform: translateX(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 120'%3E%3Cpath d='M15 0 C28 20 2 40 15 60 C28 80 2 100 15 120' fill='none' stroke='rgba(194,145,86,0.9)' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: repeat-y;
    background-size: 30px 120px;
    background-position: center top;
    pointer-events: none;
}

.benefit-card {
    position: relative;
    border-radius: 22px;
    border: 1px solid var(--line-strong);
    background: #fff8ed;
    padding: 14px 16px;
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

.benefit-card:nth-child(odd) {
    border-radius: 20px 26px 20px 24px;
    margin-right: 10px;
    background: #fff8ec;
}

.benefit-card:nth-child(even) {
    border-radius: 26px 20px 24px 20px;
    margin-left: 10px;
    background: #fbf6eb;
}

.benefit-index {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 12px;
    border: 1px solid rgba(166, 118, 68, 0.32);
    background: rgba(247, 189, 87, 0.18);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: "Alegreya Sans", sans-serif;
    color: #7f6752;
}

.benefit-card p {
    margin: 0;
    color: var(--ink-soft);
    font-weight: 650;
}

.why-tail {
    grid-column: 1 / -1;
    margin: 0;
    max-width: 64ch;
    color: #30241c;
    font-size: 1.06rem;
    font-weight: 800;
}

.process {
    background: rgba(239, 231, 215, 0.72);
    border-top: 1px solid rgba(167, 122, 74, 0.25);
    border-bottom: 1px solid rgba(167, 122, 74, 0.25);
}

.timeline {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
}

.timeline-no {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    border: 1px solid rgba(164, 118, 66, 0.4);
    background: rgba(248, 210, 121, 0.72);
    font-family: "Alegreya Sans", sans-serif;
    font-size: 1.12rem;
    color: #4f3a28;
}

.timeline-card {
    border-radius: 24px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 247, 233, 0.86);
    padding: 18px;
}

.timeline-card h3 {
    margin: 0;
    font-size: 1.17rem;
}

.timeline-card p {
    margin: 8px 0 0;
    color: var(--ink-soft);
}

.process-tail {
    margin: 18px 0 0;
    color: #34271e;
    font-weight: 800;
}

.journey {
    margin-top: 54px;
}

.journey-head {
    margin-bottom: 16px;
}

.journey-nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.journey-strip {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline-start: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.journey-strip::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.journey-arrow {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(167, 118, 67, 0.42);
    background: rgba(255, 248, 234, 0.94);
    color: #503827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(77, 53, 33, 0.16);
    transition: transform 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

.journey-arrow span {
    transform: translateY(-1px);
}

.journey-arrow:hover,
.journey-arrow:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 243, 220, 0.98);
}

.journey-arrow:focus-visible {
    outline: 2px solid rgba(174, 122, 69, 0.68);
    outline-offset: 2px;
}

.journey-arrow:disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
}

.journey-card {
    position: relative;
    margin: 0;
    flex: 0 0 clamp(300px, 78vw, 360px);
    width: clamp(300px, 78vw, 360px);
    max-width: 100%;
    min-height: 460px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(165, 118, 69, 0.24);
    box-shadow: var(--card-shadow);
    scroll-snap-align: start;
    background: #30251f;
}

.journey-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.journey-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(25, 18, 13, 0.08) 0%, rgba(25, 18, 13, 0.78) 78%),
        linear-gradient(0deg, rgba(25, 18, 13, 0.32) 0%, rgba(25, 18, 13, 0) 44%);
}

.journey-copy {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 1;
}

.journey-copy h3 {
    margin: 0;
    color: #fff8ec;
    font-size: 1.08rem;
    font-family: "Alegreya Sans", sans-serif;
    line-height: 1.22;
}

.journey-copy p {
    margin: 10px 0 0;
    color: rgba(255, 244, 228, 0.95);
    font-size: 0.98rem;
    line-height: 1.45;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.format-card {
    position: relative;
    border-radius: 24px;
    border: 1px solid rgba(174, 128, 78, 0.3);
    padding: 24px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.format-card > * {
    position: relative;
    z-index: 1;
}

.format-card * {
    cursor: inherit;
}

.format-card:nth-child(2) {
    border-radius: 24px;
}

.format-card:nth-child(3) {
    border-radius: 24px;
}

.format-card::after {
    content: "";
    position: absolute;
    right: 0;
    top: -24px;
    width: 154px;
    height: 250px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 250'%3E%3Cpath d='M170 -10 C100 20 100 84 170 118 C240 152 240 216 170 258' fill='none' stroke='rgba(255,255,255,0.58)' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 0;
}


.format-card h3 {
    margin: 0;
    font-family: "Alegreya Sans", sans-serif;
    font-size: 1.31rem;
    line-height: 1.06;
}

.format-subtitle {
    margin: 10px 0 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: #4e3d2f;
}

.format-price {
    margin: 10px 0 0;
    color: rgba(45, 33, 25, 0.72);
    font-family: "Alegreya Sans", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.format-price::before {
    content: "Стоимость: ";
    color: rgba(45, 33, 25, 0.58);
}

.format-renewal {
    margin: 4px 0 0;
    color: rgba(45, 33, 25, 0.56);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.format-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.45;
}

.format-includes {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.format-includes li {
    position: relative;
    padding-left: 16px;
    color: rgba(44, 30, 18, 0.82);
    font-size: 0.9rem;
    line-height: 1.35;
}

.format-includes li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(53, 112, 40, 0.95);
    font-weight: 800;
}

.format-link {
    margin-top: auto;
    border: 0;
    background: transparent;
    padding: 16px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #23170f;
    font-weight: 900;
    text-decoration: none;
    text-align: left;
    font-size: 0.96rem;
    font-family: inherit;
    line-height: 1.3;
    transition: transform 0.2s ease, color 0.2s ease;
}

.format-link::after {
    content: "→";
    display: inline-block;
    transition: transform 0.2s ease;
}

.format-link:hover,
.format-link:focus-visible {
    transform: translateX(2px);
    color: #1a120c;
}

.format-link:hover::after,
.format-link:focus-visible::after {
    transform: translateX(4px);
}

.format-link:focus-visible {
    outline: 2px solid rgba(98, 68, 40, 0.5);
    outline-offset: 2px;
}

.format-card:hover,
.format-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 14px 22px rgba(87, 52, 25, 0.18);
}

.format-card:hover .format-link,
.format-card:focus-within .format-link {
    transform: translateX(2px);
    color: #1a120c;
}

.format-card:hover .format-link::after,
.format-card:focus-within .format-link::after {
    transform: translateX(4px);
}

.format-card--full {
    background: #f7bd57;
}

.format-card--part {
    background: var(--mint);
}

.format-card--light {
    background: var(--blue);
}

.pricing-notice {
    margin-top: 14px;
    border-radius: 20px;
    border: 1px solid rgba(170, 122, 75, 0.3);
    background: linear-gradient(135deg, rgba(255, 245, 220, 0.9), rgba(250, 234, 194, 0.78));
    box-shadow: var(--card-shadow);
    padding: 16px 18px;
}

.pricing-notice-kicker {
    margin: 0;
    color: rgba(120, 83, 47, 0.92);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-notice h3 {
    margin: 6px 0 0;
    font-size: 1.1rem;
    line-height: 1.2;
}

.pricing-notice p {
    margin: 8px 0 0;
    color: rgba(63, 46, 33, 0.88);
    max-width: 80ch;
}

.pricing-notice-link {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2a1c12;
    font-weight: 900;
    text-decoration: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    appearance: none;
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
}

.pricing-notice-link::after {
    content: "→";
}

.installment-card {
    margin-top: 14px;
    border-radius: 24px;
    border: 1px solid rgba(171, 122, 67, 0.34);
    background: rgba(255, 247, 233, 0.9);
    padding: 20px;
}

.installment-card h3 {
    margin: 0;
    font-family: "Alegreya Sans", sans-serif;
    font-size: clamp(1.05rem, 2.2vw, 1.34rem);
}

.installment-plan {
    margin-top: 14px;
    border-radius: 16px;
    border: 1px solid rgba(169, 121, 71, 0.24);
    background: rgba(255, 251, 241, 0.84);
    padding: 14px;
}

.installment-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.installment-item span {
    display: block;
    color: rgba(62, 45, 34, 0.72);
    font-size: 0.85rem;
    font-weight: 700;
}

.installment-item strong {
    display: block;
    margin-top: 2px;
    color: #2b1d13;
    font-size: 1.48rem;
    line-height: 1;
    letter-spacing: -0.02em;
    font-family: "Alegreya Sans", sans-serif;
}

.installment-item:not(.installment-item--now) strong {
    font-size: 1.1rem;
    font-family: "Manrope", sans-serif;
    letter-spacing: 0;
}

.installment-bars {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.installment-bars span {
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(170, 122, 75, 0.24);
}

.installment-bars .is-active {
    background: linear-gradient(90deg, #f7c96e, #eeaf43);
    border-color: rgba(171, 122, 67, 0.45);
}

.installment-total {
    margin: 10px 0 0;
    color: rgba(70, 53, 43, 0.58);
    font-weight: 700;
    text-align: center;
}

.installment-card > p {
    margin: 12px 0 0;
    color: rgba(62, 45, 34, 0.82);
}

.gifting-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 14px;
}

.gifting {
    padding-top: 14px;
}

.panel {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 24px;
    border: 1px solid var(--line-strong);
    padding: 28px;
    box-shadow: var(--card-shadow);
}

.panel > * {
    position: relative;
    z-index: 1;
}

.panel p {
    margin: 12px 0 0;
    color: var(--ink-soft);
}

.panel-warm {
    background: #ffefbf;
}

.panel-warm::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='126' height='108' viewBox='0 0 126 108'%3E%3Cg fill='none' stroke='%23704c2c' stroke-width='1.3' stroke-opacity='0.9'%3E%3Cpath d='M31 12 51 24v24L31 60 11 48V24Z'/%3E%3Cpath d='M94 12 114 24v24L94 60 74 48V24Z'/%3E%3Cpath d='M62 48 82 60v24L62 96 42 84V60Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 126px 108px;
    background-repeat: repeat;
}

.panel-warm::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 34%);
}

.panel-contrast {
    background: #dce6ff;
}

.panel-contrast::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='92' viewBox='0 0 140 92'%3E%3Cg fill='none' stroke='%23475c8b' stroke-width='1.2' stroke-opacity='0.95'%3E%3Crect x='10' y='14' width='38' height='18' rx='9'/%3E%3Crect x='64' y='14' width='66' height='18' rx='9'/%3E%3Crect x='24' y='48' width='56' height='18' rx='9'/%3E%3Crect x='92' y='48' width='38' height='18' rx='9'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 140px 92px;
    background-repeat: repeat;
}

.panel-contrast::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 36%);
}

.dot-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.dot-list li {
    position: relative;
    padding-left: 27px;
    color: #3b2e24;
    font-weight: 700;
}

.dot-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.48em;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(167, 119, 62, 0.46);
    background: rgba(247, 189, 87, 0.8);
}

.apiary-location {
    padding-top: 18px;
    padding-bottom: 0;
}

.apiary-locator {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.apiary-location-list {
    display: grid;
    gap: 14px;
    max-height: 560px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-left: 8px;
    direction: rtl;
    scrollbar-gutter: stable;
}

.apiary-location-list::-webkit-scrollbar {
    width: 9px;
}

.apiary-location-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(156, 111, 66, 0.52);
}

.apiary-location-list::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(170, 122, 75, 0.14);
}

.apiary-location-item {
    display: block;
    direction: ltr;
    text-decoration: none;
    color: inherit;
    border-radius: 22px;
    border: 1px solid rgba(169, 121, 71, 0.22);
    background: rgba(255, 250, 239, 0.62);
    padding: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.apiary-location-item:hover,
.apiary-location-item:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(167, 119, 62, 0.55);
    background: rgba(255, 247, 233, 0.84);
}

.apiary-location-item:focus-visible {
    outline: 2px solid rgba(247, 189, 87, 0.65);
    outline-offset: 2px;
}

.apiary-location-kicker {
    margin: 0 0 10px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7a624c;
}

.apiary-location-address {
    margin: 0 0 10px;
    color: #4c3a2b;
    font-weight: 700;
}

.apiary-location-note {
    margin: 0;
    color: #4b392c;
    font-weight: 700;
    font-size: 0.92rem;
}

.apiary-location-availability {
    margin: 10px 0 0;
    color: #5a4331;
    font-size: 0.91rem;
    font-weight: 700;
}

.apiary-location-availability span {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(145, 101, 36, 0.4);
    background: linear-gradient(180deg, rgba(255, 232, 171, 0.9), rgba(248, 206, 116, 0.92));
    color: #2f2016;
    font-weight: 800;
}

.apiary-availability-highlight {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(145, 101, 36, 0.36);
    background: linear-gradient(180deg, rgba(255, 239, 198, 0.95), rgba(255, 225, 157, 0.95));
    color: #3f2d1f;
    font-size: 0.95rem;
    font-weight: 700;
}

.apiary-availability-highlight strong {
    color: #2a1b10;
    font-weight: 900;
}

.apiary-availability-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.apiary-availability-actions .btn-chip {
    min-height: 44px;
}

.apiary-location-desc {
    margin: 8px 0 0;
    color: var(--ink-soft);
}

.apiary-location-link {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #2f2016;
}

.apiary-location-link::after {
    content: "→";
    transition: transform 0.2s ease;
}

.apiary-location-item:hover .apiary-location-link::after,
.apiary-location-item:focus-visible .apiary-location-link::after {
    transform: translateX(3px);
}

.apiary-map {
    position: relative;
    min-height: 420px;
    border-radius: 22px;
    border: 1px solid rgba(169, 121, 71, 0.24);
    background:
        radial-gradient(circle at 20% 18%, rgba(247, 189, 87, 0.24), rgba(247, 189, 87, 0) 38%),
        radial-gradient(circle at 82% 72%, rgba(184, 222, 206, 0.3), rgba(184, 222, 206, 0) 42%),
        linear-gradient(160deg, rgba(255, 251, 241, 0.92), rgba(251, 244, 229, 0.9));
    overflow: hidden;
}

.apiary-map::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(170, 122, 75, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(170, 122, 75, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

.apiary-map-title {
    margin: 14px 14px 0;
    color: #5b4637;
    font-weight: 800;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    z-index: 2;
}

.apiary-map-russia {
    position: absolute;
    left: 50%;
    top: 52%;
    width: min(94%, 660px);
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.95;
}

.apiary-map-point {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    display: block;
    width: 0;
    height: 0;
    text-decoration: none;
    color: #2f2016;
    z-index: 3;
}

.apiary-map-dot {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(170, 122, 75, 0.5);
    background: #f7bd57;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Alegreya Sans", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(80, 54, 30, 0.2);
}

.apiary-map-label {
    position: absolute;
    left: 16px;
    top: 0;
    transform: translateY(-50%);
    border-radius: 12px;
    border: 1px solid rgba(170, 122, 75, 0.25);
    background: rgba(255, 251, 241, 0.95);
    padding: 6px 9px;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.apiary-map-point:hover .apiary-map-dot,
.apiary-map-point:focus-visible .apiary-map-dot {
    transform: translate(-50%, -50%) scale(1.05);
}

.apiary-map-point:focus-visible {
    outline: none;
}

.apiary-location-copy {
    margin-top: 14px;
    border-radius: 20px;
    border: 1px solid rgba(169, 121, 71, 0.24);
    background: rgba(255, 251, 241, 0.84);
    padding: 18px;
}

.apiary-location-copy p {
    margin: 0;
    color: var(--ink-soft);
}

.apiary-location-copy p + p {
    margin-top: 10px;
}

.apiary-distance strong {
    font-family: "Alegreya Sans", sans-serif;
    font-size: 1.02rem;
    color: #2d2118;
}

.gifting-photo {
    margin: 0 0 14px;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(165, 118, 69, 0.24);
    box-shadow: var(--card-shadow);
}

.gifting-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.calm {
    padding-top: var(--space-desktop-md);
    padding-bottom: 18px;
}

.calm-box {
    border-radius: 24px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 247, 233, 0.86);
    padding: clamp(24px, 5vw, 40px);
    box-shadow: var(--card-shadow);
}

.calm-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: center;
}

.calm-photo {
    margin: 0;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(165, 118, 69, 0.24);
}

.calm-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.calm-box p {
    margin: 14px 0 0;
    max-width: 66ch;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.apipuls {
    padding-top: 14px;
    padding-bottom: 14px;
}

.apipuls-box {
    border-radius: 24px;
    border: 1px solid rgba(171, 122, 67, 0.34);
    background: rgba(255, 250, 241, 0.9);
    padding: clamp(24px, 5vw, 40px);
    box-shadow: var(--card-shadow);
}

.apipuls-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 18px;
    align-items: center;
}

.apipuls-copy {
    min-width: 0;
}

.apipuls-kicker {
    margin: 0;
    font-family: "Alegreya Sans", sans-serif;
    text-transform: uppercase;
    font-size: 0.79rem;
    letter-spacing: 0.08em;
    color: #6f5642;
}

.apipuls-box h2 {
    margin: 10px 0 0;
    font-family: "Alegreya Sans", sans-serif;
    font-size: clamp(1.5rem, 3.8vw, 2.5rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
}

.apipuls-box p {
    margin: 14px 0 0;
    max-width: 66ch;
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.apipuls-box .btn {
    margin-top: 18px;
}

.apipuls-photo {
    margin: 0;
    border: 0;
    background: transparent;
    padding: 0;
}

.apipuls-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.sensor-bridge {
    padding-top: 14px;
    padding-bottom: 14px;
}

.sensor-bridge-photo {
    margin: 0 auto;
    width: 100%;
    aspect-ratio: 16 / 5;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(165, 118, 69, 0.24);
    box-shadow: var(--card-shadow);
    background: rgba(255, 248, 234, 0.76);
}

.sensor-bridge-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 90%;
}

.sensor-bridge-caption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(144, 102, 55, 0.42);
    background: rgba(255, 248, 230, 0.92);
    color: #4f3827;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.sensor-proof {
    padding-top: 14px;
    padding-bottom: var(--space-desktop-sm);
}

.sensor-proof-box {
    border-radius: 24px;
    border: 1px solid rgba(171, 122, 67, 0.34);
    background: rgba(255, 247, 233, 0.88);
    padding: clamp(24px, 5vw, 40px);
    box-shadow: var(--card-shadow);
}

.sensor-proof-layout {
    display: grid;
    grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
    gap: 18px;
    align-items: center;
}

.sensor-proof-photo {
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
}

.sensor-proof-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.sensor-proof-kicker {
    margin: 0;
    font-family: "Alegreya Sans", sans-serif;
    text-transform: uppercase;
    font-size: 0.79rem;
    letter-spacing: 0.08em;
    color: #6f5642;
}

.sensor-proof-copy h2 {
    margin: 10px 0 0;
    font-family: "Alegreya Sans", sans-serif;
    font-size: clamp(1.5rem, 3.8vw, 2.5rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
}

.sensor-proof-copy p {
    margin: 14px 0 0;
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.final-cta {
    padding-top: var(--space-desktop-sm);
    padding-bottom: var(--space-desktop-sm);
}

.cta-box {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    border-radius: 24px;
    border: 1px solid rgba(171, 122, 67, 0.34);
    background: linear-gradient(180deg, rgba(255, 239, 191, 0.96), rgba(255, 236, 178, 0.94));
    padding: clamp(26px, 5.8vw, 52px) 20px;
    box-shadow: var(--card-shadow);
}

.cta-box::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cg fill='none' stroke='%236e4a2a' stroke-width='1.4' stroke-opacity='0.8'%3E%3Cpath d='M30 10 50 22v24L30 58 10 46V22Z'/%3E%3Cpath d='M90 10 110 22v24L90 58 70 46V22Z'/%3E%3Cpath d='M60 46 80 58v24L60 94 40 82V58Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 104px;
    background-repeat: repeat;
}

.cta-box::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 22%, rgba(255, 241, 190, 0.1) 0, rgba(255, 241, 190, 0) 38%),
        radial-gradient(circle at 82% 76%, rgba(255, 230, 156, 0.08) 0, rgba(255, 230, 156, 0) 34%),
        radial-gradient(circle at 76% 24%, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0) 26%);
}

.cta-box > * {
    position: relative;
    z-index: 1;
}


.cta-kicker {
    margin: 0;
    font-family: "Alegreya Sans", sans-serif;
    text-transform: uppercase;
    font-size: 0.79rem;
    letter-spacing: 0.08em;
    color: #6f5642;
}

.cta-box h2 {
    margin: 10px auto 0;
    max-width: 16ch;
    font-size: clamp(1.54rem, 4.3vw, 2.95rem);
}

.cta-box p {
    margin: 12px auto 24px;
    max-width: 48ch;
    color: #3c2d22;
    font-weight: 700;
}

.faq {
    padding-top: var(--space-desktop-md);
    padding-bottom: var(--space-desktop-sm);
}

/* Одна колонка; ширина как у соседних блоков внутри .container (без отдельного max-width). */
.faq-list-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    width: 100%;
}

.faq-item {
    display: block;
    width: 100%;
    margin: 0;
    min-height: 0;
    break-inside: avoid;
    border-radius: 20px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 247, 233, 0.88);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-family: "Alegreya Sans", sans-serif;
    font-size: clamp(0.92rem, 1.3vw, 1.03rem);
    line-height: 1.12;
    position: relative;
    padding-right: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(170, 122, 75, 0.34);
    color: #634b39;
    font-weight: 700;
    font-family: "Manrope", sans-serif;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-q-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(170, 122, 75, 0.3);
    background: rgba(247, 189, 87, 0.14);
    flex-shrink: 0;
}

.faq-q-icon svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: #4a372a;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.faq-content {
    padding: 0 16px 14px;
    border-top: 1px solid rgba(170, 122, 75, 0.2);
}

.faq-content p {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 0.93rem;
    line-height: 1.42;
}

.faq-list {
    margin: 8px 0 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 4px;
    color: var(--ink-soft);
    font-size: 0.91rem;
    line-height: 1.38;
}

.contacts {
    padding-top: var(--space-desktop-md);
    padding-bottom: var(--space-desktop-sm);
}

.gifting {
    padding-top: var(--space-desktop-sm);
    padding-bottom: var(--space-desktop-sm);
}

.apiary-location {
    padding-top: var(--space-desktop-md);
    padding-bottom: var(--space-desktop-sm);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contacts-grid > .contact-card:only-child {
    grid-column: 1 / -1;
}

.contact-card {
    border-radius: 20px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 247, 233, 0.88);
    box-shadow: var(--card-shadow);
    padding: 20px;
}

.contact-card h3 {
    margin: 0;
    font-family: "Alegreya Sans", sans-serif;
    font-size: 1.08rem;
}

.contact-card p {
    margin: 10px 0 0;
    color: var(--ink-soft);
}

.contact-form {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.contact-form label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #5d493b;
}

.contact-form input {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(170, 122, 75, 0.34);
    background: rgba(255, 251, 241, 0.9);
    color: var(--ink);
    font: inherit;
}

.phone-input-wrap {
    position: relative;
}

.phone-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #5d493b;
    font-weight: 700;
    pointer-events: none;
}

.phone-input-wrap input {
    padding-left: 50px;
}

.contact-form input:focus {
    outline: 2px solid rgba(247, 189, 87, 0.55);
    outline-offset: 0;
    border-color: rgba(171, 122, 67, 0.5);
}

.contact-form .btn {
    width: fit-content;
    min-width: 150px;
}

.contact-form-status {
    margin: 2px 0 0;
    color: #4f3c2d;
    font-weight: 700;
}

.contact-form-status.is-error {
    color: #a03d2e;
}

.contact-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.contact-list li {
    color: var(--ink-soft);
}

.contact-list span {
    font-weight: 800;
    color: #3a2a1f;
}

.contact-list a,
.contact-list .tel-value {
    color: #2e2017;
    text-decoration: none;
    font-weight: 700;
}

.contact-messengers {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-messenger-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.contact-messenger-link img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 4px;
}

.contact-share-qr {
    margin-top: 16px;
    display: grid;
    justify-items: start;
    gap: 10px;
}

.contact-share-qr__image-wrap {
    display: inline-flex;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(170, 122, 75, 0.35);
    background: rgba(255, 251, 241, 0.92);
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(87, 52, 25, 0.08);
}

.contact-share-qr__image {
    display: block;
    width: 160px;
    height: 160px;
    border-radius: 10px;
}

.contact-share-qr__caption {
    margin: 0;
    font-size: 0.93rem;
    font-weight: 700;
    color: #4e392b;
}

.order-modal[hidden] {
    display: none;
}

.order-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 16px;
}

.order-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 20, 12, 0.5);
    backdrop-filter: blur(4px);
}

.order-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(860px, calc(100vw - 32px));
    max-height: min(88vh, 920px);
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    border-radius: 22px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 248, 236, 0.98);
    box-shadow: 0 26px 48px rgba(44, 28, 17, 0.26);
    padding: 20px 22px;
}

.order-modal__dialog::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.order-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(170, 122, 75, 0.34);
    background: rgba(255, 251, 241, 0.95);
    color: #39281d;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.order-modal__kicker {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6f5642;
}

.order-modal__dialog h3 {
    margin: 6px 0 0;
    font-family: "Alegreya Sans", sans-serif;
    font-size: clamp(1.18rem, 2vw, 1.56rem);
}

.order-form {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.order-step-note {
    margin: 0;
    color: #6b5645;
    font-size: 0.9rem;
}

.order-step-pane[data-order-step-pane="1"] > .order-step-note {
    margin-top: -6px;
}

.order-wizard-progress {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.order-wizard-progress__text {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    color: #5a4434;
}

.order-wizard-progress__line {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(170, 122, 75, 0.2);
}

.order-wizard-progress__line > span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #f0a532, #d46f2a);
    transition: width 0.22s ease;
}

.order-wizard-progress__summary {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 0.84rem;
    color: #5a4434;
}

.order-wizard-progress__summary span {
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(170, 122, 75, 0.2);
    background: rgba(255, 252, 246, 0.88);
}

.order-wizard-progress__summary span:nth-child(even) {
    border: 0;
    padding: 0;
    background: transparent;
}

.order-form--wizard {
    margin-top: 10px;
}

.order-step-pane {
    display: grid;
    gap: 10px;
}

.order-step-pane[hidden] {
    display: none;
}

.order-step-question {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 750;
    color: #2f2016;
}

.order-count-control {
    display: grid;
    grid-template-columns: 54px minmax(120px, 180px) 54px;
    gap: 8px;
    align-items: center;
    width: fit-content;
}

.order-count-control__btn {
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(169, 121, 71, 0.28);
    background: rgba(255, 251, 241, 0.9);
    color: #2f2016;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

.order-count-control__btn:hover,
.order-count-control__btn:focus-visible {
    border-color: rgba(167, 119, 62, 0.55);
    background: rgba(255, 245, 228, 0.95);
}

.order-count-control__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.order-count-control__input {
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(169, 121, 71, 0.3);
    background: rgba(255, 251, 241, 0.92);
    color: #2f2016;
    text-align: center;
    font-family: "Alegreya Sans", sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    padding: 0 10px;
}

.order-sections-stack {
    display: grid;
    gap: 10px;
}

.order-section-card {
    border-radius: 14px;
    border: 1px solid rgba(169, 121, 71, 0.2);
    background: rgba(255, 251, 241, 0.72);
    padding: 10px;
    display: grid;
    gap: 8px;
}

.order-section-card h4 {
    margin: 0;
    font-size: 0.94rem;
    font-family: "Alegreya Sans", sans-serif;
}

.order-section-card__meta {
    margin: 0;
    font-size: 0.82rem;
    color: #604a39;
}

.order-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.order-choice-card {
    text-align: left;
    width: 100%;
    min-height: 96px;
    border-radius: 12px;
    border: 1px solid rgba(170, 122, 75, 0.28);
    background: rgba(255, 251, 241, 0.86);
    color: #2f2016;
    padding: 10px;
    display: grid;
    gap: 4px;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.order-choice-card:hover,
.order-choice-card:focus-visible {
    border-color: rgba(167, 119, 62, 0.55);
    transform: translateY(-1px);
    background: rgba(255, 247, 232, 0.95);
}

.order-choice-card.is-active {
    border-color: rgba(167, 119, 62, 0.65);
    background: rgba(255, 242, 219, 0.95);
}

.order-choice-card.is-disabled,
.order-choice-card:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.order-choice-card__title {
    font-size: 0.95rem;
    font-weight: 800;
}

.order-choice-card__price {
    font-size: 0.9rem;
    font-weight: 800;
}

.order-choice-card__text {
    font-size: 0.82rem;
    color: #5e4938;
}

.order-choice-card__meta {
    font-size: 0.79rem;
    color: #6a5442;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.order-choice-card__availability-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #6f5844;
}

.order-stock-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(127, 170, 98, 0.46);
    background: rgba(234, 246, 218, 0.88);
    color: #2f5b22;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 9px;
}

.order-stock-badge--disabled {
    border-color: rgba(167, 126, 88, 0.38);
    background: rgba(243, 234, 220, 0.9);
    color: #6a5444;
}

.order-hive-option {
    min-height: 132px;
    grid-template-columns: 148px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.order-hive-option__visual {
    width: 100%;
    padding: 2px 0;
}

.order-hive-option__content {
    display: grid;
    gap: 3px;
}

.order-hive-option__title {
    font-size: 0.9rem;
    font-weight: 800;
}

.order-hive-option__price {
    font-size: 0.9rem;
    font-weight: 800;
}

.order-hive-option__yield {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
}

.order-hive-option__yield-label {
    font-size: 0.77rem;
    font-weight: 700;
    color: #614a38;
}

.order-hive-option__yield-value {
    border-radius: 999px;
    border: 1px solid rgba(178, 132, 71, 0.42);
    background: rgba(255, 236, 197, 0.82);
    color: #6a431b;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 1px 8px;
}

.order-hive-option__jars {
    font-size: 0.78rem;
    color: #6a5442;
}

.order-hive-option__packaging-label {
    font-weight: 700;
    color: #5c4635;
}

.order-hive-svg {
    width: 100%;
    height: auto;
    display: block;
}

.order-hive-svg__roof {
    fill: none;
    stroke: rgba(157, 116, 72, 0.74);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.order-hive-svg__roof-line {
    fill: none;
    stroke: rgba(157, 116, 72, 0.46);
    stroke-linecap: round;
    stroke-width: 2;
}

.order-hive-svg__body {
    fill: rgba(255, 247, 232, 0.78);
    stroke: rgba(163, 114, 65, 0.58);
    stroke-width: 2;
}

.order-hive-svg__segment {
    fill: rgba(250, 237, 213, 0.92);
    stroke: rgba(168, 122, 75, 0.55);
    stroke-width: 1.6;
}

.order-hive-svg__segment.is-filled {
    fill: rgba(235, 187, 94, 0.94);
    stroke: rgba(176, 112, 43, 0.88);
}

.order-addon-grid {
    padding: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-addon-chip {
    border-radius: 12px;
    border: 1px solid rgba(170, 122, 75, 0.24);
    background: rgba(255, 251, 241, 0.86);
    color: #2f2016;
    min-height: 88px;
    width: 100%;
    text-align: left;
    padding: 10px;
    display: grid;
    gap: 4px;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    overflow: hidden;
}

.order-addon-chip::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: rgba(167, 119, 62, 0.48);
}

.order-addon-chip:hover,
.order-addon-chip:focus-visible {
    border-color: rgba(167, 119, 62, 0.55);
    background: rgba(255, 247, 232, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(95, 64, 30, 0.08);
}

.order-addon-chip.is-active {
    border-color: rgba(167, 119, 62, 0.66);
    background: rgba(255, 242, 219, 0.95);
}

.order-addon-chip__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.order-addon-chip__badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(170, 122, 75, 0.32);
    background: rgba(255, 250, 239, 0.9);
    color: #6b543f;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    text-transform: uppercase;
}

.order-addon-chip__title {
    font-weight: 760;
    font-size: 0.89rem;
}

.order-addon-chip__price {
    font-weight: 800;
    font-size: 0.86rem;
    color: #4f341f;
}

.order-addon-chip__desc {
    font-size: 0.78rem;
    color: #634d3c;
}

.order-addon-chip--qty {
    cursor: default;
}

.order-addon-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.order-addon-qty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(170, 122, 75, 0.4);
    background: rgba(255, 250, 239, 0.9);
    color: #4f341f;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.order-addon-qty__btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.order-addon-qty__count {
    min-width: 24px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: #3b2a1f;
}

.order-addon-chip--camera::before {
    background: rgba(58, 138, 160, 0.72);
}

.order-addon-chip--camera .order-addon-chip__badge {
    border-color: rgba(58, 138, 160, 0.4);
    color: #215f6f;
}

.order-addon-chip--monitor::before {
    background: rgba(89, 133, 79, 0.72);
}

.order-addon-chip--monitor .order-addon-chip__badge {
    border-color: rgba(89, 133, 79, 0.4);
    color: #3c652f;
}

.order-addon-chip--docs::before {
    background: rgba(137, 109, 170, 0.66);
}

.order-addon-chip--docs .order-addon-chip__badge {
    border-color: rgba(137, 109, 170, 0.35);
    color: #674f84;
}

.order-addon-chip--harvest::before {
    background: rgba(199, 146, 56, 0.72);
}

.order-addon-chip--harvest .order-addon-chip__badge {
    border-color: rgba(199, 146, 56, 0.42);
    color: #7d5820;
}

.order-addon-chip--upgrade::before {
    background: rgba(193, 101, 69, 0.66);
}

.order-addon-chip--upgrade .order-addon-chip__badge {
    border-color: rgba(193, 101, 69, 0.35);
    color: #7b3d2b;
}

.order-empty-note {
    margin: 0;
    font-size: 0.87rem;
    color: #6a5544;
}

.order-review {
    display: grid;
    gap: 10px;
}

.order-review-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-review-section {
    border-radius: 14px;
    border: 1px solid rgba(170, 122, 75, 0.26);
    background: linear-gradient(145deg, rgba(255, 251, 241, 0.94), rgba(255, 246, 228, 0.82));
    padding: 11px 12px;
    display: grid;
    gap: 8px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.order-review-section:hover {
    transform: translateY(-1px);
    border-color: rgba(168, 120, 62, 0.5);
    box-shadow: 0 10px 20px rgba(96, 66, 34, 0.08);
}

.order-review-section h4 {
    margin: 0;
    font-family: "Alegreya Sans", sans-serif;
    font-size: 0.92rem;
}

.order-review-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.order-review-section__badge {
    border-radius: 999px;
    border: 1px solid rgba(168, 122, 75, 0.32);
    background: rgba(255, 250, 239, 0.9);
    padding: 3px 9px;
    font-size: 0.71rem;
    font-weight: 700;
    color: #6b5543;
}

.order-review-section__format {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    color: #4f3b2d;
}

.order-review-section__format strong {
    font-size: 0.95rem;
    color: #2f2016;
}

.order-review-highlights {
    display: grid;
    gap: 7px;
}

.order-review-highlight {
    border-radius: 10px;
    border: 1px solid rgba(174, 130, 75, 0.24);
    background: rgba(255, 252, 245, 0.92);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
}

.order-review-highlight__label {
    font-size: 0.74rem;
    font-weight: 700;
    color: #6a5543;
}

.order-review-highlight__value {
    font-size: 0.82rem;
    font-weight: 820;
    color: #5f3f1f;
    text-align: right;
}

.order-review-split {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.order-review-block {
    border-radius: 14px;
    border: 1px solid rgba(170, 122, 75, 0.2);
    background: rgba(255, 251, 241, 0.9);
    padding: 11px 12px;
    display: grid;
    gap: 4px;
    align-content: start;
}

.order-review-block h4 {
    margin: 0;
    font-size: 0.92rem;
    font-family: "Alegreya Sans", sans-serif;
    line-height: 1.12;
}

.order-review-block__meta {
    margin: 0;
    font-size: 0.76rem;
    color: #6a5645;
    line-height: 1.28;
}

.order-review-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
    font-size: 0.83rem;
    color: #4f3b2d;
}

.order-review-list__item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-review-list__item::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(190, 138, 73, 0.78);
    flex-shrink: 0;
}

.order-review-list__item span:first-child {
    flex: 1;
}

.order-review-list__item--priced {
    justify-content: space-between;
}

.order-review-list__price {
    font-weight: 800;
    color: #4f341e;
}

.order-review-total {
    border-radius: 14px;
    border: 1px solid rgba(167, 119, 62, 0.4);
    background: linear-gradient(150deg, rgba(255, 244, 218, 0.9), rgba(255, 238, 205, 0.96));
    padding: 11px 12px;
    display: grid;
    gap: 6px;
}

.order-review-total p {
    margin: 0;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.86rem;
}

.order-review-total strong {
    font-weight: 820;
}

.order-review-total__grand {
    margin-top: 2px;
    padding-top: 7px;
    border-top: 1px dashed rgba(166, 112, 53, 0.4);
}

.order-review-total__grand span {
    font-weight: 700;
    color: #5a4129;
}

.order-review-total__grand strong {
    font-size: 1rem;
    color: #2f2016;
}

.order-pay-card {
    border-radius: 12px;
    border: 1px solid rgba(167, 119, 62, 0.35);
    background: rgba(255, 245, 228, 0.92);
    padding: 10px 12px;
    display: grid;
    gap: 4px;
}

.order-pay-card__total {
    margin: 0;
    font-size: 1rem;
    font-weight: 820;
    color: #2f2016;
}

.order-pay-card__hint {
    margin: 0;
    font-size: 0.82rem;
    color: #5b4738;
}

.order-payment-methods {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 8px;
}

.order-payment-methods legend {
    padding: 0;
    margin: 0;
    font-size: 0.84rem;
    font-weight: 700;
    color: #5d493b;
}

.order-payment-method {
    border-radius: 12px;
    border: 1px solid rgba(170, 122, 75, 0.3);
    background: rgba(255, 251, 241, 0.9);
    min-height: 44px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.order-payment-method:has(input:checked) {
    border-color: rgba(167, 119, 62, 0.65);
    background: rgba(255, 242, 219, 0.92);
}

.order-payment-method input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.order-payment-method span {
    font-size: 0.86rem;
    font-weight: 700;
    color: #3f2d21;
}

.order-invoice-fields {
    display: none;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(170, 122, 75, 0.25);
    background: rgba(255, 249, 236, 0.72);
}

.order-invoice-fields.is-visible {
    display: grid;
}

.order-invoice-fields[hidden] {
    display: none !important;
}

.order-promo-field {
    display: grid;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(170, 122, 75, 0.25);
    background: rgba(255, 249, 236, 0.72);
}

.order-promo-field__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.order-promo-field__btn {
    min-height: 44px;
    padding: 0 12px;
}

.order-promo-field__message {
    margin: 0;
    font-size: 0.82rem;
    color: #3f6d35;
}

.order-promo-field__message.is-error {
    color: #8b2012;
}

.order-form label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #5d493b;
}

.order-form input,
.order-form textarea {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(170, 122, 75, 0.34);
    background: rgba(255, 251, 241, 0.9);
    color: var(--ink);
    font: inherit;
}

.order-form .phone-input-wrap input {
    padding-left: 50px;
}

.order-form .phone-prefix {
    z-index: 1;
}

.order-form textarea {
    min-height: 88px;
    padding-top: 9px;
    resize: vertical;
}

.order-contacts-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px 14px;
    align-items: start;
}

/* Ветка «себе / подарок» — единственный ряд сетки родителя: без span колонки сжимаются до 1/12 ширины. */
.order-contacts-layout > .order-contacts-branch {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px 14px;
    align-items: start;
    width: 100%;
    min-width: 0;
}

/* Иначе display:grid выше перебивает поведение [hidden] (ветка «подарок» остаётся на экране). */
.order-contacts-layout > .order-contacts-branch[hidden] {
    display: none !important;
}

.order-field {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.order-field--name {
    grid-column: span 6;
}

.order-field--phone {
    grid-column: span 6;
}

.order-field--email-account {
    grid-column: span 6;
}

.order-field--email-receipt {
    grid-column: span 6;
}

.order-field--address {
    grid-column: span 8;
}

.order-field--gift {
    grid-column: span 4;
}

.order-field--certificate {
    grid-column: span 12;
}

/* Без явной колонки эти поля попадали в сетку как «по 1fr» и сжимались до полоски (особенно заметно при крупном базовом шрифте). */
.order-field--gift-ship,
.order-field--gift-datetime {
    grid-column: 1 / -1;
    min-width: 0;
}

.order-field--gift-ship .order-checkbox {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
}

.order-field--gift-ship .order-checkbox input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.order-field--gift-ship .order-checkbox span {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 32px);
}

.order-field--gift-datetime .order-step-note {
    max-width: 100%;
}

.order-field--gift-datetime[hidden] {
    display: none !important;
}

.order-step-pane[data-order-step-pane="6"] {
    gap: 8px;
}

.order-step-note--contacts-intro {
    margin-top: 0;
    margin-bottom: 8px;
}

.order-purpose-fieldset {
    border: none;
    margin: 0 0 10px;
    padding: 0;
    width: 100%;
    min-width: 0;
}

.order-purpose-fieldset__legend {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4a3a2e;
    margin-bottom: 8px;
    padding: 0;
}

.order-purpose-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.order-purpose-help {
    margin: 9px 0 0;
    max-width: 58ch;
    padding: 9px 12px;
    border: 1px solid rgba(170, 122, 75, 0.2);
    border-radius: 12px;
    background: rgba(255, 248, 234, 0.72);
    color: color-mix(in srgb, var(--ink-soft) 86%, #5b3a17 14%);
    font-size: 0.92rem;
    line-height: 1.42;
}

.order-purpose-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #4a3a2e;
    cursor: pointer;
}

.order-purpose-option input {
    margin: 0;
    width: 16px;
    height: 16px;
}

.order-contacts-zone {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(180, 150, 110, 0.35);
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px 14px;
    align-items: start;
    min-width: 0;
}

.order-contacts-zone:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.order-contacts-zone__title {
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #3b2e24;
    letter-spacing: 0.02em;
    grid-column: 1 / -1;
}

.order-step-pane[data-order-step-pane="6"] .order-step-question {
    margin-bottom: 2px;
}

.order-step-pane[data-order-step-pane="6"] .order-field label {
    font-size: 0.78rem;
    line-height: 1.2;
    color: #5f4a3a;
}

.order-step-pane[data-order-step-pane="6"] .order-field input:not([type="checkbox"]):not([type="radio"]),
.order-step-pane[data-order-step-pane="6"] .order-field textarea,
.order-step-pane[data-order-step-pane="6"] .order-field .phone-input-wrap input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 40px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 0.94rem;
}

.order-step-pane[data-order-step-pane="6"] .order-field .phone-input-wrap {
    width: 100%;
    min-width: 0;
}

.order-step-pane[data-order-step-pane="6"] .order-field textarea {
    min-height: 72px;
    padding-top: 8px;
}

.order-form input:focus,
.order-form textarea:focus {
    outline: 2px solid rgba(247, 189, 87, 0.55);
    outline-offset: 0;
    border-color: rgba(171, 122, 67, 0.5);
}

.order-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: #5b4738;
    line-height: 1.4;
}

.order-checkbox input {
    margin-top: 1px;
    min-height: auto;
    width: 16px;
    height: 16px;
    padding: 0;
}

.order-checkbox a {
    color: #2f2017;
    font-weight: 700;
}

.order-form-note {
    margin: 4px 0 0;
    color: #6b5645;
    font-size: 0.84rem;
}

.order-form-status {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(111, 157, 77, 0.4);
    background: rgba(238, 252, 229, 0.7);
    color: #2f4b1e;
    font-size: 0.9rem;
}

.order-form-status.is-error {
    border-color: rgba(190, 86, 71, 0.4);
    background: rgba(255, 235, 231, 0.75);
    color: #7a281d;
}

.order-form-actions {
    margin-top: 4px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.order-form-actions--wizard .btn {
    min-width: 180px;
}

.order-form-actions--wizard .btn:disabled {
    color: #8b7d70;
    background: rgba(230, 223, 208, 0.92);
    border-color: rgba(176, 158, 137, 0.42);
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
    opacity: 1;
}

.order-form-actions--wizard .btn:disabled:hover {
    transform: none;
}

.order-success-toast[hidden] {
    display: none;
}

.order-success-toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 180;
    max-width: min(680px, calc(100vw - 24px));
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(94, 154, 88, 0.52);
    background: rgba(232, 250, 226, 0.98);
    color: #2d5a28;
    box-shadow: 0 14px 26px rgba(38, 72, 33, 0.2);
}

.order-success-toast__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.36;
    font-weight: 700;
}

.order-success-toast__close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(94, 154, 88, 0.55);
    background: rgba(255, 255, 255, 0.82);
    color: #2d5a28;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.order-success-toast__close:hover,
.order-success-toast__close:focus-visible {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(65, 121, 59, 0.8);
}

/* Шаг 6: на узкой ширине 12-колоночная сетка давила поля (6+6, 8+4); переносим контакты в одну колонку раньше, чем весь модал на 640px. */
@media (max-width: 860px) {
    .order-contacts-layout {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .order-contacts-layout > .order-contacts-branch {
        grid-template-columns: 1fr;
    }

    .order-contacts-branch .order-contacts-zone {
        grid-template-columns: 1fr;
    }

    .order-field--name,
    .order-field--phone,
    .order-field--email-account,
    .order-field--email-receipt,
    .order-field--address,
    .order-field--gift,
    .order-field--certificate,
    .order-field--gift-ship,
    .order-field--gift-datetime {
        grid-column: 1;
    }
}

@media (max-width: 640px) {
    .order-modal {
        padding: 10px;
    }

    .order-modal__dialog {
        width: min(720px, calc(100vw - 8px));
        max-height: 92vh;
        border-radius: 18px;
        padding: 14px;
    }

    .order-choice-grid,
    .order-addon-grid,
    .order-review-grid,
    .order-review-split {
        grid-template-columns: 1fr;
    }

    .order-count-control {
        width: 100%;
        grid-template-columns: 48px minmax(0, 1fr) 48px;
    }

    .order-hive-option {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .order-hive-option__visual {
        max-width: 190px;
    }

    .order-review-section__head,
    .order-review-section__format,
    .order-review-highlight,
    .order-review-list__item--priced {
        flex-wrap: wrap;
    }

    .order-form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .order-success-toast {
        left: 8px;
        right: 8px;
        bottom: 8px;
        max-width: none;
    }
}

.site-footer {
    padding: 24px 0 40px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-inner p {
    margin: 0;
    color: #6a5645;
}

.footer-inner a {
    color: #2e2017;
    font-weight: 800;
    text-decoration: none;
}

.footer-links {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.legal-page .site-header .btn-chip {
    min-width: auto;
}

.legal-main {
    padding-bottom: 34px;
}

/* Скрыта до фокуса (клавиатура / скринридер), без «просвета» у края экрана */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 10000;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 16px;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    border-radius: 999px;
    background: #2f2016;
    color: #fff8ec;
    font-weight: 800;
    font-size: 0.88rem;
    text-decoration: none;
    outline: 3px solid rgba(247, 189, 87, 0.95);
    outline-offset: 2px;
}

.seo-main {
    padding-top: calc(var(--main-padding-top) + var(--main-padding-top-seo-extra));
    padding-bottom: 56px;
}

.container > .seo-shell {
    width: 100%;
    max-width: min(56rem, 100%);
    margin-inline: auto;
    padding-inline: clamp(4px, 1.2vw, 10px);
}

.seo-article {
    color: #3a2e26;
}

.seo-article-header {
    margin-bottom: 2rem;
}

.seo-breadcrumb {
    margin-bottom: 1.25rem;
}

.seo-breadcrumb-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #7a6554;
}

.seo-breadcrumb-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.seo-breadcrumb-list li:not(:last-child)::after {
    content: "/";
    color: rgba(107, 86, 69, 0.4);
    font-weight: 600;
}

.seo-breadcrumb-list a {
    color: #5c4635;
    text-decoration: none;
    border-radius: 6px;
}

.seo-breadcrumb-list a:hover {
    text-decoration: underline;
}

.seo-breadcrumb-list a:focus-visible {
    outline: 2px solid rgba(167, 119, 62, 0.85);
    outline-offset: 2px;
}

.seo-kicker {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8a7260;
}

.seo-h1 {
    font-family: "Alegreya Sans", sans-serif;
    font-size: clamp(1.75rem, 4.2vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0.75rem 0 0;
    color: #1f1410;
    text-wrap: balance;
}

.seo-deck {
    margin: 1.25rem 0 0;
    font-size: 1.0625rem;
    line-height: 1.72;
    color: #524438;
    font-weight: 500;
}

.seo-byline {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #7a6554;
}

.seo-figure {
    margin: 1.75rem 0 0;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(170, 130, 88, 0.22);
    background: rgba(255, 252, 244, 0.9);
    box-shadow: 0 14px 36px rgba(62, 42, 24, 0.08);
}

.seo-figure--cover {
    margin-top: 1.75rem;
}

.seo-figure img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.seo-figure-cap {
    margin: 0;
    padding: 0.55rem 0.85rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    color: #7a6a5c;
    background: rgba(255, 250, 240, 0.95);
    border-top: 1px solid rgba(170, 130, 88, 0.12);
}

.seo-prose {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #45372e;
}

.seo-prose > p {
    margin: 1.1em 0 0;
}

.seo-prose > p:first-child {
    margin-top: 0;
}

.seo-prose a {
    color: #5a3d24;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.seo-prose a:hover {
    color: #2f2016;
}

.seo-prose a:focus-visible {
    outline: 2px solid rgba(167, 119, 62, 0.85);
    outline-offset: 3px;
    border-radius: 4px;
}

.seo-h2 {
    margin: 2.75rem 0 0;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(120, 92, 64, 0.14);
    font-family: "Alegreya Sans", sans-serif;
    font-size: clamp(1.2rem, 2.4vw, 1.45rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: #1f1410;
    text-wrap: balance;
}

.seo-prose > .seo-h2:first-of-type {
    margin-top: 2.25rem;
    padding-top: 0;
    border-top: none;
}

.seo-h3 {
    margin: 1.35rem 0 0.65rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #2c221b;
}

.seo-steps {
    margin: 0.85rem 0 0;
    padding-left: 1.35rem;
    display: grid;
    gap: 0.65rem;
    color: #45372e;
    line-height: 1.65;
}

.seo-steps li {
    padding-left: 0.15rem;
}

.seo-bullet-list {
    margin: 0.85rem 0 1.15rem;
    padding-left: 1.35rem;
    display: grid;
    gap: 0.5rem;
    color: #45372e;
    line-height: 1.65;
    list-style: disc;
}

.seo-bullet-list li {
    padding-left: 0.2rem;
}

.seo-table-wrap {
    overflow-x: auto;
    margin: 0.85rem 0 1.35rem;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid rgba(120, 92, 64, 0.14);
}

.seo-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.98rem;
    line-height: 1.5;
    color: #45372e;
}

.seo-table--wide {
    min-width: 880px;
}

.seo-table th,
.seo-table td {
    border-bottom: 1px solid rgba(120, 92, 64, 0.14);
    padding: 0.7rem 0.9rem;
    text-align: left;
    vertical-align: top;
}

.seo-table tbody th[scope='row'] {
    font-weight: 800;
    color: #2c221b;
}

.seo-table thead th {
    background: rgba(255, 248, 230, 0.95);
    font-weight: 800;
    color: #2c221b;
    border-bottom: 1px solid rgba(120, 92, 64, 0.22);
}

.seo-table tbody tr:last-child td {
    border-bottom: none;
}

.seo-table tbody tr:nth-child(even) td {
    background: rgba(255, 252, 244, 0.65);
}

.seo-blockquote {
    margin: 1.15rem 0 1.25rem;
    padding: 1.1rem 1.15rem 1.2rem 1.2rem;
    border-left: 4px solid rgba(170, 130, 88, 0.45);
    background: rgba(255, 250, 238, 0.72);
    border-radius: 0 12px 12px 0;
    color: #3d2f26;
    line-height: 1.68;
}

.seo-blockquote p {
    margin: 0;
    font-style: italic;
}

.seo-reviews {
    display: grid;
    gap: 1rem;
    margin: 0.85rem 0 1.5rem;
}

.seo-reviews .seo-blockquote {
    margin: 0;
}

.seo-faq-list {
    display: grid;
    gap: 0;
    margin-top: 0.5rem;
}

.seo-faq-item {
    padding: 1.15rem 0;
    border-bottom: 1px solid rgba(120, 92, 64, 0.12);
}

.seo-faq-item:first-child {
    padding-top: 0.35rem;
}

.seo-faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.seo-faq-q {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: #1f1410;
    line-height: 1.38;
}

.seo-faq-a {
    margin: 0.5rem 0 0;
    line-height: 1.68;
    color: #524438;
    font-size: 1.02rem;
}

.seo-faq-a a {
    color: #5a3d24;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.seo-faq-a a:hover {
    color: #3d2918;
}

.seo-faq-a a:focus-visible {
    outline: 2px solid rgba(90, 61, 36, 0.45);
    outline-offset: 2px;
}

.seo-cta {
    margin-top: 2.75rem;
    padding: 1.75rem clamp(1rem, 3vw, 1.5rem);
    border-radius: 16px;
    border: 1px solid rgba(170, 130, 88, 0.28);
    background: linear-gradient(160deg, rgba(255, 250, 238, 0.98), rgba(247, 205, 120, 0.18));
    box-shadow: 0 12px 32px rgba(62, 42, 24, 0.07);
}

.seo-cta .seo-h2 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
}

.seo-cta-title {
    margin: 0;
}

.seo-cta-text {
    margin: 0.75rem 0 0;
    line-height: 1.68;
    color: #45372e;
    font-size: 1.02rem;
}

.seo-cta-text a {
    color: #5a3d24;
    font-weight: 800;
}

.seo-cta-text a:focus-visible {
    outline: 2px solid rgba(167, 119, 62, 0.85);
    outline-offset: 3px;
    border-radius: 4px;
}

.seo-cta-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.seo-cta-btn {
    min-height: 48px;
    padding-inline: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.seo-cta-secondary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.legal-shell {
    display: grid;
    gap: 18px;
    padding-inline: 6px;
}

.legal-intro,
.legal-card {
    border-radius: 24px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 247, 233, 0.9);
    box-shadow: var(--card-shadow);
}

.legal-intro {
    padding: clamp(20px, 4vw, 34px);
}

.legal-kicker {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6f5642;
}

.legal-intro h1 {
    margin: 10px 0 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.05;
}

.legal-meta {
    margin: 12px 0 0;
    color: #5b4738;
    font-weight: 700;
}

.legal-meta strong {
    color: #2f2017;
}

.legal-note {
    margin: 8px 0 0;
    color: #6b5645;
}

.legal-card {
    padding: clamp(24px, 3.8vw, 38px);
}

.legal-card h2 {
    margin: 0;
    max-width: none;
    font-size: clamp(1.02rem, 1.9vw, 1.42rem);
    line-height: 1.28;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.legal-card p {
    margin: 10px 0 0;
    color: var(--ink-soft);
}

.offer-main {
    padding-bottom: 32px;
    overflow: visible;
}

.offer-shell {
    gap: 14px;
    overflow: visible;
    padding-inline: 4px;
}

.offer-intro .article-back-link {
    margin-top: 0;
    margin-bottom: 12px;
    padding: 10px 18px;
    font-size: 0.95rem;
    border-radius: 999px;
}

.offer-hero {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
    gap: 14px;
    align-items: center;
}

.offer-photo {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(165, 118, 69, 0.24);
}

.offer-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.offer-meta p {
    margin: 0;
    color: var(--ink-soft);
}

.offer-meta p + p {
    margin-top: 8px;
}

.offer-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
    color: var(--ink-soft);
}

.offer-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 8px;
    align-items: start;
}

.offer-list-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    border: 1px solid rgba(169, 121, 71, 0.3);
    background: rgba(247, 189, 87, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
}

.offer-services {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.offer-service {
    border-radius: 14px;
    border: 1px solid rgba(169, 121, 71, 0.24);
    background: rgba(255, 250, 241, 0.84);
    padding: 12px;
}

.offer-service h3 {
    margin: 0;
    font-size: 1rem;
    font-family: "Alegreya Sans", sans-serif;
}

.offer-service p {
    margin: 8px 0 0;
    color: var(--ink-soft);
}

.offer-service strong {
    display: inline-block;
    margin-top: 8px;
    color: #2f2016;
}

.offer-other-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #2f2016;
    font-weight: 800;
    text-decoration: none;
}

.offer-other-link:hover {
    text-decoration: underline;
}

.legal-list {
    margin: 10px 0 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 6px;
    color: var(--ink-soft);
}

.legal-requisites {
    margin: 14px 0 0;
    display: grid;
    gap: 12px;
}

.legal-requisites div {
    display: grid;
    grid-template-columns: minmax(150px, 190px) 1fr;
    gap: 14px;
    align-items: baseline;
    color: var(--ink-soft);
}

.legal-requisites dt {
    margin: 0;
    font-weight: 800;
    color: #3a2a1f;
}

.legal-requisites dd {
    margin: 0;
    font-size: clamp(1.02rem, 1.5vw, 1.05rem);
}

.articles-main {
    padding-bottom: 34px;
}

.articles-shell {
    display: grid;
    gap: 14px;
}

.articles-hero {
    border-radius: 24px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 247, 233, 0.9);
    box-shadow: var(--card-shadow);
    padding: clamp(20px, 4vw, 34px);
}

.articles-hero h1 {
    margin: 10px 0 0;
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    line-height: 1.05;
}

.articles-hero p {
    margin: 12px 0 0;
    color: var(--ink-soft);
    max-width: 62ch;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

/* Тени карточек не должны резаться глобальным overflow-x: clip у main/section */
body.articles-page main.articles-main,
body.articles-page section.articles-shell,
body.articles-page .articles-grid {
    overflow-x: visible;
}

.article-card {
    display: block;
    border-radius: 24px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 247, 233, 0.9);
    box-shadow: var(--card-shadow);
    /* overflow:hidden здесь обрезал тень и скругление делаем на обложке/теле */
    overflow: visible;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(167, 119, 62, 0.55);
    box-shadow: 0 20px 34px rgba(88, 53, 24, 0.16);
}

.article-card:focus-visible {
    outline: 2px solid rgba(247, 189, 87, 0.78);
    outline-offset: 2px;
    transform: translateY(-4px);
}

.article-cover {
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 23px 23px 0 0;
    border-bottom: 1px solid rgba(167, 119, 62, 0.2);
}

.article-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    padding: 16px;
    border-radius: 0 0 23px 23px;
}

.article-meta {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    color: #6b5645;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.1;
}

.article-meta > span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(170, 122, 75, 0.33);
    background: rgba(255, 243, 212, 0.8);
    color: #5f4837;
    font-weight: 800;
}

.article-body h2 {
    margin: 10px 0 0;
    font-size: clamp(1.08rem, 2.4vw, 1.34rem);
    line-height: 1.25;
}

.article-body p {
    margin: 10px 0 0;
    color: var(--ink-soft);
}

.article-post h1,
.article-post h2,
.article-post h3,
.article-post h4 {
    margin: 16px 0 0;
    font-family: "Alegreya Sans", sans-serif;
    line-height: 1.2;
}

.article-post h1 {
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.article-post h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

.article-post h3 {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
}

.article-post h4 {
    font-size: 1rem;
}

.article-post p,
.article-post ul,
.article-post ol {
    margin: 10px 0 0;
    color: var(--ink-soft);
}

.article-post ul,
.article-post ol {
    padding-left: 1.2rem;
}

.article-post code {
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(255, 241, 205, 0.7);
    border: 1px solid rgba(167, 119, 62, 0.3);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.92em;
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(170, 122, 75, 0.38);
    background: rgba(255, 243, 212, 0.76);
    color: #3a2a1f;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.article-back-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 235, 185, 0.9);
    border-color: rgba(167, 119, 62, 0.62);
}

.article-back-link:focus-visible {
    outline: 2px solid rgba(247, 189, 87, 0.78);
    outline-offset: 2px;
}

.articles-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.articles-pagination-pages {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.articles-page-control,
.articles-page-btn {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(170, 122, 75, 0.34);
    background: rgba(255, 251, 241, 0.92);
    color: #4b392d;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.articles-page-control:hover,
.articles-page-btn:hover {
    background: rgba(255, 241, 205, 0.96);
    border-color: rgba(167, 119, 62, 0.6);
    transform: translateY(-1px);
}

.articles-page-control:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.articles-page-btn.is-active {
    background: #f7bd57;
    border-color: rgba(156, 104, 42, 0.62);
    color: #2e2017;
}

.admin-main {
    padding-bottom: 34px;
}

.admin-shell {
    display: grid;
    gap: 14px;
    overflow: visible;
}

.admin-shell > * {
    min-width: 0;
}

.admin-login-card {
    max-width: 560px;
    margin-inline: auto;
}

.admin-login-card h1 {
    margin: 0;
}

.admin-login-form {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.admin-login-form label {
    font-weight: 700;
    color: #5d493b;
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 14px;
    align-items: start;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
}

.admin-topbar h1 {
    margin: 0;
}

.admin-topbar p {
    margin: 10px 0 0;
    color: var(--ink-soft);
    max-width: 72ch;
}

.admin-tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
}

.admin-tab {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(170, 122, 75, 0.3);
    background: rgba(255, 251, 241, 0.92);
    color: #4b392d;
    text-decoration: none;
    font-weight: 700;
}

.admin-tab.is-active {
    background: #f7bd57;
    border-color: rgba(156, 104, 42, 0.62);
    color: #2e2017;
}

.admin-sidebar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.admin-sidebar h2,
.admin-editor h2 {
    margin: 0;
    font-size: 1.12rem;
}

.admin-article-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.admin-article-list a {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    border: 1px solid rgba(170, 122, 75, 0.28);
    background: rgba(255, 251, 241, 0.84);
    padding: 10px 11px;
}

.admin-article-list a.is-active {
    border-color: rgba(167, 119, 62, 0.62);
    background: rgba(255, 237, 188, 0.68);
}

.admin-article-list strong {
    display: block;
}

.admin-article-list span {
    display: block;
    margin-top: 4px;
    color: #6b5645;
    font-size: 0.88rem;
}

.admin-editor .admin-form {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.admin-save-btn {
    justify-self: start;
}

.admin-delete-form {
    margin-top: 10px;
}

.admin-delete-btn {
    min-height: 42px;
    padding: 0 18px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #7a2f23;
    border-color: rgba(190, 86, 71, 0.35);
    background: rgba(255, 241, 238, 0.9);
    box-shadow: none;
}

.admin-delete-btn:hover {
    background: rgba(255, 231, 227, 0.95);
}

.admin-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #5d493b;
    font-weight: 700;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-client-hive-form input,
.admin-client-hive-form textarea,
.admin-client-hive-form select,
.admin-login-form input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(170, 122, 75, 0.34);
    background: rgba(255, 251, 241, 0.92);
    color: var(--ink);
    font: inherit;
}

.admin-form textarea {
    min-height: 180px;
    resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.admin-client-hive-form input:focus,
.admin-client-hive-form textarea:focus,
.admin-client-hive-form select:focus,
.admin-login-form input:focus {
    outline: 2px solid rgba(247, 189, 87, 0.55);
    border-color: rgba(171, 122, 67, 0.5);
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-grid-2 > * {
    min-width: 0;
}

.admin-alert {
    margin: 10px 0 0;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 700;
}

.admin-alert--ok {
    border: 1px solid rgba(111, 157, 77, 0.4);
    background: rgba(223, 246, 208, 0.75);
    color: #2f5220;
}

.admin-alert--error {
    border: 1px solid rgba(190, 86, 71, 0.34);
    background: rgba(255, 231, 227, 0.82);
    color: #7a2f23;
}

.admin-media h2 {
    margin: 0;
}

.admin-media p {
    margin: 10px 0 0;
    color: var(--ink-soft);
}

.admin-media-upload {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.admin-media-upload label {
    font-weight: 700;
    color: #5d493b;
}

.admin-media-upload input[type="file"] {
    min-height: 44px;
    padding: 9px 11px;
    border-radius: 12px;
    border: 1px solid rgba(170, 122, 75, 0.34);
    background: rgba(255, 251, 241, 0.92);
    color: var(--ink);
    font: inherit;
}

.admin-copy-hint {
    margin-top: 12px;
    font-weight: 700;
    color: #5f4a3a;
}

.admin-copy-hint.is-copied {
    color: #2f5220;
}

.admin-media-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.admin-media-item {
    display: grid;
    gap: 6px;
    text-align: left;
    border-radius: 14px;
    border: 1px solid rgba(170, 122, 75, 0.3);
    background: rgba(255, 251, 241, 0.92);
    padding: 8px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    position: relative;
}

.admin-media-item:hover {
    transform: translateY(-2px);
    border-color: rgba(167, 119, 62, 0.6);
    box-shadow: 0 12px 20px rgba(88, 53, 24, 0.12);
}

.admin-media-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(170, 122, 75, 0.24);
    background: #fff;
}

.admin-media-item-actions {
    position: absolute;
    right: 14px;
    top: 14px;
    display: inline-flex;
    gap: 6px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.admin-media-item:hover .admin-media-item-actions,
.admin-media-item:focus-within .admin-media-item-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.admin-media-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(170, 122, 75, 0.42);
    background: rgba(255, 251, 241, 0.96);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4b392d;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.admin-media-icon-btn:hover {
    background: rgba(255, 236, 188, 0.98);
    border-color: rgba(167, 119, 62, 0.64);
    transform: translateY(-1px);
}

.admin-media-icon-btn:focus-visible {
    outline: 2px solid rgba(247, 189, 87, 0.78);
    outline-offset: 2px;
}

.admin-media-icon-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-media-icon-btn--danger {
    border-color: rgba(190, 86, 71, 0.48);
    color: #8b2f24;
}

.admin-media-icon-btn--danger:hover {
    background: rgba(255, 229, 225, 0.98);
    border-color: rgba(190, 86, 71, 0.65);
}

.admin-media-item span {
    font-size: 0.86rem;
    font-weight: 700;
    color: #4b392d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-media-item code {
    font-size: 0.73rem;
    color: #6a5645;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-orders h2 {
    margin: 0;
}

.admin-clients h2 {
    margin: 0;
}

.admin-clients p {
    margin: 10px 0 0;
    color: var(--ink-soft);
}

.admin-clients-table {
    min-width: 880px;
}

.admin-clients-table {
    table-layout: auto;
    min-width: 1120px;
}

.admin-clients-table th,
.admin-clients-table td {
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

.admin-clients-table th:nth-child(1),
.admin-clients-table td:nth-child(1) {
    width: 20%;
}

.admin-clients-table th:nth-child(2),
.admin-clients-table td:nth-child(2) {
    width: 20%;
}

.admin-clients-table th:nth-child(3),
.admin-clients-table td:nth-child(3) {
    width: 14%;
    white-space: nowrap;
}

.admin-clients-table th:nth-child(4),
.admin-clients-table td:nth-child(4) {
    width: 13%;
    white-space: nowrap;
}

.admin-clients-table th:nth-child(5),
.admin-clients-table td:nth-child(5),
.admin-clients-table th:nth-child(6),
.admin-clients-table td:nth-child(6) {
    width: 7%;
    white-space: nowrap;
}

.admin-clients-table th:nth-child(7),
.admin-clients-table td:nth-child(7) {
    width: 14%;
    white-space: nowrap;
}

.admin-clients-table .admin-client-open-btn {
    white-space: nowrap;
}

.admin-client-open-btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-clients-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 18px 0 12px;
}

.admin-client-create-open-btn {
    min-height: 44px;
    padding-inline: 18px;
}

.admin-client-create-modal {
    place-items: center;
    padding: 18px;
}

.admin-client-create-modal__dialog {
    width: min(760px, calc(100vw - 36px));
    max-height: min(90dvh, 760px);
    padding: clamp(18px, 2.4vw, 28px);
    border-radius: 24px;
}

.admin-client-create-modal__head {
    display: grid;
    gap: 8px;
    padding-right: 54px;
}

.admin-client-create-modal__head h3 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.15;
}

.admin-client-create-modal__head p:not(.order-modal__kicker) {
    max-width: 62ch;
    margin: 0;
    color: #6a5341;
    font-size: 0.94rem;
    font-weight: 650;
    line-height: 1.48;
}

.admin-client-create-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.admin-client-create-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-top: 2px;
}

.admin-client-modal {
    place-items: stretch;
    padding: 0;
}

.admin-client-modal__dialog {
    --admin-modal-pad: clamp(18px, 2.6vw, 36px);
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    overflow: auto;
    padding: var(--admin-modal-pad);
    background:
        radial-gradient(120% 80% at 8% 0%, rgba(255, 245, 218, 0.92), transparent 56%),
        linear-gradient(135deg, rgba(255, 251, 243, 0.99), rgba(245, 235, 218, 0.98));
    box-shadow: none;
}

.admin-client-modal__dialog > *:not(.order-modal__close) {
    width: min(1320px, 100%);
    margin-inline: auto;
}

.admin-client-modal__dialog .order-modal__close {
    position: fixed;
    top: clamp(14px, 2vw, 24px);
    right: clamp(14px, 2vw, 24px);
    z-index: 4;
    width: 44px;
    height: 44px;
    border-color: rgba(115, 79, 45, 0.24);
    background: rgba(255, 251, 241, 0.96);
    box-shadow: 0 10px 22px rgba(54, 34, 20, 0.14);
}

.admin-client-modal__header {
    display: grid;
    gap: 8px;
    padding-right: 64px;
}

.admin-client-modal__header h3 {
    margin: 0;
}

.admin-client-modal__header .order-modal__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0;
    color: #6a5341;
    font-size: 0.94rem;
    font-weight: 700;
}

.admin-client-modal__overview {
    display: grid;
    grid-template-columns: minmax(320px, 1.15fr) minmax(280px, 0.95fr) minmax(260px, 0.8fr);
    gap: 16px;
    align-items: start;
    margin-top: 22px;
}

.admin-client-modal__workspace {
    margin-top: 24px;
    padding-bottom: 36px;
}

.admin-client-modal__stack {
    display: grid;
    gap: 16px;
}

.admin-client-subnav {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(170, 122, 75, 0.22);
    background: rgba(255, 251, 241, 0.94);
    box-shadow: 0 12px 28px rgba(72, 46, 28, 0.1);
    backdrop-filter: blur(10px);
}

.admin-client-subtab {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: #5d493b;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-client-subtab:hover,
.admin-client-subtab:focus-visible {
    border-color: rgba(167, 119, 62, 0.34);
    background: rgba(255, 243, 212, 0.72);
    outline: none;
}

.admin-client-subtab.is-active {
    background: #f7bd57;
    border-color: rgba(156, 104, 42, 0.44);
    color: #2e2017;
}

.admin-client-panel {
    margin-top: 18px;
}

.admin-client-panel-intro {
    max-width: 74ch;
    margin: 0 0 14px;
    color: #5d493b;
    font-weight: 650;
    line-height: 1.5;
}

@media (max-width: 1180px) {
    .admin-client-modal__overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-client-profile-card {
        grid-column: 1 / -1;
    }

    .admin-client-danger-zone {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .admin-client-modal__overview {
        grid-template-columns: 1fr;
    }

    .admin-client-profile-card,
    .admin-client-danger-zone {
        grid-column: auto;
    }

    .admin-client-profile-card .admin-grid-2,
    .admin-client-password-form .admin-grid-2 {
        grid-template-columns: 1fr;
    }
}

.admin-news-locations-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.admin-news-location-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
    align-items: start;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(170, 122, 75, 0.22);
    background: rgba(255, 248, 234, 0.66);
    font-weight: 700;
    color: #4b392d;
}

.admin-news-location-check input {
    margin-top: 4px;
}

.admin-news-location-check small {
    grid-column: 2;
    font-weight: 600;
    color: #7a6554;
}

.admin-personal-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.admin-personal-list__item {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(170, 122, 75, 0.22);
    background: rgba(255, 248, 234, 0.66);
}

.admin-personal-list__item--hidden {
    opacity: 0.72;
}

.admin-personal-list__date {
    font-size: 0.82rem;
    color: #7a6554;
    font-weight: 600;
}

.admin-personal-list__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-pasture-intro {
    margin: 0 0 12px;
    color: #5d493b;
    line-height: 1.5;
    font-weight: 600;
}

.admin-pasture-subtitle {
    margin: 22px 0 10px;
    font-size: 1.05rem;
}

.admin-pasture-news-form {
    margin-bottom: 8px;
}

.admin-pasture-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.admin-pasture-news-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(170, 122, 75, 0.24);
    background: rgba(255, 248, 234, 0.72);
}

.admin-pasture-news-item--hidden {
    opacity: 0.7;
}

.admin-pasture-news-item__main {
    flex: 1 1 220px;
    min-width: 0;
}

.admin-pasture-news-item__date {
    display: block;
    font-size: 0.82rem;
    color: #7a6554;
    font-weight: 600;
    margin-top: 4px;
}

.admin-pasture-news-item__title {
    margin: 6px 0 0;
    font-weight: 700;
}

.admin-pasture-news-item__excerpt {
    margin: 6px 0 0;
    color: #5d493b;
    line-height: 1.4;
}

.admin-pasture-news-item__img {
    margin: 6px 0 0;
    font-size: 0.78rem;
    word-break: break-all;
    color: #7a5a2a;
}

.admin-pasture-news-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.admin-pasture-badge {
    display: inline-flex;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(120, 90, 40, 0.12);
    color: #5a3f2b;
}

/* Лента новостей ЛК: editorial + bento, без тяжёлых теней и без blur на скролле */
.cabinet-feed {
    --feed-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --feed-frame: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 0;
    padding: var(--feed-frame);
    border-radius: clamp(1.5rem, 3vw, 2rem);
    background:
        linear-gradient(165deg, rgba(255, 252, 246, 0.98) 0%, rgba(255, 243, 220, 0.94) 48%, rgba(248, 239, 224, 0.92) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.72) inset,
        0 28px 60px -34px rgba(88, 53, 24, 0.14),
        0 0 0 1px rgba(216, 188, 147, 0.45);
    position: relative;
    isolation: isolate;
}

.cabinet-feed::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    background: radial-gradient(ellipse 120% 80% at 12% 0%, rgba(247, 189, 87, 0.16), transparent 55%),
        radial-gradient(ellipse 100% 70% at 92% 100%, rgba(184, 222, 206, 0.18), transparent 50%);
}

.cabinet-feed > * {
    position: relative;
    z-index: 1;
}

.cabinet-feed__head {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: var(--cabinet-gap-tight);
    max-width: 38rem;
}

@media (min-width: 720px) {
    .cabinet-feed__head {
        flex-direction: row;
        align-items: flex-start;
        gap: clamp(1rem, 2.5vw, 1.75rem);
        max-width: none;
    }
}

.cabinet-feed__eyebrow {
    margin: 0;
    align-self: flex-start;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(77, 58, 46, 0.72);
    background: rgba(255, 255, 255, 0.55);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 10px 26px -16px rgba(88, 53, 24, 0.12);
}

.cabinet-feed__head-text {
    flex: 1;
    min-width: 0;
}

.cabinet-feed__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.cabinet-feed__hint {
    margin: 0.45rem 0 0;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: clamp(0.88rem, 1.6vw, 0.95rem);
    line-height: 1.45;
    max-width: 42ch;
}

/* Десктоп: подпись в одну строку (solo — с планшетной ширины; split — когда колонка ленты достаточно широкая) */
@media (min-width: 720px) {
    .cabinet-feed--solo .cabinet-feed__hint {
        max-width: none;
        white-space: nowrap;
    }
}

@media (min-width: 1100px) {
    .cabinet-feed--split .cabinet-feed__hint {
        max-width: none;
        white-space: nowrap;
    }
}

.cabinet-cert-feed-split {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2.4vw, 1.5rem);
    margin-bottom: 0;
    align-items: stretch;
}

.cabinet-cert-feed-split__cert,
.cabinet-cert-feed-split__feed {
    min-width: 0;
}

@media (min-width: 900px) {
    /*
     * Flex вместо grid: колонка auto/1fr у grid давала нестабильную ширину (вплоть до
     * «вся страница в сертификат»). Здесь: левая колонка с жёстким max-width, лента — flex:1.
     */
    .cabinet-cert-feed-split {
        flex-direction: row;
        align-items: stretch;
        gap: clamp(18px, 2.5vw, 28px);
    }

    .cabinet-cert-feed-split__cert {
        flex: 0 1 auto;
        max-width: min(400px, 48%);
        min-width: 0;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: 100%;
    }

    .cabinet-cert-feed-split__feed {
        flex: 1 1 0%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: 100%;
    }

    .cabinet-cert-feed-split .cabinet-certificate-card--split {
        flex: 1;
        min-height: 0;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .cabinet-cert-feed-split .cabinet-certificate-card__head {
        flex-shrink: 0;
        width: 100%;
        max-width: none;
        margin-inline: 0;
    }

    .cabinet-cert-feed-split .cabinet-certificate-card__figure {
        flex: 1;
        min-height: 0;
        width: fit-content;
        max-width: 100%;
        align-self: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cabinet-cert-feed-split .cabinet-certificate-card__figure img {
        width: auto;
        /* Абсолютный потолок — иначе intrinsic width картинки снова раздувает колонку */
        max-width: min(400px, 100%);
        height: auto;
        max-height: 100%;
        object-fit: contain;
        vertical-align: top;
    }

    .cabinet-cert-feed-split .cabinet-feed--split {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .cabinet-cert-feed-split .cabinet-feed__head {
        flex-shrink: 0;
        margin-bottom: var(--cabinet-gap-tight);
    }

    .cabinet-cert-feed-split .cabinet-feed__scroll {
        flex: 1;
        min-height: 0;
        max-height: min(70vh, 640px);
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 4px;
        scrollbar-gutter: stable;
        scrollbar-width: thin;
        scrollbar-color: rgba(170, 122, 75, 0.45) rgba(255, 247, 233, 0.4);
    }

    .cabinet-cert-feed-split .cabinet-feed__scroll::-webkit-scrollbar {
        width: 8px;
    }

    .cabinet-cert-feed-split .cabinet-feed__scroll::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(170, 122, 75, 0.38);
    }

    .cabinet-cert-feed-split .cabinet-feed__scroll::-webkit-scrollbar-track {
        background: rgba(255, 247, 233, 0.5);
        border-radius: 999px;
    }
}

.cabinet-certificate-card--split {
    margin-bottom: 0;
}

.cabinet-cert-feed-split .cabinet-feed {
    margin-bottom: 0;
}

.cabinet-feed__scroll {
    min-height: 0;
}

.cabinet-feed__sentinel {
    width: 100%;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.cabinet-feed__more-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.cabinet-feed__more-btn {
    min-height: 44px;
    padding: 0.45rem 1.15rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 252, 246, 0.95);
    color: var(--ink);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 28px -16px rgba(88, 53, 24, 0.18);
    transition:
        transform 0.4s var(--feed-ease),
        box-shadow 0.4s var(--feed-ease),
        opacity 0.35s var(--feed-ease);
}

.cabinet-feed__more-btn:not([disabled]):hover {
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 16px 34px -14px rgba(88, 53, 24, 0.22);
}

.cabinet-feed__more-btn:not([disabled]):active {
    transform: scale(0.98);
}

.cabinet-feed__more-btn[disabled] {
    opacity: 0.5;
    cursor: wait;
}

.cabinet-feed__more-loading,
.cabinet-feed__more-status {
    margin: 0;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.cabinet-feed__more-loading {
    color: rgba(110, 89, 72, 0.85);
}

@media (min-width: 900px) {
    .cabinet-feed__scroll {
        max-height: min(70vh, 640px);
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 4px;
        scrollbar-gutter: stable;
        scrollbar-width: thin;
        scrollbar-color: rgba(170, 122, 75, 0.45) rgba(255, 247, 233, 0.4);
    }

    .cabinet-feed__scroll::-webkit-scrollbar {
        width: 8px;
    }

    .cabinet-feed__scroll::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(170, 122, 75, 0.38);
    }

    .cabinet-feed__scroll::-webkit-scrollbar-track {
        background: rgba(255, 247, 233, 0.5);
        border-radius: 999px;
    }

    .cabinet-feed--solo .cabinet-feed__scroll {
        max-height: min(78vh, 720px);
    }
}

@media (max-width: 899px) {
    .cabinet-feed__scroll {
        overflow: visible;
    }
}

.cabinet-feed__list {
    display: grid;
    gap: clamp(0.85rem, 2vw, 1.25rem);
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

@media (min-width: 880px) {
    .cabinet-feed__list {
        grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
        align-items: start;
        gap: clamp(1rem, 2vw, 1.5rem);
    }

    .cabinet-feed--split .cabinet-feed__list {
        grid-template-columns: 1fr;
        max-width: none;
    }
}

@keyframes cabinet-feed-card-in {
    from {
        opacity: 0;
        transform: translate3d(0, 16px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.cabinet-feed-card {
    min-width: 0;
    border-radius: clamp(1.25rem, 2.5vw, 1.65rem);
    padding: 2px;
    background: linear-gradient(148deg, rgba(247, 189, 87, 0.42), rgba(216, 188, 147, 0.35) 42%, rgba(184, 222, 206, 0.38));
    box-shadow: 0 22px 48px -30px rgba(88, 53, 24, 0.18);
    display: flex;
    flex-direction: column;
    transition:
        transform 0.55s var(--feed-ease),
        box-shadow 0.55s var(--feed-ease);
    animation: cabinet-feed-card-in 0.75s var(--feed-ease) backwards;
}

.cabinet-feed-card:nth-child(1) {
    animation-delay: 0.04s;
}
.cabinet-feed-card:nth-child(2) {
    animation-delay: 0.1s;
}
.cabinet-feed-card:nth-child(3) {
    animation-delay: 0.16s;
}
.cabinet-feed-card:nth-child(4) {
    animation-delay: 0.22s;
}
.cabinet-feed-card:nth-child(5) {
    animation-delay: 0.28s;
}
.cabinet-feed-card:nth-child(6) {
    animation-delay: 0.34s;
}
.cabinet-feed-card:nth-child(7) {
    animation-delay: 0.4s;
}
.cabinet-feed-card:nth-child(8) {
    animation-delay: 0.46s;
}
.cabinet-feed-card:nth-child(9) {
    animation-delay: 0.52s;
}
.cabinet-feed-card:nth-child(10) {
    animation-delay: 0.58s;
}

@media (hover: hover) and (pointer: fine) {
    .cabinet-feed-card:hover {
        transform: translate3d(0, -4px, 0);
        box-shadow: 0 32px 56px -28px rgba(88, 53, 24, 0.22);
    }
}

.cabinet-feed-card--personal {
    background: linear-gradient(152deg, rgba(184, 222, 206, 0.55), rgba(247, 189, 87, 0.32) 55%, rgba(216, 188, 147, 0.38));
}

.cabinet-feed-card__shell {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: calc(clamp(1.25rem, 2.5vw, 1.65rem) - 2px);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.98) 0%, rgba(255, 247, 233, 0.96) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        inset 0 -1px 0 rgba(170, 122, 75, 0.06);
}

.cabinet-feed-card__media {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: rgba(230, 210, 180, 0.35);
}

.cabinet-feed-card--has-media .cabinet-feed-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(36, 22, 15, 0.12) 100%);
}

.cabinet-feed-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale3d(1, 1, 1);
    transition: transform 0.65s var(--feed-ease);
}

@media (min-width: 900px) {
    .cabinet-cert-feed-split .cabinet-feed-card__media {
        aspect-ratio: 16 / 9;
    }

    .cabinet-cert-feed-split .cabinet-feed-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (hover: hover) and (pointer: fine) {
    .cabinet-feed-card:hover .cabinet-feed-card__media img {
        transform: scale3d(1.03, 1.03, 1);
    }
}

.cabinet-feed-card__body {
    padding: clamp(0.85rem, 2.2vw, 1.15rem) clamp(0.95rem, 2.4vw, 1.25rem) clamp(1rem, 2.4vw, 1.2rem);
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0;
}

.cabinet-feed-card__topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.85rem;
    margin-bottom: 0.55rem;
}

.cabinet-feed-card__pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.28rem 0.65rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(77, 58, 46, 0.78);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.cabinet-feed-card--personal .cabinet-feed-card__pill {
    color: rgba(52, 92, 62, 0.88);
    background: rgba(232, 248, 240, 0.85);
}

.cabinet-feed-card__date {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: rgba(110, 89, 72, 0.88);
    white-space: nowrap;
}

.cabinet-feed-card__heading {
    margin: 0 0 0.5rem;
    font-family: var(--font-body);
    font-size: clamp(0.98rem, 1.8vw, 1.08rem);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.cabinet-feed-card__text {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 600;
}

.cabinet-feed-card__videos {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.cabinet-feed-card__video {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(170, 122, 75, 0.18);
    background: rgba(36, 22, 15, 0.08);
    aspect-ratio: 16 / 9;
}

.cabinet-feed-card__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.cabinet-feed-card__actions {
    margin-top: auto;
    padding-top: 0.85rem;
}

.cabinet-feed-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.45rem 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.72);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 14px 32px -18px rgba(88, 53, 24, 0.2);
    transition:
        transform 0.45s var(--feed-ease),
        box-shadow 0.45s var(--feed-ease),
        background 0.45s var(--feed-ease);
}

.cabinet-feed-card__link-trail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    flex-shrink: 0;
    background: rgba(247, 189, 87, 0.22);
    color: rgba(36, 22, 15, 0.88);
    transition: transform 0.45s var(--feed-ease);
}

.cabinet-feed-card__link:hover {
    background: rgba(255, 252, 246, 0.95);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 18px 40px -16px rgba(88, 53, 24, 0.22);
}

.cabinet-feed-card__link:hover .cabinet-feed-card__link-trail {
    transform: translate3d(2px, -2px, 0) scale(1.04);
}

.cabinet-feed-card__link:active {
    transform: scale(0.98);
}

.cabinet-feed__pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 1rem;
    margin-top: clamp(1.1rem, 2.5vw, 1.45rem);
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.42);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.75) inset,
        0 0 0 1px rgba(216, 188, 147, 0.35);
}

.cabinet-feed__pager-meta {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
    padding: 0 0.35rem;
}

.cabinet-feed__pager .cabinet-feed__pager-btn {
    border-radius: 999px;
    min-height: 44px;
    padding: 0.45rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 800;
    border: none;
    background: rgba(255, 252, 246, 0.95);
    color: var(--ink);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 28px -16px rgba(88, 53, 24, 0.18);
    transition:
        transform 0.4s var(--feed-ease),
        box-shadow 0.4s var(--feed-ease),
        opacity 0.35s var(--feed-ease);
}

.cabinet-feed__pager .cabinet-feed__pager-btn:not([disabled]):hover {
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 16px 34px -14px rgba(88, 53, 24, 0.22);
}

.cabinet-feed__pager .cabinet-feed__pager-btn:not([disabled]):active {
    transform: scale(0.98);
}

.cabinet-feed__pager-btn[disabled] {
    opacity: 0.42;
    pointer-events: none;
}

.admin-client-hive-head span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(170, 122, 75, 0.3);
    background: rgba(255, 243, 212, 0.7);
    color: #5f4a3a;
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-client-empty {
    border-radius: 14px;
    border: 1px dashed rgba(170, 122, 75, 0.3);
    padding: 12px;
    background: rgba(255, 248, 234, 0.72);
}

.admin-client-empty p {
    margin: 0;
}

.admin-client-hives {
    display: grid;
    gap: 10px;
}

.admin-client-hive-form {
    border-radius: 18px;
    border: 1px solid rgba(170, 122, 75, 0.22);
    background: rgba(255, 248, 234, 0.72);
    padding: 18px;
    display: grid;
    gap: 14px;
}

.admin-client-hive-form--new {
    background: rgba(250, 242, 223, 0.78);
}

.admin-client-hive-form label {
    display: grid;
    gap: 6px;
    color: #5d493b;
    font-weight: 700;
}

.admin-client-hive-form textarea {
    min-height: 108px;
    resize: vertical;
}

.admin-webcam-section {
    display: grid;
    gap: 6px;
}

.admin-webcam-section-title {
    margin: 0;
    color: #5d493b;
    font-weight: 700;
    font-size: 0.9rem;
}

.admin-webcam-list {
    display: grid;
    gap: 8px;
}

.admin-webcam-fields {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.admin-webcam-field {
    display: grid;
    gap: 6px;
    color: #5d493b;
    font-weight: 700;
    font-size: 0.86rem;
}

.admin-webcam-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
}

.admin-webcam-remove-btn {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.78rem;
}

.admin-webcam-add-btn {
    justify-self: start;
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.8rem;
}

.admin-client-hive-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 2px;
}

.admin-client-hive-head h4 {
    margin: 0;
    font-size: 0.98rem;
}

.admin-client-hive-image-row {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.admin-client-hive-image-preview {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    border: 1px solid rgba(170, 122, 75, 0.22);
    background:
        linear-gradient(145deg, rgba(255, 251, 241, 0.96), rgba(245, 232, 209, 0.88));
    overflow: hidden;
    display: grid;
    place-items: center;
}

.admin-client-hive-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-client-hive-image-preview span {
    padding: 12px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: #7a624f;
}

.admin-client-hive-image-fields {
    display: grid;
    gap: 10px;
}

.admin-client-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #5d493b;
}

.admin-client-certificate,
.admin-client-profile-card,
.admin-client-danger-zone {
    min-width: 0;
    margin: 0;
    padding: 18px;
    border-radius: 18px;
}

.admin-client-certificate {
    border: 1px solid rgba(170, 122, 75, 0.22);
    background: rgba(255, 251, 241, 0.72);
}

.admin-client-profile-card {
    border: 1px solid rgba(170, 122, 75, 0.22);
    background: rgba(255, 251, 241, 0.82);
}

.admin-client-profile-form,
.admin-client-password-form {
    gap: 12px;
}

.admin-client-password-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(170, 122, 75, 0.18);
}

.admin-client-certificate__title {
    margin: 0 0 12px;
    font-size: 1rem;
    color: #5d493b;
}

.admin-client-certificate-form {
    display: grid;
    gap: 12px;
}

.admin-client-certificate-preview {
    max-width: 280px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(170, 122, 75, 0.2);
    background: color-mix(in srgb, var(--paper) 88%, var(--bg) 12%);
}

.admin-client-certificate-preview img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

.admin-client-certificate-file {
    display: grid;
    gap: 6px;
    color: #5d493b;
    font-weight: 700;
    font-size: 0.86rem;
}

.admin-client-certificate-save {
    justify-self: start;
}

.admin-client-certificate-pdf-note {
    margin: 0 0 8px;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #6b5344;
}

.admin-client-file-status-list {
    display: grid;
    gap: 8px;
}

.admin-client-file-status {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(170, 122, 75, 0.2);
    background: rgba(255, 251, 241, 0.82);
    color: #5d493b;
    text-decoration: none;
}

.admin-client-file-status span {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a6b52;
}

.admin-client-file-status strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.86rem;
}

.admin-client-danger-zone {
    border: 1px solid rgba(180, 60, 60, 0.28);
    background: rgba(255, 246, 244, 0.78);
}

.admin-client-danger-zone__text {
    margin: 0 0 14px;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #5d3d3d;
}

.admin-client-delete-account {
    border-color: rgba(180, 60, 60, 0.45);
    color: #8b2c2c;
}

.admin-client-restore-account {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.82rem;
}

.admin-archive-clients {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(170, 122, 75, 0.22);
}

.admin-archive-clients h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.12rem;
    line-height: 1.25;
}

.admin-archive-clients p {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.45;
}

.admin-archive-clients form {
    margin: 0;
}

.admin-client-checkbox input[type="checkbox"] {
    min-height: auto;
    width: 18px;
    height: 18px;
    margin: 0;
}

.admin-client-hive-meta {
    margin: 0;
    font-size: 0.9rem;
    color: #6a5645;
}

.admin-client-hive-delete-form {
    margin: -6px 0 0;
}

.admin-client-delete-btn {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.82rem;
    font-weight: 800;
}

.admin-device-helper {
    display: grid;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px dashed rgba(170, 122, 75, 0.34);
    background: rgba(255, 252, 244, 0.82);
}

.admin-device-helper__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-device-helper__head strong {
    font-size: 0.92rem;
    color: #5d493b;
}

.admin-device-helper__btn {
    min-height: 38px;
    padding: 0 14px;
}

.admin-device-helper__status {
    margin: 0;
    font-size: 0.88rem;
    color: #6a5645;
}

.admin-device-helper__list[hidden] {
    display: none !important;
}

.admin-device-helper__list {
    display: grid;
    gap: 8px;
}

.admin-device-helper__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 248, 234, 0.9);
    border: 1px solid rgba(170, 122, 75, 0.2);
}

.admin-device-helper__item-main {
    display: grid;
    gap: 3px;
}

.admin-device-helper__item-main strong {
    font-size: 0.9rem;
    color: #4c3829;
}

.admin-device-helper__item-main span,
.admin-device-helper__item-main small {
    color: #6a5645;
    font-size: 0.84rem;
}

.admin-device-helper__item-btn {
    min-height: 34px;
    padding: 0 12px;
    white-space: nowrap;
}

.admin-client-save-btn {
    justify-self: start;
}

.admin-orders p {
    margin: 10px 0 0;
    color: var(--ink-soft);
}

.admin-orders-table-wrap {
    margin-top: 12px;
    overflow-x: auto;
}

.admin-orders-table {
    width: 100%;
    min-width: 1480px;
    table-layout: auto;
    border-collapse: collapse;
    background: rgba(255, 251, 241, 0.92);
    border: 1px solid rgba(170, 122, 75, 0.24);
    border-radius: 14px;
    overflow: hidden;
}

.admin-orders-table th,
.admin-orders-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(170, 122, 75, 0.18);
    vertical-align: top;
    white-space: nowrap;
}

/* Заказ — длинный ref, разрешаем перенос */
.admin-orders-table th:nth-child(1),
.admin-orders-table td:nth-child(1) {
    white-space: normal;
    overflow-wrap: anywhere;
    min-width: 130px;
    max-width: 180px;
}

/* E-mail — может переносится по символу @ */
.admin-orders-table th:nth-child(5),
.admin-orders-table td:nth-child(5) {
    white-space: normal;
    overflow-wrap: anywhere;
    min-width: 140px;
    max-width: 200px;
}

.admin-orders-table th {
    background: rgba(255, 243, 212, 0.65);
    color: #4b392d;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.admin-orders-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    padding: 3px 7px;
    border-radius: 6px;
    white-space: normal;
}

.admin-badge--ok {
    background: rgba(76, 153, 93, 0.12);
    color: #2e6b3a;
}

.admin-badge--pending {
    background: rgba(207, 142, 30, 0.14);
    color: #7a5200;
}

.admin-badge--error {
    background: rgba(200, 60, 50, 0.12);
    color: #8b2012;
}

.admin-order-cancel-btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-order-actions form {
    margin: 0;
}

.admin-send-date-form {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 0 6px 0 0;
    white-space: normal;
}

.admin-send-date-form__label {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    color: var(--ink-soft);
    font-size: 0.86rem;
}

.admin-send-date-form input[type="datetime-local"] {
    min-height: 34px;
    max-width: 180px;
    padding: 5px 8px;
    border: 1px solid rgba(170, 122, 75, 0.32);
    border-radius: 8px;
    background: rgba(255, 251, 241, 0.96);
    color: var(--ink);
    font: inherit;
}

.admin-send-date-form input[type="datetime-local"]:focus {
    outline: 2px solid rgba(167, 119, 62, 0.24);
    border-color: rgba(167, 119, 62, 0.7);
}

.admin-send-date-form__btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.75rem;
}

.admin-order-paid-btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.82rem;
    font-weight: 800;
}

.admin-order-rebuild-btn {
    margin-top: 10px;
}

.admin-promo-settings-form {
    margin: 0 0 18px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(170, 122, 75, 0.22);
    background: rgba(255, 249, 236, 0.72);
}

.admin-addon-orders {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(170, 122, 75, 0.22);
}

.admin-addon-orders h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.12rem;
    line-height: 1.25;
}

/* Клиенты: те же правила — nowrap везде, только имя и email переносятся. */
.admin-orders-table.admin-clients-table {
    table-layout: auto;
    min-width: 1080px;
}

/* Клиент */
.admin-orders-table.admin-clients-table th:nth-child(1),
.admin-orders-table.admin-clients-table td:nth-child(1) {
    white-space: normal;
    overflow-wrap: break-word;
    min-width: 120px;
    max-width: 200px;
}

/* E-mail */
.admin-orders-table.admin-clients-table th:nth-child(2),
.admin-orders-table.admin-clients-table td:nth-child(2) {
    white-space: normal;
    overflow-wrap: anywhere;
    min-width: 140px;
    max-width: 220px;
}

@media (max-width: 1280px) {
    .admin-orders-table {
        min-width: 0;
    }

    .admin-orders-table th,
    .admin-orders-table td {
        padding: 8px 9px;
        font-size: 0.82rem;
    }
}

/* ЛК: видимый фокус у ссылок и вкладок (кнопки .btn — глобально выше) */
.cabinet-auth-inline-link:focus-visible,
.cabinet-auth-link:focus-visible {
    outline: 2px solid rgba(200, 140, 55, 0.95);
    outline-offset: 3px;
    border-radius: 4px;
}

.cabinet-feed-card__link:focus-visible {
    outline: 2px solid rgba(200, 140, 55, 0.95);
    outline-offset: 3px;
}

.cabinet-chart-period-tab:focus-visible,
.cabinet-device-tab-button:focus-visible {
    outline: 2px solid rgba(200, 140, 55, 0.95);
    outline-offset: 3px;
}

.cabinet-audio-item-head a:focus-visible {
    outline: 2px solid rgba(200, 140, 55, 0.95);
    outline-offset: 3px;
    border-radius: 4px;
}

.cabinet-auth-switch-btn:focus-visible {
    outline: 2px solid rgba(200, 140, 55, 0.95);
    outline-offset: 3px;
}

.cabinet-feed__pager .cabinet-feed__pager-btn:focus-visible {
    outline: 2px solid rgba(200, 140, 55, 0.95);
    outline-offset: 3px;
}

/* ЛК: вертикальный ритм — воздух между зонами, меньше «островов-карточек» */
.cabinet-page {
    --cabinet-section-gap: clamp(1.35rem, 3.5vw, 2.5rem);
    --cabinet-gap-tight: clamp(0.75rem, 1.8vw, 1.125rem);
    --cabinet-block-pad: clamp(1.125rem, 3vw, 1.625rem);
    --cabinet-divider: rgba(170, 122, 75, 0.2);
    --cabinet-surface-veil: rgba(255, 247, 233, 0.58);
    --cabinet-radius-panel: 14px;
    --cabinet-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

.cabinet-main {
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
    padding-inline: max(0px, env(safe-area-inset-left, 0px)) max(0px, env(safe-area-inset-right, 0px));
}

.cabinet-auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.cabinet-auth-page .cabinet-main {
    flex: 1;
}

.cabinet-shell {
    display: grid;
    gap: var(--cabinet-section-gap);
    overflow: visible;
}

/* Верх кабинета: заголовок + профиль — один блок, лёгкий «свет» сверху (без стекла/градиентного текста) */
.cabinet-intro {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: clamp(0.65rem, 1.5vw, 1rem);
    padding: clamp(0.85rem, 2.4vw, 1.35rem) 0 clamp(1.05rem, 2.6vw, 1.55rem);
    border-bottom: 1px solid var(--cabinet-divider);
}

.cabinet-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    bottom: 35%;
    background: radial-gradient(ellipse 120% 90% at 12% 0%, rgba(247, 189, 87, 0.09), transparent 58%);
    pointer-events: none;
    z-index: -1;
}

.cabinet-intro .cabinet-top {
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.cabinet-intro .overline {
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    border-color: color-mix(in srgb, var(--line-strong) 70%, transparent);
    background: rgba(255, 248, 232, 0.65);
}

.cabinet-intro .cabinet-top .overline {
    margin: 0;
}

/* Улей — без внешней «коробки»: секции дышат, акценты в типографике */
.cabinet-hive-card {
    padding: clamp(1.75rem, 4vw, 2.75rem) 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* Между несколькими ульями — мягкий «мёдовый» разделитель */
.cabinet-hive-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: clamp(0.75rem, 2.5vw, 1.5rem) 0 clamp(0.25rem, 1.2vw, 0.85rem);
    height: 28px;
    pointer-events: none;
}

/* Первый разделитель после ленты/сертификата: без лишнего верхнего поля — ритм даёт gap контейнера */
.cabinet-hive-divider--lead {
    margin-top: 0;
}

.cabinet-hive-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(170, 122, 75, 0.12) 6%,
        rgba(212, 152, 72, 0.42) 44%,
        rgba(212, 152, 72, 0.42) 56%,
        rgba(170, 122, 75, 0.12) 94%,
        transparent 100%
    );
}

.cabinet-hive-divider::after {
    content: "";
    position: relative;
    z-index: 1;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 78%, #fff 22%);
    box-shadow:
        0 0 0 3px rgba(255, 248, 232, 0.98),
        0 4px 14px rgba(88, 53, 24, 0.14);
}

@media (prefers-reduced-motion: no-preference) {
    .cabinet-hive-divider::after {
        animation: cabinetHiveDividerPulse 4.5s ease-in-out infinite;
    }
}

@keyframes cabinetHiveDividerPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.82;
        transform: scale(0.94);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cabinet-hive-divider::after {
        animation: none;
    }
}

.cabinet-upcoming-labels {
    padding: var(--cabinet-block-pad);
    border-radius: var(--cabinet-radius-panel);
    border: 1px solid color-mix(in srgb, var(--line-strong) 52%, transparent);
    background:
        radial-gradient(120% 90% at 12% 0%, rgba(255, 248, 232, 0.88), transparent 55%),
        rgba(255, 251, 243, 0.72);
    box-shadow: none;
}

.cabinet-upsell {
    padding: var(--cabinet-block-pad);
    border-radius: var(--cabinet-radius-panel);
    border: 1px solid color-mix(in srgb, var(--line-strong) 52%, transparent);
    background:
        linear-gradient(135deg, rgba(255, 252, 246, 0.94), rgba(247, 236, 218, 0.88));
    box-shadow: none;
}

.cabinet-upsell__head {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.cabinet-upsell__kicker,
.cabinet-upsell-card__kicker {
    margin: 0;
    color: #8a6649;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cabinet-upsell__head h2 {
    margin: 0;
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    line-height: 1.2;
}

.cabinet-upsell__head p {
    max-width: 760px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.5;
}

.cabinet-upsell-form {
    display: grid;
    gap: 14px;
}

.cabinet-upsell-form__hive {
    display: grid;
    max-width: 420px;
    gap: 7px;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 800;
}

.cabinet-upsell-form__hive select {
    min-height: 46px;
    width: 100%;
    border: 1px solid rgba(120, 85, 52, 0.22);
    border-radius: 12px;
    background: rgba(255, 253, 249, 0.9);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    padding: 0 12px;
}

.cabinet-upsell__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cabinet-upsell-card {
    position: relative;
    display: grid;
    min-width: 0;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(170, 122, 75, 0.18);
    background: rgba(255, 253, 249, 0.78);
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.cabinet-upsell-card:hover,
.cabinet-upsell-card:focus-within {
    border-color: rgba(126, 86, 43, 0.42);
    background: rgba(255, 251, 241, 0.94);
}

.cabinet-upsell-card input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.cabinet-upsell-card::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 14px;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(120, 85, 52, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 5px transparent;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.cabinet-upsell-card:has(input:checked) {
    border-color: rgba(113, 74, 31, 0.62);
    background: rgba(255, 245, 226, 0.98);
}

.cabinet-upsell-card:has(input:checked)::after {
    border-color: rgba(113, 74, 31, 0.82);
    background: #7b4d20;
    box-shadow: inset 0 0 0 5px #fff8ea;
}

.cabinet-upsell-card__body {
    display: grid;
    align-content: start;
    gap: 8px;
    padding-right: 34px;
}

.cabinet-upsell-card__title {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
}

.cabinet-upsell-card__text {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
}

.cabinet-upsell-card__price {
    justify-self: start;
    margin-top: 2px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(122, 78, 28, 0.1);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 800;
}

.cabinet-upsell-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 2px;
}

.cabinet-upsell-form__status {
    min-height: 1.5em;
    margin: 0;
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 850;
}

.cabinet-upsell-form__status.is-error {
    color: #9b2f21;
}

@media (max-width: 899px) {
    .cabinet-upsell__grid {
        grid-template-columns: 1fr;
    }

    .cabinet-upsell-form__footer {
        align-items: stretch;
        flex-direction: column;
    }
}

.cabinet-auth-card,
.cabinet-empty-state,
.cabinet-meta-row article,
.cabinet-metric-card,
.cabinet-sensor-card {
    border-radius: var(--cabinet-radius-panel);
    border: 1px solid color-mix(in srgb, var(--line-strong) 58%, transparent);
    background: var(--cabinet-surface-veil);
    box-shadow: none;
    transition:
        border-color 0.22s var(--cabinet-ease-out),
        background-color 0.22s var(--cabinet-ease-out),
        box-shadow 0.22s var(--cabinet-ease-out);
}

@media (hover: hover) {
    .cabinet-auth-card:hover,
    .cabinet-metric-card:hover,
    .cabinet-sensor-card:not(.cabinet-sensor-card--loading):hover {
        border-color: color-mix(in srgb, var(--line-strong) 78%, var(--accent) 22%);
        background: color-mix(in srgb, var(--cabinet-surface-veil) 92%, #fff 8%);
        box-shadow: 0 14px 36px rgba(88, 53, 24, 0.06);
    }
}

.cabinet-intro .cabinet-top h1 {
    margin: 4px 0 0;
    font-size: clamp(1.72rem, 3.85vw, 2.72rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    max-width: min(100%, 26ch);
    text-wrap: balance;
    text-rendering: optimizeLegibility;
}

/* Восстановление пароля и др.: заголовок без блока .cabinet-intro */
.cabinet-auth-page .cabinet-shell > .cabinet-top {
    padding: clamp(1.15rem, 3.5vw, 1.85rem) 0 clamp(1rem, 2.8vw, 1.5rem);
    border-bottom: 1px solid var(--cabinet-divider);
}

.cabinet-auth-page .cabinet-top h1 {
    margin: 8px 0 0;
    font-size: clamp(1.75rem, 4vw, 2.85rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
}

.cabinet-top p {
    margin: 12px 0 0;
    color: var(--ink-soft);
    max-width: 70ch;
}

.cabinet-alert {
    border-radius: 16px;
    padding: 12px 14px;
    border: 1px solid;
    font-weight: 700;
}

.cabinet-alert p {
    margin: 0;
}

.cabinet-alert p + p {
    margin-top: 6px;
}

.cabinet-alert--success {
    border-color: rgba(95, 147, 56, 0.45);
    background: rgba(224, 247, 205, 0.9);
    color: #2d4b18;
}

.cabinet-alert--error {
    border-color: rgba(188, 86, 70, 0.5);
    background: rgba(255, 231, 227, 0.9);
    color: #7d2d24;
}

.cabinet-auth-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--cabinet-gap-tight);
    max-width: 680px;
    width: 100%;
    margin-inline: auto;
}

.cabinet-auth-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(170, 122, 75, 0.3);
    background: rgba(255, 251, 241, 0.92);
}

.cabinet-auth-switch-btn {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(170, 122, 75, 0.3);
    background: rgba(255, 251, 241, 0.92);
    color: #4b392d;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.18s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.18s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.cabinet-auth-switch-btn:hover {
    background: rgba(255, 241, 205, 0.96);
    border-color: rgba(167, 119, 62, 0.6);
    transform: translateY(-1px);
}

.cabinet-auth-switch-btn.is-active {
    background: #f7bd57;
    border-color: rgba(156, 104, 42, 0.62);
    color: #2e2017;
}

.cabinet-auth-card {
    padding: var(--cabinet-block-pad);
}

.cabinet-auth-card h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
}

.cabinet-auth-card p {
    margin: 10px 0 0;
    color: var(--ink-soft);
}

.cabinet-auth-help {
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-weight: 600;
}

.cabinet-auth-link {
    border: 0;
    background: transparent;
    color: #5a3f2b;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    padding: 0;
}

.cabinet-auth-link:hover {
    color: #362417;
}

.cabinet-auth-forgot-line {
    margin: 4px 0 0;
}

.cabinet-auth-inline-link {
    color: #5a3f2b;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.cabinet-auth-inline-link:hover {
    color: #362417;
}

.cabinet-form {
    margin-top: var(--cabinet-gap-tight);
    display: grid;
    gap: 0.625rem;
}

.cabinet-form label {
    display: grid;
    gap: 6px;
    font-weight: 700;
    color: #5d493b;
}

.cabinet-form input {
    min-height: 44px;
    padding: 9px 11px;
    border-radius: 12px;
    border: 1px solid rgba(170, 122, 75, 0.34);
    background: rgba(255, 251, 241, 0.92);
    color: var(--ink);
    font: inherit;
}

.cabinet-form .phone-input-wrap input {
    padding-left: 50px;
}

.cabinet-form input:focus-visible {
    outline: 2px solid rgba(247, 189, 87, 0.72);
    outline-offset: 1px;
}

.cabinet-user-card {
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 2.8vw, 22px);
}

.cabinet-user-card__main {
    min-width: 0;
}

.cabinet-user-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6f5642;
}

.cabinet-user-card__name {
    margin: 0;
    font-size: clamp(1.12rem, 2.1vw, 1.48rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.cabinet-user-card__contacts {
    margin: 6px 0 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 36rem;
    color: var(--ink-soft);
    font-size: 0.93rem;
    line-height: 1.45;
}

.cabinet-user-card__contacts span {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cabinet-user-card__contacts strong {
    font-weight: 700;
    color: #5d493b;
}

.cabinet-user-card__logout {
    flex-shrink: 0;
    margin: 0;
}

.cabinet-page .cabinet-user-card .btn-outline,
.cabinet-page .cabinet-auth-card .btn-solid {
    border-radius: 11px;
    min-height: 46px;
    min-width: 44px;
    padding-inline: 22px;
    transition:
        background-color 0.2s var(--cabinet-ease-out),
        border-color 0.2s var(--cabinet-ease-out),
        box-shadow 0.2s var(--cabinet-ease-out),
        transform 0.18s var(--cabinet-ease-out);
}

.cabinet-page .cabinet-user-card .btn-outline {
    background: rgba(255, 252, 244, 0.35);
    border-color: rgba(170, 122, 75, 0.32);
    box-shadow: none;
}

.cabinet-page .cabinet-user-card .btn-outline:hover {
    background: rgba(255, 248, 236, 0.85);
    transform: translateY(-1px);
}

.cabinet-page .cabinet-user-card .btn-outline:active {
    transform: translateY(0) scale(0.98);
}

.cabinet-page .cabinet-auth-card .btn-solid:active {
    transform: translateY(0) scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
    .cabinet-page .cabinet-user-card .btn-outline:active,
    .cabinet-page .cabinet-auth-card .btn-solid:active,
    .cabinet-chart-period-tab:active {
        transform: none;
    }
}

.cabinet-consents-card {
    padding: 0;
    margin: 0;
}

.cabinet-consents-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cabinet-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--ink-soft);
    line-height: 1.45;
    cursor: pointer;
}

.cabinet-consent-label input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #a47b4c;
    cursor: pointer;
}

.cabinet-consents-save {
    align-self: flex-start;
    margin-top: 4px;
}

/* ── Privacy consent modal ───────────────────────────────────────────── */

.consent-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9900;
    background: #fff4e8;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.consent-modal {
    background: #fff4e8;
    width: 100%;
    max-width: 720px;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.consent-modal__header {
    padding: 32px clamp(18px, 5vw, 48px) 20px;
    border-bottom: 1px solid var(--stroke-light, #e8ddd2);
    flex-shrink: 0;
}

.consent-modal__title {
    margin: 0 0 4px;
    font-size: 1.2rem;
    font-family: var(--font-heading, 'Yeseva One', serif);
    color: var(--ink, #2a1a08);
}

.consent-modal__subtitle {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ink-soft, #7a6250);
}

.consent-modal__body {
    flex: 1 1 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px clamp(18px, 5vw, 48px);
    overscroll-behavior: contain;
}

.consent-modal__policy h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 20px 0 8px;
    color: var(--ink, #2a1a08);
}

.consent-modal__policy h3:first-child {
    margin-top: 0;
}

.consent-modal__policy p,
.consent-modal__policy ol {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--ink-soft, #5a4030);
    margin: 0 0 10px;
}

.consent-modal__policy ol {
    padding-left: 20px;
}

.consent-modal__policy li {
    margin-bottom: 4px;
}

.consent-modal__scroll-hint {
    text-align: center;
    padding: 8px 28px;
    font-size: 0.8rem;
    color: var(--ink-muted, #a08870);
    background: linear-gradient(to top, #fff 60%, transparent);
    flex-shrink: 0;
    pointer-events: none;
}

.consent-modal__footer {
    padding: 20px clamp(18px, 5vw, 48px) 32px;
    border-top: 1px solid var(--stroke-light, #e8ddd2);
    flex-shrink: 0;
}

.consent-modal__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.consent-modal__check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--ink-soft, #5a4030);
    line-height: 1.45;
    cursor: pointer;
}

.consent-modal__check-label input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #a47b4c;
    cursor: pointer;
}

.consent-modal__check-label--required {
    font-weight: 500;
}

.consent-modal__accept-btn {
    align-self: flex-start;
    margin-top: 4px;
    transition: opacity 0.2s;
}

.consent-modal__accept-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 480px) {
    .consent-modal__accept-btn {
        align-self: stretch;
        text-align: center;
    }
}

.cabinet-upcoming-labels__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(200px, 0.95fr);
    gap: clamp(18px, 3vw, 28px);
    align-items: center;
}

.cabinet-upcoming-labels__kicker {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a6649;
}

.cabinet-upcoming-labels__copy h2 {
    margin: 8px 0 0;
    font-size: clamp(1.2rem, 2.4vw, 1.65rem);
    line-height: 1.2;
}

.cabinet-upcoming-labels__lead {
    margin: 12px 0 0;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 52ch;
}

.cabinet-upcoming-labels__gallery-shell {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
}

.cabinet-upcoming-labels__gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 4px 0 2px;
}

.cabinet-upcoming-labels__gallery-card {
    flex: 0 0 auto;
    width: clamp(76px, 14vw, 104px);
    height: auto;
    display: block;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    text-decoration: none;
    cursor: zoom-in;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 10px 26px rgba(45, 28, 14, 0.18),
        0 2px 6px rgba(45, 28, 14, 0.08);
    background: #fff;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}

.cabinet-upcoming-labels__gallery-card img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

@media (hover: hover) {
    .cabinet-upcoming-labels__gallery-card:hover {
        box-shadow:
            0 14px 32px rgba(45, 28, 14, 0.22),
            0 3px 8px rgba(45, 28, 14, 0.1);
        transform: translateY(-2px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cabinet-upcoming-labels__gallery-card {
        transition: none;
    }

    .cabinet-upcoming-labels__gallery-card:hover {
        transform: none;
    }
}

@media (max-width: 820px) {
    .cabinet-upcoming-labels__layout {
        grid-template-columns: 1fr;
    }

    .cabinet-upcoming-labels__gallery {
        max-width: 100%;
        gap: 8px;
    }

    .cabinet-upcoming-labels__gallery-card {
        width: clamp(70px, 22vw, 96px);
    }
}

.cabinet-upcoming-labels__gallery-card:focus-visible {
    outline: 2px solid rgba(174, 122, 69, 0.75);
    outline-offset: 3px;
}

.cabinet-meta-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--cabinet-gap-tight);
    padding: 6px;
    margin: -6px;
    overflow: visible;
}

.cabinet-meta-row article {
    padding: 14px;
}

.cabinet-meta-row h3 {
    margin: 0;
    font-size: 1rem;
}

.cabinet-meta-row p {
    margin: 8px 0 0;
    color: var(--ink-soft);
}

.cabinet-certificate-card {
    padding: var(--cabinet-block-pad);
    margin-bottom: 0;
    border-radius: var(--cabinet-radius-panel);
    border: 1px solid color-mix(in srgb, var(--line-strong) 55%, transparent);
    background: var(--cabinet-surface-veil);
    box-shadow: none;
    display: grid;
    gap: 14px;
}

.cabinet-certificate-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cabinet-certificate-card__head h3 {
    margin: 0;
    font-size: 1.1rem;
}

.cabinet-certificate-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.cabinet-certificate-card__figure {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(170, 122, 75, 0.22);
    /* Не #fff: при object-fit:contain поля совпадают с фоном страницы, без «коробки» */
    background: color-mix(in srgb, var(--paper) 88%, var(--bg) 12%);
    max-width: min(720px, 100%);
    margin-inline: auto;
}

.cabinet-certificate-card__figure img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}

.cabinet-labels {
    position: relative;
    overflow: hidden;
    padding: var(--cabinet-block-pad);
    border: 1px solid color-mix(in srgb, var(--line-strong) 55%, transparent);
    border-radius: var(--cabinet-radius-panel);
    background: var(--cabinet-surface-veil);
    display: grid;
    gap: 18px;
}

.cabinet-labels__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.cabinet-labels__eyebrow {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cabinet-labels__head h2 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.08;
}

.cabinet-labels__status {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(201, 107, 44, 0.12);
    color: #8b4d19;
    font-weight: 800;
    font-size: 0.84rem;
}

.cabinet-labels__status--ready {
    background: rgba(54, 128, 86, 0.14);
    color: #2f704b;
}

.cabinet-labels-summary {
    display: grid;
    grid-template-columns: minmax(110px, 150px) minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(119, 87, 50, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
}

.cabinet-labels-summary__preview {
    border: 0;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: color-mix(in srgb, var(--paper) 92%, var(--bg) 8%);
    color: var(--accent);
    font-size: 2rem;
    font-weight: 900;
    cursor: zoom-in;
    padding: 0;
}

.cabinet-labels-summary__preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cabinet-labels-summary__body {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.cabinet-labels-summary__body h3 {
    margin: 0;
    font-size: 1.16rem;
    line-height: 1.15;
}

.cabinet-labels-summary__body p {
    margin: 0;
    max-width: 64ch;
    color: var(--ink-soft);
    line-height: 1.5;
}

.cabinet-labels-summary__body small {
    color: var(--ink);
    font-weight: 800;
}

.cabinet-labels-summary__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.cabinet-label-picker {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
}

.cabinet-label-picker[hidden] {
    display: none;
}

.cabinet-label-picker__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(35, 26, 17, 0.54);
    backdrop-filter: blur(10px);
}

.cabinet-label-picker__panel {
    position: relative;
    width: min(980px, 100%);
    max-height: min(86vh, 860px);
    overflow: auto;
    border: 1px solid rgba(119, 87, 50, 0.2);
    border-radius: 24px;
    background: color-mix(in srgb, var(--paper) 94%, white 6%);
    box-shadow: 0 28px 80px rgba(58, 43, 26, 0.24);
    padding: clamp(18px, 3vw, 28px);
}

.cabinet-label-picker__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(119, 87, 50, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.cabinet-label-picker__close:hover,
.cabinet-label-picker__close:focus-visible {
    border-color: var(--accent);
    outline: none;
}

.cabinet-label-picker__head {
    display: grid;
    gap: 7px;
    padding-right: 44px;
    margin-bottom: 18px;
}

.cabinet-label-picker__head h3 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.08;
}

.cabinet-label-picker__head p {
    margin: 0;
    max-width: 62ch;
    color: var(--ink-soft);
    line-height: 1.5;
}

.cabinet-labels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.cabinet-label-card {
    position: relative;
    display: grid;
    gap: 10px;
    cursor: pointer;
}

.cabinet-label-card input {
    position: absolute;
    inset: 12px auto auto 12px;
    z-index: 2;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.cabinet-label-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 2px solid rgba(119, 87, 50, 0.16);
    border-radius: 16px;
    background: color-mix(in srgb, var(--paper) 92%, var(--bg) 8%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: zoom-in;
}

.cabinet-label-card__image:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 50%, white 50%);
    outline-offset: 3px;
}

.cabinet-label-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cabinet-label-card input:checked + .cabinet-label-card__image {
    border-color: var(--accent);
    box-shadow: 0 14px 34px rgba(201, 107, 44, 0.18);
}

.cabinet-label-card__title {
    font-weight: 800;
    color: var(--ink);
}

.cabinet-labels-text {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    font-weight: 800;
    color: var(--ink);
}

.cabinet-labels-text textarea {
    width: 100%;
    min-height: 112px;
    resize: vertical;
    border: 1px solid rgba(119, 87, 50, 0.22);
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.82);
}

.cabinet-labels-submit {
    margin-top: 0;
}

.cabinet-label-picker__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.cabinet-label-zoom {
    position: fixed;
    inset: 0;
    z-index: 96;
    display: grid;
    place-items: center;
    padding: 18px;
}

.cabinet-label-zoom[hidden] {
    display: none;
}

.cabinet-label-zoom__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(21, 16, 11, 0.72);
    backdrop-filter: blur(8px);
}

.cabinet-label-zoom__panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    width: min(980px, 96vw);
    max-height: 92vh;
    margin: 0;
    padding: clamp(12px, 2vw, 18px);
    border-radius: 22px;
    background: color-mix(in srgb, var(--paper) 94%, white 6%);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.cabinet-label-zoom__panel img {
    display: block;
    width: 100%;
    max-height: calc(92vh - 96px);
    object-fit: contain;
    border-radius: 16px;
    background: color-mix(in srgb, var(--paper) 92%, var(--bg) 8%);
}

.cabinet-label-zoom__panel figcaption {
    color: var(--ink);
    font-weight: 800;
    text-align: center;
}

.cabinet-label-zoom__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(119, 87, 50, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.cabinet-label-zoom__close:hover,
.cabinet-label-zoom__close:focus-visible {
    border-color: var(--accent);
    outline: none;
}

.cabinet-labels-note,
.cabinet-labels-empty,
.cabinet-labels-result {
    border: 1px solid rgba(119, 87, 50, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
}

.cabinet-labels-note {
    display: grid;
    gap: 4px;
    margin-bottom: 18px;
    padding: 14px 16px;
    color: var(--ink);
}

.cabinet-labels-empty {
    padding: 18px;
}

.cabinet-labels-empty h3,
.cabinet-labels-result h3 {
    margin: 0 0 8px;
}

.cabinet-labels-empty p,
.cabinet-labels-result p {
    margin: 0;
    color: var(--ink-soft);
}

.cabinet-labels-result {
    display: grid;
    grid-template-columns: minmax(160px, 260px) 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.cabinet-labels-result__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: color-mix(in srgb, var(--paper) 92%, var(--bg) 8%);
}

.cabinet-labels-result__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cabinet-labels-result__body {
    display: grid;
    gap: 12px;
    justify-items: start;
}

@media (max-width: 640px) {
    .cabinet-labels__head,
    .cabinet-labels-result,
    .cabinet-labels-summary {
        grid-template-columns: 1fr;
        display: grid;
    }

    .cabinet-labels-summary__actions {
        justify-content: flex-start;
    }

    .cabinet-labels__status {
        justify-self: start;
    }

    .cabinet-label-picker {
        padding: 10px;
        align-items: end;
    }

    .cabinet-label-picker__panel {
        width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        padding: 18px;
    }
}

/* Десктоп: превью сертификата — компактнее по ширине и высоте, по центру карточки */
@media (min-width: 720px) {
    .cabinet-certificate-card {
        gap: 16px;
    }

    .cabinet-certificate-card__head {
        max-width: 440px;
        width: 100%;
        margin-inline: auto;
    }

    .cabinet-certificate-card__figure {
        max-width: min(400px, 88%);
    }

    .cabinet-certificate-card__figure img {
        width: auto;
        max-width: 100%;
        max-height: min(58vh, 520px);
        height: auto;
        margin-inline: auto;
        object-fit: contain;
    }

}

/* Сплит в одну колонку (720–899): figure на ширину карточки; с 900px — см. блок выше (fit-content) */
@media (min-width: 720px) and (max-width: 899px) {
    .cabinet-cert-feed-split .cabinet-certificate-card__head {
        max-width: none;
        margin-inline: 0;
    }

    .cabinet-cert-feed-split .cabinet-certificate-card__figure {
        max-width: 100%;
    }
}

.cabinet-empty-state {
    padding: var(--cabinet-block-pad);
}

.cabinet-empty-state h3 {
    margin: 0;
    font-size: 1.1rem;
}

.cabinet-empty-state p {
    margin: 10px 0 0;
    color: var(--ink-soft);
}

.cabinet-hive-card {
    display: grid;
    gap: var(--cabinet-gap-tight);
}

.cabinet-hive-hero {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: var(--cabinet-section-gap);
    align-items: start;
}

.cabinet-hive-body {
    display: grid;
    gap: var(--cabinet-gap-tight);
    min-width: 0;
}

.cabinet-hive-photo {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    border: 1px solid rgba(170, 122, 75, 0.18);
    background:
        radial-gradient(circle at top left, rgba(255, 246, 223, 0.95), rgba(240, 224, 194, 0.84));
    overflow: hidden;
    position: relative;
}

.cabinet-hive-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cabinet-hive-photo-download {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    max-width: calc(100% - 20px);
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    background: rgba(55, 42, 31, 0.74);
    color: #fffaf1;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(38, 24, 12, 0.22);
    backdrop-filter: blur(10px);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.cabinet-hive-photo-download svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cabinet-hive-photo-download span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cabinet-hive-photo-download:hover {
    border-color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 242, 204, 0.95);
    color: #4a2b13;
    box-shadow: 0 12px 28px rgba(38, 24, 12, 0.32), 0 0 0 1px rgba(74, 43, 19, 0.08);
    transform: translateY(-1px);
}

.cabinet-hive-photo-download:focus-visible {
    outline: 3px solid rgba(255, 211, 122, 0.86);
    outline-offset: 2px;
}

.cabinet-hive-photo-download:active {
    transform: translateY(0);
}

.cabinet-hive-photo-placeholder {
    height: 100%;
    display: grid;
    align-content: end;
    gap: 8px;
    padding: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(199, 148, 86, 0.14)),
        radial-gradient(rgba(174, 131, 78, 0.12) 0.7px, transparent 0.7px) 0 0 / 18px 18px;
}

.cabinet-hive-photo-placeholder strong {
    font-size: 1rem;
    color: #4d3b2e;
}

.cabinet-hive-photo-placeholder span {
    color: #6e5948;
    font-size: 0.86rem;
    line-height: 1.4;
}

.cabinet-hive-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.cabinet-hive-head h2 {
    margin: 8px 0 0;
    font-size: clamp(1.16rem, 2.5vw, 1.7rem);
}

.cabinet-hive-meta {
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--ink-soft);
}

.cabinet-hive-meta span {
    padding: 3px 8px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--paper) 88%, var(--accent-soft));
    border: 1px solid rgba(170, 122, 75, 0.18);
    font-size: 0.8rem;
}

.cabinet-hive-description {
    margin: 0;
    color: var(--ink-soft);
}

.cabinet-hive-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    padding-top: 2px;
}

.cabinet-hive-stats div {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    border-bottom: 1px dashed rgba(170, 122, 75, 0.28);
    display: grid;
    gap: 4px;
    padding-bottom: 10px;
    min-width: min(100%, 220px);
}

.cabinet-hive-stats strong {
    font-size: 0.84rem;
}

.cabinet-hive-stats span {
    color: var(--ink-soft);
}

.cabinet-hive-cameras {
    margin-top: clamp(0.5rem, 2vw, 1rem);
    padding-top: clamp(1rem, 2.5vw, 1.35rem);
    border-top: 1px solid var(--cabinet-divider);
    display: grid;
    gap: 12px;
}

.cabinet-hive-cameras h3 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6f5642;
}

.cabinet-hive-cameras-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cabinet-hive-camera-card {
    border-radius: 0;
    border: none;
    background: transparent;
    padding: 0;
    display: grid;
    gap: 8px;
}

.cabinet-hive-camera-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    color: #5d493b;
}

.cabinet-hive-camera-frame {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(170, 122, 75, 0.16);
    background: #12100e;
    aspect-ratio: 16 / 9;
    box-shadow: 0 12px 32px rgba(45, 28, 14, 0.1);
}

.cabinet-hive-camera-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.cabinet-hive-camera-watermark {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: auto;
    border-radius: 9px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    pointer-events: none;
    z-index: 2;
}

.cabinet-hive-camera-fs {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 3;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 248, 235, 0.35);
    background: rgba(20, 14, 10, 0.72);
    color: #fff7ea;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.cabinet-hive-camera-fs:focus-visible {
    outline: 2px solid rgba(247, 189, 87, 0.85);
    outline-offset: 2px;
}

@media (min-width: 900px) {
    .cabinet-hive-camera-fs {
        display: none;
    }
}

.cabinet-hive-camera-frame--expanded {
    position: fixed;
    inset: 0;
    z-index: 9999;
    border-radius: 0;
    aspect-ratio: unset;
}

.overflow-hidden {
    overflow: hidden;
}

.cabinet-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 7px;
    border: 1px solid rgba(170, 122, 75, 0.28);
    background: rgba(255, 241, 205, 0.72);
    color: #6b523f;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 800;
    white-space: nowrap;
}

.cabinet-status-badge--connected {
    background: rgba(224, 247, 205, 0.94);
    border-color: rgba(95, 147, 56, 0.4);
    color: #2d4b18;
}

.cabinet-status-badge--pending_assignment {
    background: rgba(255, 241, 205, 0.92);
}

.cabinet-status-badge--api_unconfigured,
.cabinet-status-badge--api_error {
    background: rgba(255, 231, 227, 0.92);
    border-color: rgba(188, 86, 70, 0.42);
    color: #7d2d24;
}

.cabinet-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--cabinet-gap-tight);
}

.cabinet-metric-card {
    padding: 14px;
    display: grid;
    gap: 6px;
}

.cabinet-metric-label {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.84rem;
    font-weight: 700;
}

.cabinet-metric-card strong {
    font-size: 1.18rem;
    font-variant-numeric: tabular-nums;
    white-space: pre-line;
}

.cabinet-metric-card span,
.cabinet-metric-card small {
    color: var(--ink-soft);
}

.cabinet-sensors-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--cabinet-section-gap);
    padding: 0;
    margin: 0;
    overflow: visible;
}

.cabinet-sensor-card {
    padding: 12px;
    display: grid;
    gap: 8px;
}

.cabinet-sensor-card--tabbed {
    grid-column: 1 / -1;
    padding: clamp(14px, 2.5vw, 18px);
    gap: 16px;
}

.cabinet-sensor-card--wide {
    grid-column: 1 / -1;
}

.cabinet-sensor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cabinet-sensor-head h3 {
    margin: 0;
    font-size: 0.98rem;
}

.cabinet-sensor-head span {
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(170, 122, 75, 0.22);
    background: rgba(255, 248, 236, 0.75);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
    color: #6b523f;
    white-space: nowrap;
}

.cabinet-sensor-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.93rem;
}

.cabinet-sensor-submeta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.cabinet-sensor-submeta span {
    color: rgba(106, 86, 69, 0.55);
}

.cabinet-chart-period-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
    padding: 4px;
    border-radius: 11px;
    border: 1px solid rgba(170, 122, 75, 0.18);
    background: rgba(255, 252, 244, 0.85);
}

.cabinet-chart-period-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: #5d493b;
    border-radius: 8px;
    min-height: 36px;
    padding: 0 14px;
    font: inherit;
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
    transition:
        background-color 0.2s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.2s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.cabinet-chart-period-tab:hover {
    background: rgba(255, 241, 205, 0.55);
}

.cabinet-chart-period-tab.is-active {
    background: color-mix(in srgb, var(--accent) 92%, #fff 8%);
    color: #2f241a;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.cabinet-chart-period-tab:active {
    transform: scale(0.98);
}

@media (max-width: 720px) {
    .cabinet-chart-period-tab {
        min-height: 42px;
        padding: 0 16px;
    }
}

.cabinet-chart-svg-wrap {
    display: contents;
}

.cabinet-device-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 4px;
    padding: 0;
    border-bottom: 1px solid var(--cabinet-divider);
}

.cabinet-device-tab-button {
    appearance: none;
    position: relative;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    color: rgba(93, 73, 59, 0.72);
    border-radius: 0;
    min-height: 44px;
    padding: 10px 16px 12px 0;
    margin-right: clamp(8px, 2vw, 18px);
    font: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition:
        color 0.2s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.cabinet-device-tab-button:hover {
    color: #3d2e24;
}

.cabinet-device-tab-button.is-active {
    color: #2f241a;
    font-weight: 800;
    border-bottom-color: color-mix(in srgb, var(--accent) 75%, #c96b2c 25%);
}

.cabinet-device-tab-button:active {
    opacity: 0.88;
}

.cabinet-device-panels {
    display: grid;
}

.cabinet-device-panel[hidden] {
    display: none !important;
}

.cabinet-device-panel-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.82fr);
    gap: 18px;
    align-items: start;
}

.cabinet-device-panel-chart,
.cabinet-device-panel-aside {
    min-width: 0;
}

.cabinet-chart-frame {
    display: grid;
    gap: 10px;
}

.cabinet-chart-axis-caption {
    margin: 0;
    color: #6b523f;
    font-size: 0.86rem;
    font-weight: 800;
}

.cabinet-chart-axis-caption--x {
    text-align: center;
}

.cabinet-device-panel-chart-canvas {
    position: relative;
    height: 300px;
    border-radius: 12px;
    border: 1px solid rgba(170, 122, 75, 0.12);
    background: rgba(255, 252, 244, 0.88);
    overflow: visible;
    z-index: 1;
}

.cabinet-device-panel-chart-canvas--bars {
    background: rgba(255, 252, 244, 0.94);
}

.cabinet-device-panel-chart-canvas--spectrum {
    background: rgba(255, 252, 244, 0.94);
}

.cabinet-device-panel-chart-canvas svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cabinet-chart-grid-line {
    stroke: rgba(170, 122, 75, 0.16);
    stroke-width: 1;
}

.cabinet-chart-grid-line--vertical {
    stroke: rgba(170, 122, 75, 0.11);
}

.cabinet-chart-tick-label {
    fill: #8a6b53;
    font-size: 10px;
    font-weight: 700;
}

.cabinet-chart-tick-label--spectrum {
    font-size: 10.5px;
    font-weight: 800;
}

.cabinet-spectrum-ribbon {
    opacity: 0.95;
}

.cabinet-chart-dot,
.cabinet-chart-bar {
    cursor: pointer;
    transition: opacity 0.18s ease;
}

.cabinet-chart-dot--hitarea {
    cursor: pointer;
}

.cabinet-chart-dot:hover,
.cabinet-chart-bar:hover {
    opacity: 1;
}

.cabinet-chart-tooltip {
    position: absolute;
    z-index: 6;
    pointer-events: none;
    max-width: 220px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(170, 122, 75, 0.2);
    background: rgba(47, 36, 26, 0.94);
    color: #fff8ef;
    box-shadow: 0 12px 30px rgba(47, 36, 26, 0.18);
    transform: translate(-50%, calc(-100% - 12px));
}

.cabinet-chart-tooltip strong,
.cabinet-chart-tooltip span {
    display: block;
}

.cabinet-chart-tooltip strong {
    font-size: 0.9rem;
    line-height: 1.2;
}

.cabinet-chart-tooltip span {
    margin-top: 4px;
    color: rgba(255, 248, 239, 0.82);
    font-size: 0.78rem;
}

.cabinet-device-panel-placeholder {
    height: 300px;
    border-radius: 12px;
    border: 1px dashed rgba(170, 122, 75, 0.2);
    background: rgba(255, 252, 244, 0.72);
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 24px;
    text-align: center;
    color: var(--ink-soft);
}

.cabinet-device-panel-placeholder strong {
    color: var(--ink);
    font-size: 1rem;
}

.cabinet-audio-list {
    display: grid;
    gap: 12px;
}

.cabinet-audio-item {
    border-radius: 12px;
    border: 1px solid rgba(170, 122, 75, 0.12);
    background: rgba(255, 252, 244, 0.88);
    padding: 14px 16px;
    display: grid;
    gap: 10px;
}

.cabinet-audio-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cabinet-audio-item-head strong {
    font-size: 0.98rem;
    color: #2f241a;
}

.cabinet-audio-item-head a {
    color: #a55d1c;
    font-weight: 800;
    text-decoration: none;
}

.cabinet-audio-item audio {
    width: 100%;
}

.cabinet-device-panel-aside {
    display: grid;
    gap: 0;
    align-content: start;
    grid-auto-rows: max-content;
    border-radius: var(--cabinet-radius-panel);
    border: 1px solid rgba(170, 122, 75, 0.14);
    background: rgba(255, 248, 234, 0.55);
    padding: 0;
    overflow: hidden;
}

.cabinet-device-panel-value-card,
.cabinet-device-panel-facts,
.cabinet-device-panel-meta {
    border-radius: 0;
    border: 0;
    background: transparent;
    padding: 14px 16px;
    align-content: start;
}

.cabinet-device-panel-meta {
    border-top: 1px solid rgba(170, 122, 75, 0.12);
}

.cabinet-device-panel-kicker {
    margin: 0;
    color: #5d493b;
    font-size: 0.9rem;
    font-weight: 800;
}

.cabinet-device-panel-value-card strong {
    display: block;
    margin-top: 8px;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    line-height: 1.05;
    color: #2f241a;
    font-variant-numeric: tabular-nums;
}

.cabinet-device-panel-value-card span {
    display: block;
    margin-top: 10px;
    color: var(--ink-soft);
}

.cabinet-device-panel-facts {
    display: grid;
    gap: 10px;
}

.cabinet-device-panel-facts div {
    display: grid;
    gap: 3px;
}

.cabinet-device-panel-facts strong {
    font-size: 0.88rem;
    color: #4c3829;
}

.cabinet-device-panel-facts span {
    color: var(--ink-soft);
    word-break: break-word;
}

.cabinet-device-panel-meta {
    display: grid;
    gap: 8px;
}

.cabinet-device-panel-meta small {
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.cabinet-dashboard-shell {
    display: grid;
    gap: var(--cabinet-section-gap);
}

.cabinet-dashboard-loading {
    display: grid;
    gap: var(--cabinet-section-gap);
}

[data-cabinet-dashboard-content] {
    display: grid;
    gap: var(--cabinet-section-gap);
    min-width: 0;
    width: 100%;
}

/* Узкие экраны: лента новостей внизу, после всех ульев (DOM без изменений — flex order). */
@media (max-width: 1023px) {
    [data-cabinet-dashboard-content] {
        display: flex;
        flex-direction: column;
        gap: var(--cabinet-section-gap);
    }

    [data-cabinet-dashboard-content] > .cabinet-cert-feed-split {
        display: contents;
    }

    [data-cabinet-dashboard-content] .cabinet-cert-feed-split__cert,
    [data-cabinet-dashboard-content] .cabinet-cert-feed-split__feed {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        min-height: 0;
    }

    [data-cabinet-dashboard-content] .cabinet-cert-feed-split__cert,
    [data-cabinet-dashboard-content] > .cabinet-certificate-card {
        order: 1;
    }

    [data-cabinet-dashboard-content] > .cabinet-hive-divider,
    [data-cabinet-dashboard-content] > .cabinet-hive-card,
    [data-cabinet-dashboard-content] > .cabinet-empty-state {
        order: 2;
    }

    [data-cabinet-dashboard-content] .cabinet-cert-feed-split__feed,
    [data-cabinet-dashboard-content] > .cabinet-feed {
        order: 3;
    }

    [data-cabinet-dashboard-content] > .cabinet-upsell {
        order: 4;
    }
}

.cabinet-dashboard-loading[hidden],
[data-cabinet-dashboard-content][hidden] {
    display: none !important;
}

.cabinet-dashboard-loading-text {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.cabinet-sensor-card--loading {
    pointer-events: none;
}

.cabinet-skeleton {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(170, 122, 75, 0.1);
}

.cabinet-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
    animation: cabinetShimmer 1.35s ease-in-out infinite;
}

.cabinet-skeleton--title {
    width: min(220px, 62%);
    height: 22px;
}

.cabinet-skeleton--line {
    width: 100%;
    height: 14px;
    margin-top: 10px;
}

.cabinet-skeleton--chart {
    width: 100%;
    height: 108px;
    margin-top: 12px;
    border-radius: 18px;
}

@keyframes cabinetShimmer {
    100% {
        transform: translateX(100%);
    }
}

.cabinet-device-graphs,
.cabinet-device-specials,
.cabinet-device-graph-card,
.cabinet-device-special-card {
    display: none;
}

.cabinet-device-graphs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.cabinet-device-graph-card {
    border-radius: 16px;
    border: 1px solid rgba(170, 122, 75, 0.18);
    background: rgba(255, 251, 241, 0.82);
    padding: 10px;
    display: grid;
    gap: 8px;
}

.cabinet-device-graph-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.cabinet-device-graph-head strong {
    font-size: 0.9rem;
}

.cabinet-device-graph-head span {
    color: #4c3829;
    font-weight: 800;
    font-size: 0.82rem;
    text-align: right;
}

.cabinet-device-graph-canvas {
    height: 96px;
    border-radius: 12px;
    border: 1px solid rgba(170, 122, 75, 0.15);
    background:
        linear-gradient(to top, rgba(170, 122, 75, 0.08) 1px, transparent 1px) 0 0 / 100% 24px,
        rgba(255, 248, 236, 0.92);
    overflow: hidden;
}

.cabinet-device-graph-canvas svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cabinet-device-graph-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.cabinet-device-graph-meta small {
    color: var(--ink-soft);
    font-size: 0.74rem;
}

.cabinet-device-specials {
    display: grid;
    gap: 10px;
}

.cabinet-device-special-card {
    border-radius: 16px;
    border: 1px solid rgba(170, 122, 75, 0.18);
    background: rgba(255, 249, 238, 0.9);
    padding: 10px;
    display: grid;
    gap: 8px;
}

.cabinet-device-special-subtitle {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.84rem;
}

.cabinet-device-spectrum,
.cabinet-device-audio {
    height: 112px;
    border-radius: 12px;
    border: 1px solid rgba(170, 122, 75, 0.15);
    background:
        linear-gradient(to top, rgba(170, 122, 75, 0.08) 1px, transparent 1px) 0 0 / 100% 24px,
        rgba(255, 248, 236, 0.92);
    overflow: hidden;
}

.cabinet-device-audio {
    height: 88px;
}

.cabinet-device-spectrum svg,
.cabinet-device-audio svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cabinet-sensor-placeholder {
    width: 100%;
    height: 78px;
    border-radius: 12px;
    border: 1px dashed rgba(170, 122, 75, 0.4);
    background: rgba(255, 251, 241, 0.7);
}

.cabinet-sensor-placeholder--video {
    height: auto;
    aspect-ratio: 16 / 9;
}

.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1080px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-art {
        min-height: 420px;
    }

    .section {
        padding: 80px 0;
    }

    .why-layout {
        grid-template-columns: 1fr;
    }

    .media-layout,
    .photo-strip,
    .stats-grid,
    .benefit-grid,
    .format-grid,
    .gifting-grid {
        grid-template-columns: 1fr 1fr;
    }

    .calm-layout {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-client-hive-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-media-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    .nav-links {
        display: none;
    }

    .header-inner {
        position: relative;
        flex-wrap: nowrap;
        row-gap: 0;
    }

    .account-link {
        width: 40px;
        height: 40px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .mobile-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        width: auto;
        display: none;
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 10px;
        border-radius: 16px;
        border: 1px solid rgba(170, 122, 75, 0.3);
        background: rgb(255, 249, 236);
        box-shadow: 0 12px 24px rgba(87, 52, 25, 0.14);
        z-index: 60;
    }

    .mobile-nav.is-open {
        display: grid;
    }

    .mobile-nav a {
        color: #3a2a1f;
        text-decoration: none;
        font-weight: 800;
        padding: 8px 10px;
        border-radius: 10px;
    }

    .mobile-nav a:hover {
        background: rgba(247, 189, 87, 0.2);
    }

    .mobile-nav-details {
        border-radius: 10px;
        border: 1px solid rgba(170, 122, 75, 0.22);
        background: rgba(255, 252, 244, 0.65);
    }

    .mobile-nav-summary {
        cursor: pointer;
        list-style: none;
        font-weight: 800;
        padding: 8px 10px;
        color: #3a2a1f;
    }

    .mobile-nav-summary::-webkit-details-marker {
        display: none;
    }

    .mobile-nav-sub {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 4px 8px 10px 0.75rem;
        border-top: 1px solid rgba(170, 122, 75, 0.15);
    }

    .mobile-nav-sub a {
        color: #3a2a1f;
        text-decoration: none;
        font-weight: 700;
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 0.92rem;
    }

    .mobile-nav-sub a:hover {
        background: rgba(247, 189, 87, 0.2);
    }
}

@media (max-width: 820px) {
    :root {
        --space-mobile-xl: 88px;
        --space-mobile-lg: 72px;
        --space-mobile-md: 56px;
        --space-mobile-sm: 28px;
        --space-mobile-xs: 16px;
    }

    .site-header,
    main,
    .section,
    .container {
        max-width: 100vw;
    }

    .container {
        width: 100%;
        padding-inline: 0.65rem;
        box-sizing: border-box;
    }

    .community-strip__inner {
        justify-content: space-between;
    }

    .community-strip__text {
        font-size: 0.78rem;
    }

    .community-chip {
        min-height: 26px;
        padding: 4px 8px;
        font-size: 0.76rem;
    }

    .hero {
        padding-top: 40px;
        padding-bottom: 64px;
    }

    .hero-art {
        min-height: 360px;
        transform: none !important;
    }

    .hive-cube {
        transform: scale(0.82) rotateX(56deg) rotateZ(45deg) !important;
        left: 4%;
        top: 12%;
    }

    .honey-jar {
        transform: scale(0.9) !important;
        right: 7%;
        top: 16%;
    }

    .hero-badges,
    .media-layout,
    .photo-strip,
    .stats-grid,
    .apiary-location-grid,
    .contacts-grid,
    .benefit-grid,
    .format-grid,
    .cabinet-auth-grid,
    .cabinet-metrics-grid,
    .cabinet-device-graphs,
    .cabinet-sensors-grid,
    .cabinet-meta-row {
        grid-template-columns: 1fr;
    }

    .cabinet-device-panel-layout {
        grid-template-columns: 1fr;
    }

    .cabinet-device-panel-chart-canvas,
    .cabinet-device-panel-placeholder {
        height: 220px;
    }

    .cabinet-upcoming-labels,
    .cabinet-feed,
    .cabinet-certificate-card,
    .cabinet-empty-state {
        padding: clamp(14px, 3.6vw, 18px);
    }

    .cabinet-intro {
        padding: clamp(12px, 3.2vw, 18px) 0 clamp(14px, 3.4vw, 20px);
    }

    .cabinet-hive-card {
        padding: clamp(18px, 4vw, 26px) 0;
        gap: var(--cabinet-gap-tight);
    }

    .cabinet-hive-hero {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: var(--cabinet-gap-tight);
    }

    .cabinet-hive-body {
        gap: var(--cabinet-gap-tight);
    }

    .cabinet-hive-head {
        gap: 10px;
    }

    .cabinet-hive-meta {
        gap: 6px;
    }

    .cabinet-hive-meta-chip {
        font-size: 0.76rem;
        padding: 3px 8px;
    }

    .cabinet-hive-meta-chip--technical {
        display: none;
    }

    .cabinet-hive-description {
        font-size: 0.92rem;
        line-height: 1.45;
    }

    .cabinet-hive-stats div {
        min-width: 100%;
        padding-bottom: 8px;
    }

    .cabinet-status-badge {
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.68rem;
    }

    .cabinet-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .cabinet-metric-card {
        padding: 12px;
        gap: 4px;
    }

    .cabinet-metric-card span,
    .cabinet-metric-card small {
        display: none;
    }

    .cabinet-metric-card strong {
        font-size: 1.06rem;
    }

    .cabinet-sensors-grid {
        padding: 0;
        margin: 0;
        gap: 12px;
    }

    .cabinet-sensor-card--tabbed {
        padding: 14px;
        gap: 12px;
    }

    .cabinet-sensor-head {
        align-items: flex-start;
        gap: 8px;
    }

    .cabinet-sensor-head h3 {
        font-size: 1rem;
        line-height: 1.2;
    }

    .cabinet-sensor-head span {
        padding: 2px 8px;
        font-size: 0.67rem;
    }

    .cabinet-device-tablist {
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        margin-inline: -2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .cabinet-device-tablist::-webkit-scrollbar {
        display: none;
    }

    .cabinet-device-tab-button {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 10px 14px 12px 0;
        font-size: 0.86rem;
        white-space: nowrap;
    }

    .cabinet-device-panel-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cabinet-device-panel-chart-canvas,
    .cabinet-device-panel-placeholder {
        height: 198px;
    }

    .cabinet-chart-axis-caption {
        font-size: 0.78rem;
    }

    .cabinet-chart-tick-label,
    .cabinet-chart-tick-label--spectrum {
        font-size: 9px;
    }

    .cabinet-device-panel-aside {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cabinet-device-panel-value-card,
    .cabinet-device-panel-meta {
        padding: 12px;
    }

    .cabinet-device-panel-value-card strong {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
    }

    .cabinet-device-panel-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 10px;
    }

    .cabinet-device-panel-meta small {
        font-size: 0.78rem;
    }

    .cabinet-audio-list {
        gap: 10px;
    }

    .cabinet-audio-item {
        padding: 12px;
    }

    .cabinet-audio-item-head strong {
        font-size: 0.9rem;
    }

    .cabinet-chart-tooltip {
        max-width: 172px;
        padding: 8px 10px;
    }

    .gifting-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .calm-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gifting-photo {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .apiary-map-label {
        display: none;
    }

    .stats-points {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: start;
    }

    .section-head p {
        max-width: 100%;
    }

    .section {
        padding-top: var(--space-mobile-lg);
        padding-bottom: var(--space-mobile-lg);
    }

    /* Unified mobile rhythm with explicit per-block scale. */
    .media-lab {
        padding-top: var(--space-mobile-md);
        padding-bottom: var(--space-mobile-sm);
    }

    .client-value {
        padding-top: var(--space-mobile-md);
        padding-bottom: var(--space-mobile-sm);
    }

    .client-value-card {
        border-radius: 20px;
        padding: 20px 16px;
    }

    .client-value-card h2 {
        max-width: 18ch;
    }

    .client-value-lead {
        margin-top: 14px;
    }

    .client-value-list {
        margin-top: 16px;
        gap: 10px;
    }

    .client-value-list li {
        padding: 12px 13px;
    }

    .journey {
        margin-top: 39px;
    }

    .journey-card {
        flex-basis: min(88vw, 360px);
        width: min(88vw, 360px);
        min-height: 360px;
    }

    .journey-nav {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .journey-arrow {
        display: none;
    }

    .client-value-fan {
        margin: 10px 0 6px;
        height: 172px;
    }

    .client-value-fan-card {
        width: min(240px, 80%);
        border-radius: 14px;
    }

    .client-value-fan-card-1 {
        height: 146px;
        top: 18px;
        transform: rotate(-4deg);
    }

    .client-value-fan-card-2 {
        height: 154px;
        transform: translateX(-50%) rotate(1deg);
    }

    .client-value-fan-card-3 {
        height: 142px;
        top: 24px;
        transform: rotate(4deg);
    }

    .stats-lab {
        padding-top: var(--space-mobile-lg);
        padding-bottom: var(--space-mobile-sm);
    }

    #stats {
        padding-bottom: var(--space-mobile-sm);
    }

    #why {
        padding-top: var(--space-mobile-lg);
        padding-bottom: var(--space-mobile-sm);
    }

    .gifting {
        padding-top: var(--space-mobile-sm);
        padding-bottom: var(--space-mobile-sm);
    }

    #formats + .gifting {
        padding-top: 8px;
    }

    .apiary-location {
        padding-top: var(--space-mobile-lg);
        padding-bottom: var(--space-mobile-sm);
    }

    .apiary-locator {
        grid-template-columns: 1fr;
    }

    .apiary-location-list {
        max-height: none;
        overflow: visible;
        padding-left: 0;
        direction: ltr;
    }

    .calm {
        padding-top: var(--space-mobile-md);
        padding-bottom: 12px;
    }

    .apipuls {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .sensor-proof {
        padding-top: 10px;
        padding-bottom: var(--space-mobile-xs);
    }

    .sensor-bridge {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .apipuls-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sensor-proof-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .final-cta {
        padding-top: var(--space-mobile-sm);
        padding-bottom: var(--space-mobile-sm);
    }

    .faq {
        padding-top: var(--space-mobile-lg);
        padding-bottom: var(--space-mobile-sm);
    }

    .contacts {
        padding-top: var(--space-mobile-lg);
        padding-bottom: var(--space-mobile-sm);
    }

    .container.calm-box,
    .container.apipuls-box,
    .container.sensor-proof-box,
    .container.cta-box {
        width: calc(100% - 1.3rem);
        margin-inline: auto;
        padding-inline: 0.65rem;
        box-sizing: border-box;
    }

    .container.calm-box .calm-copy {
        padding-inline: 0.2rem;
    }

    .container.calm-box .calm-photo {
        width: calc(100% - 0.4rem);
        margin-inline: auto;
    }

    .seo-main {
        padding-bottom: 36px;
    }

    .offer-hero {
        grid-template-columns: 1fr;
    }

    .offer-services {
        grid-template-columns: 1fr;
    }

    .legal-requisites div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .admin-grid-2 {
        grid-template-columns: 1fr;
    }

    .admin-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-client-hive-image-row {
        grid-template-columns: 1fr;
    }

    .admin-webcam-row {
        grid-template-columns: 1fr;
    }

    .admin-webcam-remove-btn {
        justify-self: start;
    }

    .cabinet-hive-cameras-grid {
        grid-template-columns: 1fr;
    }

    .admin-client-hive-image-preview {
        max-width: 180px;
    }

    .admin-client-modal__dialog {
        --admin-modal-pad: 14px;
    }

    .admin-client-modal__dialog .order-modal__close {
        top: 12px;
        right: 12px;
    }

    .admin-client-modal__header {
        padding-right: 52px;
    }

    .admin-client-modal__overview {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 16px;
    }

    .admin-client-modal__workspace {
        margin-top: 16px;
        padding-bottom: 24px;
    }

    .admin-client-subnav {
        gap: 6px;
        padding: 8px;
        border-radius: 16px;
    }

    .admin-client-subtab {
        min-height: 40px;
        padding: 0 12px;
        font-size: 0.86rem;
    }

    .admin-client-create-modal {
        padding: 10px;
    }

    .admin-client-create-modal__dialog {
        width: min(720px, calc(100vw - 20px));
        max-height: 92dvh;
        padding: 16px;
        border-radius: 18px;
    }

    .admin-client-create-modal__head {
        padding-right: 46px;
    }

    .admin-client-create-modal__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-client-create-modal__actions .btn {
        width: 100%;
    }

    .admin-client-hive-form,
    .admin-client-certificate,
    .admin-client-profile-card,
    .admin-client-danger-zone {
        padding: 14px;
        border-radius: 16px;
    }

    .articles-page-control,
    .articles-page-btn {
        min-height: 38px;
        padding: 0 12px;
        font-size: 0.9rem;
    }

    #formats .section-head p {
        white-space: normal;
    }

    #home-articles .section-head p {
        white-space: normal;
    }

    .timeline-item {
        grid-template-columns: 74px 1fr;
    }

    .ticker {
        overflow: hidden;
        max-width: 100vw;
    }

    .ticker-marquee {
        animation: tickerMove 16s linear infinite;
        width: max-content;
        max-width: none;
        overflow: visible;
    }

    .ticker-track {
        min-width: max-content;
        max-width: none;
        width: auto;
        justify-content: flex-start;
        overflow: visible;
        flex-wrap: nowrap;
        padding-right: 24px;
    }

    .ticker-track:nth-child(n + 2) {
        display: flex;
    }
}

@media (max-width: 429px) {
    .header-actions .btn-chip {
        display: none;
    }

    .mobile-nav-book {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        margin-bottom: 4px;
        border: 1px solid rgba(166, 117, 57, 0.32);
        border-radius: 999px;
        background: var(--accent);
        box-shadow: 0 10px 16px rgba(109, 73, 39, 0.12);
    }

    .mobile-nav-book:hover {
        background: var(--accent);
    }
}

@media (max-width: 560px) {
    :root {
        --community-strip-height: 34px;
        --header-height: 72px;
        --main-content-top-gap: 10px;
    }

    html,
    body {
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: 100vw;
        padding-inline: 0.65rem;
    }

    .header-inner {
        gap: 10px;
    }

    .header-inner > * {
        min-width: 0;
    }

    .brand {
        gap: 8px;
    }

    .brand span {
        max-width: 38vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .brand-bee {
        width: 32px;
        height: 32px;
    }

    .community-strip__inner {
        gap: 6px;
    }

    .community-strip__text {
        font-size: 0.72rem;
        max-width: calc(100vw - 150px);
    }

    .community-strip__links {
        gap: 5px;
    }

    .community-chip {
        min-height: 24px;
        padding: 3px 7px;
        gap: 5px;
    }

    .community-chip img {
        width: 15px;
        height: 15px;
    }

    .contact-share-qr__image {
        width: 132px;
        height: 132px;
    }

    .btn-chip {
        min-height: 40px;
        padding-inline: 12px;
        font-size: 0.84rem;
        white-space: nowrap;
    }

    .account-link {
        width: 38px;
        height: 38px;
    }

    .account-link svg {
        width: 18px;
        height: 18px;
    }

    .hero-copy h1 {
        max-width: 100%;
    }

    .hero-art {
        min-height: 320px;
        transform: none !important;
    }

    .ticker {
        padding: 12px 0;
    }

    .ticker-track {
        gap: 18px;
        padding-right: 0;
        justify-content: center;
    }

    .ticker-bee {
        width: 28px;
        height: 28px;
    }

    .ticker-track span {
        font-size: 1.02rem;
    }

    .overline {
        width: 100%;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        font-size: clamp(0.64rem, 2.55vw, 0.76rem);
        letter-spacing: 0.045em;
        padding: 7px 10px;
    }

    .cabinet-intro .overline {
        width: fit-content;
        max-width: 100%;
        justify-content: flex-start;
        text-align: left;
        white-space: normal;
    }

    .actions {
        width: 100%;
    }

    .actions .btn {
        width: 100%;
        justify-content: center;
    }

    .site-header .btn {
        width: auto;
    }

    .cabinet-intro {
        gap: 0.55rem;
        padding: 12px 0 16px;
    }

    .cabinet-intro .cabinet-top h1 {
        max-width: 100%;
    }

    .cabinet-user-card {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .cabinet-user-card__logout {
        width: 100%;
    }

    .cabinet-page .cabinet-user-card__logout .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .cabinet-upcoming-labels,
    .cabinet-feed,
    .cabinet-certificate-card,
    .cabinet-empty-state {
        padding: 14px;
    }

    .cabinet-hive-card {
        padding: 18px 0;
    }

    .cabinet-hive-hero {
        grid-template-columns: 1fr;
    }

    .cabinet-hive-photo {
        max-width: 210px;
    }

    .cabinet-hive-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-client-hive-image-preview {
        max-width: 100%;
    }

    .cabinet-hive-head h2 {
        font-size: 1.08rem;
    }

    .cabinet-hive-meta-chip--location {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cabinet-metrics-grid {
        grid-template-columns: 1fr;
    }

    .cabinet-metric-card {
        padding: 11px 12px;
    }

    .cabinet-device-tab-button {
        min-height: 34px;
        padding: 0 11px;
        font-size: 0.82rem;
    }

    .cabinet-device-panel-chart-canvas,
    .cabinet-device-panel-placeholder {
        height: 176px;
        border-radius: 18px;
    }

    .cabinet-chart-frame {
        gap: 8px;
    }

    .cabinet-chart-axis-caption {
        font-size: 0.74rem;
    }

    .cabinet-device-panel-value-card,
    .cabinet-device-panel-meta {
        padding: 11px 12px;
        border-radius: 16px;
    }

    .cabinet-device-panel-meta {
        grid-template-columns: 1fr;
    }

    .cabinet-audio-item {
        border-radius: 16px;
        padding: 11px 12px;
    }

    .cabinet-chart-tooltip {
        max-width: 156px;
    }

    .gifting-grid .panel {
        padding: 18px;
    }

    .apiary-location-map-image {
        top: 10px;
        right: 10px;
        left: auto;
        bottom: auto;
        width: min(56vw, 240px);
        border-radius: 12px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .timeline-no {
        min-height: 50px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: start;
    }
}

@media (min-width: 1024px) {
    .client-value-line-2 {
        white-space: nowrap;
    }
}


@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .cabinet-feed-card:hover {
        transform: none;
    }

    .cabinet-feed-card:hover .cabinet-feed-card__media img {
        transform: none;
    }
}
