:root {
    --color-primary: #ffb3ba;
    --color-secondary: #ffc7ce;
    --color-accent: #ff69b4;
    --color-bg: #fffbfc;
    --color-text: #3a2430;
    --color-muted: #6b4a58;
    --color-border: #f0d0d6;
    --color-dark: #2a1820;
    --color-on-dark: #fff5f7;
    --font-display: "Fredoka", system-ui, sans-serif;
    --font-body: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius-pill: 28px;
    --space-xs: 0.35rem;
    --space-sm: 0.65rem;
    --space-md: 1rem;
    --space-lg: 1.75rem;
    --space-xl: 2.75rem;
    --cb-header-h: 72px;
    --cb-page-w: 1120px;
}

@media (max-width: 768px) {
    :root { --cb-header-h: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html { scroll-padding-top: var(--cb-header-h); }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.55;
    padding-top: var(--cb-header-h);
}

[hidden] { display: none !important; }

img, video, iframe {
    max-width: 100%;
    height: auto;
}

a { color: var(--color-accent); }
a:hover { color: #d9489a; }

h1, h2, h3, .cb-h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

.cb-container {
    width: min(100% - 2rem, var(--cb-page-w));
    margin-inline: auto;
}

.cb-measure { max-width: 760px; }

.cb-flex { display: flex; align-items: center; }
.cb-wrap { flex-wrap: wrap; }
.cb-gap-sm { gap: var(--space-sm); }
.cb-gap-md { gap: var(--space-md); }
.cb-gap-lg { gap: var(--space-lg); }
.cb-between { justify-content: space-between; }
.cb-min0 { min-width: 0; }
.cb-muted { color: var(--color-muted); font-size: 0.95rem; }

.cb-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: var(--space-lg);
    min-width: 0;
}

.cb-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    border: 2px solid var(--color-accent);
    background: transparent;
    color: var(--color-text);
    font-family: var(--font-display);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    z-index: 0;
    transition: color 0.3s ease;
}

.cb-btn--primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text);
}

.cb-btn--primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-accent);
    transform: translateX(-101%);
    transition: transform 0.35s ease;
    z-index: -1;
}

.cb-btn--primary:hover::before,
.cb-btn--primary:focus-visible::before {
    transform: translateX(0);
}

.cb-btn--primary:hover,
.cb-btn--primary:focus-visible,
a.cb-btn--primary:hover,
a.cb-btn--primary:visited:hover {
    color: #fff;
}

a.cb-btn,
a.cb-btn:visited {
    color: var(--color-text);
}

a.cb-btn--primary,
a.cb-btn--primary:visited {
    color: var(--color-text);
}

.cb-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--cb-header-h);
    background: var(--color-bg);
    box-shadow: 0 2px 8px rgba(58, 36, 48, 0.08);
}

.cb-header a,
.cb-header a:visited {
    color: var(--color-text);
}

.cb-header a.cb-btn--primary,
.cb-header a.cb-btn--primary:visited {
    color: var(--color-text);
}

.cb-header a.cb-btn--primary:hover,
.cb-header a.cb-btn--primary:visited:hover {
    color: #fff;
}

.cb-header__row {
    min-height: var(--cb-header-h);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.cb-header__logo { order: 1; flex-shrink: 0; }
.cb-header__cta { order: 2; }
.cb-nav { order: 3; margin-left: auto; }
.cb-burger { order: 4; }

.cb-header__logo img {
    width: 180px;
    height: auto;
    display: block;
    min-height: 36px;
}

.cb-nav__link {
    font-family: var(--font-display);
    font-weight: 500;
    text-decoration: none;
    padding: 0.35rem 0.5rem;
}

.cb-nav__link.is-active {
    color: var(--color-accent);
}

.cb-burger {
    display: block;
    width: 44px;
    height: 44px;
    margin-left: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 10px;
    flex-shrink: 0;
}

.cb-burger span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--color-text);
    border-radius: 2px;
}

.cb-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(42, 24, 32, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.cb-drawer {
    display: block;
    position: fixed;
    z-index: 210;
    background: var(--color-bg);
    overflow-y: auto;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
}

.cb-drawer--sheet {
    inset: 0;
    height: 100vh;
    height: 100dvh;
    padding: 72px 24px 32px;
    opacity: 0;
}

.cb-drawer a {
    display: block;
    padding: 14px 8px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    text-decoration: none;
    color: var(--color-text);
    min-width: 0;
}

.cb-drawer a.cb-btn {
    margin-top: var(--space-md);
    font-size: 1rem;
    text-align: center;
}

.cb-drawer__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--color-secondary);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
}

body.nav-open { overflow: hidden; }
body.nav-open .cb-overlay { display: none; }
body.nav-open .cb-drawer--sheet {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 768px) {
    .cb-nav { display: none; }
    .cb-header__cta { display: none; }
    .cb-burger { margin-left: auto; }
    .cb-header__logo img {
        width: 120px;
        min-height: 28px;
    }
}

.cb-hero {
    background: linear-gradient(160deg, var(--color-secondary) 0%, var(--color-bg) 55%, #ffe8ec 100%);
    padding: var(--space-xl) 0;
}

.cb-hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-xl);
    align-items: center;
}

.cb-hero__title {
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    margin: 0 0 var(--space-md);
}

.cb-hero__figures { margin-bottom: var(--space-md); }

.cb-hero__fig {
    background: #fff;
    border-radius: var(--radius-pill);
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--color-border);
    min-width: 0;
}

.cb-hero__num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-accent);
}

.cb-hero__label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.cb-hero__text {
    max-width: 38rem;
    margin: 0 0 var(--space-md);
}

.cb-hero__still {
    margin: 0;
    border-radius: var(--radius-pill);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: #fff;
}

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

.cb-hero a.cb-btn--primary,
.cb-hero a.cb-btn--primary:visited {
    color: var(--color-text);
}

.cb-hero a.cb-btn--primary:hover {
    color: #fff;
}

@media (max-width: 900px) {
    .cb-hero__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .cb-hero .cb-btn { width: 100%; }
}

.cb-bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
}

.cb-tile { min-width: 0; }
.cb-tile--span2 { grid-column: span 2; }
.cb-tile--span3 { grid-column: span 3; }
.cb-tile--span4 { grid-column: span 4; }
.cb-tile--span6 { grid-column: span 6; }

.cb-tile h2 {
    font-size: 1.35rem;
    margin-top: 0;
}

.cb-tile__still {
    margin: var(--space-md) 0 0;
    border-radius: 20px;
    overflow: hidden;
}

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

@media (max-width: 768px) {
    .cb-bento { grid-template-columns: 1fr; }
    .cb-tile--span2,
    .cb-tile--span3,
    .cb-tile--span4,
    .cb-tile--span6 { grid-column: span 1; }
}

.cb-app__badges {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--color-muted);
    text-transform: uppercase;
}

.cb-app__head { margin-bottom: var(--space-md); align-items: flex-start; }

.cb-app__icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    flex-shrink: 0;
}

.cb-app__name { margin: 0 0 0.35rem; font-size: 1.35rem; }
.cb-app__dev {
    margin: 0;
    color: var(--color-muted);
    overflow-wrap: anywhere;
}

.cb-app__facts {
    margin: 0 0 var(--space-md);
    padding-left: 1.1rem;
}

.cb-app__note,
.cb-app__checked {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.cb-check {
    margin: 0 0 var(--space-md);
    padding-left: 1.1rem;
}

.cb-versions {
    margin: 0;
    padding-left: 1.1rem;
}

.cb-versions li { margin-bottom: 0.5rem; }

.cb-stills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    justify-content: center;
    gap: 20px;
    margin-top: var(--space-lg);
}

.cb-stills img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--color-border);
}

.cb-cta-tile {
    background: linear-gradient(135deg, #fff, var(--color-secondary));
}

.cb-cta-tile a.cb-btn--primary:hover { color: #fff; }

.cb-float {
    animation: cb-float 4.5s ease-in-out infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .cb-float { animation: none; }
    .is-in > * { animation: none !important; }
}

.is-in > * {
    animation: cb-k-up 0.4s ease both;
    animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes cb-k-up {
    from { opacity: 0; transform: translateY(12px); }
}

.cb-section {
    padding: var(--space-xl) 0;
}

.cb-crumbs {
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
}

.cb-crumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cb-crumbs__item:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: var(--color-muted);
}

.cb-crumbs a { text-decoration: none; }

.cb-mag-lead {
    margin: var(--space-lg) 0;
    overflow: hidden;
    padding: 0;
}

.cb-mag-lead__band {
    height: 120px;
    background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
}

.cb-mag-lead h2,
.cb-mag-lead p,
.cb-mag-lead .cb-mag-meta,
.cb-mag-lead .cb-btn {
    margin-left: var(--space-lg);
    margin-right: var(--space-lg);
}

.cb-mag-lead h2 { margin-top: var(--space-md); }
.cb-mag-lead .cb-btn { margin-bottom: var(--space-lg); }

.cb-mag-meta {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin: var(--space-md) var(--space-lg) 0;
}

.cb-mag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.cb-mag-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cb-mag-card__band {
    height: 72px;
    background: var(--color-primary);
}

.cb-mag-card__band--a { background: linear-gradient(90deg, var(--color-primary), var(--color-secondary)); }
.cb-mag-card__band--b { background: linear-gradient(90deg, var(--color-secondary), var(--color-accent)); }
.cb-mag-card__band--c { background: linear-gradient(90deg, #ffe0e5, var(--color-primary)); }

.cb-mag-card h3,
.cb-mag-card p,
.cb-mag-card .cb-mag-meta {
    margin-left: var(--space-md);
    margin-right: var(--space-md);
}

.cb-mag-card h3 { font-size: 1.15rem; }
.cb-mag-card p:last-child { margin-bottom: var(--space-md); }
.cb-mag-card a { text-decoration: none; color: inherit; }

.cb-faq-short {
    margin-bottom: var(--space-xl);
    max-width: 760px;
}

.cb-faq-short details {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 0.65rem;
    background: #fff;
}

.cb-faq-short summary {
    list-style: none;
    cursor: pointer;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    font-family: var(--font-display);
    font-weight: 500;
}

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

.cb-faq-short summary::after {
    content: "+";
    font-size: 1.25rem;
    color: var(--color-accent);
}

.cb-faq-short details[open] summary::after { content: "–"; }

.cb-faq-short details p {
    margin: 0;
    padding: 0 1rem 1rem;
    color: var(--color-muted);
}

.cb-contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-lg);
    align-items: start;
}

@media (max-width: 768px) {
    .cb-contact-grid { grid-template-columns: 1fr; }
}

.cb-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cb-form__label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 500;
}

.cb-form__input {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    font: inherit;
    background: #fff;
    color: var(--color-text);
    min-width: 0;
}

.cb-form__status {
    color: var(--color-accent);
    margin: 0;
}

.cb-contact-card .cb-h3 { margin-top: 0; }

.cb-tips,
.cb-archive {
    padding-left: 1.2rem;
}

.cb-archive li { margin-bottom: var(--space-md); }

.cb-archive time {
    font-family: var(--font-display);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.cb-article__lead {
    font-size: 1.05rem;
    color: var(--color-muted);
}

.cb-article section { margin-top: var(--space-xl); }

.cb-article__foot {
    margin-top: var(--space-xl);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.cb-footer { margin-top: var(--space-xl); }

.cb-footer__band--accent {
    background: var(--color-secondary);
    padding: var(--space-lg) 0;
}

.cb-footer__band--dark {
    background: var(--color-dark);
    color: var(--color-on-dark);
    padding: var(--space-lg) 0;
}

.cb-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cb-footer__links a,
.cb-footer__store a {
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-display);
}

.cb-footer__band--dark a {
    color: var(--color-primary);
}

.cb-footer__link {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-family: var(--font-display);
    color: var(--color-text);
    cursor: pointer;
    text-decoration: underline;
}

.cb-footer__legal,
.cb-footer__copy {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--color-on-dark);
}

.cb-footer__copy { margin-bottom: 0; opacity: 0.85; }

.cb-cookie {
    display: none;
}

.cb-cookie:not([hidden]) {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 110;
    gap: 12px;
    max-width: 360px;
    padding: var(--space-md);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 24px rgba(58, 36, 48, 0.12);
}

.cb-cookie p { margin: 0; font-size: 0.95rem; }

.cb-cookie__actions { display: flex; gap: 8px; }

.cb-cookie .cb-btn {
    box-shadow: none;
    min-height: 44px;
}

.cb-cookie .cb-btn--primary::before { display: none; }
.cb-cookie .cb-btn--primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

@media (max-width: 480px) {
    .cb-cookie:not([hidden]) {
        left: 12px;
        right: 12px;
        max-width: none;
    }
    .cb-app__head { flex-direction: column; }
    .cb-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .cb-app__head { flex-direction: column; }
}
