/* 100300.ru first screen (centre_hero). The section is dark (appearance
   bg=dark); the block adds the glow, the blueprint grid and the layered
   screens. Tokens: theme.css (--cx-*). */

.cms-block--centre_hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    isolation: isolate;
}

.cms-section:has(> .cms-section__inner > .cms-block--centre_hero) {
    overflow: hidden;
    background:
        radial-gradient(60% 70% at 85% 20%, color-mix(in srgb, var(--cx-accent) 38%, transparent), transparent 70%),
        radial-gradient(45% 60% at 10% 100%, color-mix(in srgb, var(--cx-violet) 30%, transparent), transparent 70%),
        var(--cx-night);
}

.cms-section:has(> .cms-section__inner > .cms-block--centre_hero)::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 85%);
    pointer-events: none;
}

.cms-section:has(> .cms-section__inner > .cms-block--centre_hero) > .cms-section__inner {
    position: relative;
    z-index: 1;
}

.ch--text {
    grid-template-columns: minmax(0, 1fr);
    max-width: 52rem;
}

.ch__copy {
    min-width: 0;
    color: #fff;
}

.ch__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.4rem;
    padding: 0.4rem 0.9rem 0.4rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.86rem;
    font-weight: 550;
    text-decoration: none;
    backdrop-filter: blur(8px);
}

a.ch__chip:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.ch__chip .cms-icon {
    width: 0.95rem;
    height: 0.95rem;
}

.ch__dot {
    position: relative;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--cx-lime);
}

.ch__dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--cx-lime);
    opacity: 0;
    animation: ch-pulse 2.4s ease-out infinite;
}

@keyframes ch-pulse {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.9); opacity: 0; }
}

.ch__title {
    margin: 0;
    font-family: var(--cx-display);
    font-size: clamp(2.3rem, 1.4rem + 2.9vw, 4.1rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: #fff;
    text-wrap: balance;
}

.ch__sub {
    margin: 1rem 0 0;
    font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
    font-weight: 600;
    background: linear-gradient(90deg, #fff, color-mix(in srgb, var(--cx-accent) 45%, #fff));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ch__lead {
    max-width: 34rem;
    margin: 1.25rem 0 0;
    font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}

.ch__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.ch__note {
    margin: 0.9rem 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.ch__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
    gap: 1rem;
    margin: 2.5rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ch__fact {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.2rem;
    margin: 0;
}

.ch__fact dd {
    margin: 0;
    font-family: var(--cx-display);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.ch__fact dt {
    font-size: 0.82rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.6);
}

/* --- the screens ---------------------------------------------------------- */

.ch__stage {
    position: relative;
    min-width: 0;
    aspect-ratio: 16 / 11.5;
}

.ch__glow {
    position: absolute;
    inset: 10% 5% 0 15%;
    border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--cx-accent) 55%, transparent), transparent);
    filter: blur(40px);
    opacity: 0.7;
}

.ch__win {
    position: absolute;
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 80px -30px rgba(0, 0, 0, 0.75), 0 18px 36px -24px rgba(0, 0, 0, 0.6);
}

.ch__win--main {
    top: 0;
    right: 0;
    width: 88%;
    animation: ch-float 9s ease-in-out infinite;
}

.ch__win--site {
    left: 0;
    bottom: 2%;
    width: 52%;
    animation: ch-float 9s ease-in-out -4.5s infinite;
}

.ch__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    background: #f1f3f6;
    border-bottom: 1px solid #e3e6eb;
}

.ch__bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d4d8de;
}

.ch__bar i:first-child { background: #ff6159; }
.ch__bar i:nth-child(2) { background: #ffbd2e; }
.ch__bar i:nth-child(3) { background: #28c941; }

.ch__url {
    flex: 1;
    max-width: 60%;
    margin-left: 10px;
    padding: 3px 10px;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    color: #5b6472;
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ch__img {
    display: block;
    width: 100%;
    height: auto;
}

.ch__phone {
    position: absolute;
    right: 3%;
    bottom: -4%;
    width: 21%;
    margin: 0;
    padding: 6px;
    overflow: hidden;
    border-radius: 26px;
    background: #0b0d12;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    animation: ch-float 9s ease-in-out -2s infinite;
}

.ch__phone .ch__img {
    aspect-ratio: 9 / 19;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
}

.ch__note-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    padding: 0.6rem 0.9rem 0.6rem 0.6rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: #0d1117;
    font-size: 0.8rem;
    line-height: 1.25;
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    animation: ch-float 7s ease-in-out infinite;
}

.ch__note-card b {
    display: block;
    font-weight: 650;
}

.ch__note-card small {
    display: block;
    color: #5b6472;
    font-size: 0.74rem;
}

.ch__note-icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex: none;
    border-radius: 10px;
    background: color-mix(in srgb, var(--cx-accent) 14%, #fff);
    color: var(--cx-accent);
}

.ch__note-icon .cms-icon {
    width: 1.05rem;
    height: 1.05rem;
}

.ch__note-card--1 { top: 8%; left: -2%; animation-delay: -1s; }
.ch__note-card--2 { top: 46%; right: -3%; animation-delay: -3s; }
.ch__note-card--3 { bottom: 26%; left: 34%; animation-delay: -5s; }

.ch__note-card--1 .ch__note-icon { background: color-mix(in srgb, var(--cx-lime) 22%, #fff); color: #3c7a16; }
.ch__note-card--3 .ch__note-icon { background: color-mix(in srgb, var(--cx-violet) 16%, #fff); color: var(--cx-violet); }

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

@media (max-width: 63.99rem) {
    .cms-block--centre_hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .ch__stage {
        max-width: 44rem;
        width: 100%;
        margin-inline: auto;
    }
}

@media (max-width: 40rem) {
    .ch__note-card--2,
    .ch__note-card--3 {
        display: none;
    }

    .ch__note-card--1 {
        top: auto;
        bottom: -6%;
        left: 4%;
    }

    .ch__actions .cx-btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ch__win,
    .ch__phone,
    .ch__note-card,
    .ch__dot::after {
        animation: none;
    }
}
