
:root{
    /* Подстрой под бренд */
    --shadow: 0 12px 30px rgba(0,0,0,.12);
    --text: #243042;
    --muted: rgba(36,48,66,.65);
    --ok: #20b26b;
    --warn: #ffb020;
    --bad: #ff5a6a;
    --bubble-bg: rgba(255,255,255,.92);
    --bubble-brd: rgba(36,48,66,.12);
}

/* 16:9 контейнер */
.hero {
    width: 100%;
    transform-origin: top left;
    aspect-ratio: 16 / 10;
    position:relative;
    overflow:hidden;
    border-radius:24px;
    box-shadow: var(--shadow);
}
.hero img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

/* Для очень широких экранов — чтобы элементы не “уезжали” */
.hero::after{
    content:"";
    position:absolute; inset:0;
    pointer-events:none;
}

/* ===== ЧАСЫ (рисуем поверх, чтобы реально крутилось) ===== */
.clock{
    position:absolute;
    /* Подстрой под положение часов на картинке */
    left: 11.2%;
    top: 41%;
    width: 50px;
    height: 50px;
    transform: translate(-50%,-50%);
    border-radius:50%;
    background: rgba(255,255,255,.85);
    border: 2px solid rgba(80,120,190,.45);
    box-shadow: 0 10px 18px rgba(0,0,0,.08);
    backdrop-filter: blur(2px);
}
.clock .center{
    position:absolute; inset:0;
    display:grid; place-items:center;
}
.clock .dot{
    width:5px; height:5px; border-radius:50%;
    background: rgba(80,120,190,.9);
    box-shadow: 0 0 0 4px rgba(80,120,190,.18);
    position:relative;
    z-index:3;
}
.hand{
    position:absolute;
    left:50%; top:50%;
    transform-origin: 50% 100%;
    transform: translate(-50%,-100%) rotate(0deg);
    border-radius: 999px;
    background: rgba(80,120,190,.95);
    z-index:2;
}
.hand.minute{
    width:2px; height:20px;
    animation: spin 6s linear infinite; /* скорость “побыстрее для сайта” */
}
.hand.hour{
    width:3px; height:15px;
    background: rgba(80,120,190,.75);
    animation: spin 24s linear infinite;
}
@keyframes spin{
    to{ transform: translate(-50%,-100%) rotate(360deg); }
}

/* ===== Недовольство над людьми слева ===== */
.grumbles{
    position: absolute;
    left: 6%;
    top: 3%;
    width: 56%;
    height: 44%;
    pointer-events: none;
}
.bubble{
    position:absolute;
    padding: 4px 6px;
    border-radius: 999px;
    background: var(--bubble-bg);
    border: 1px solid var(--bubble-brd);
    box-shadow: 0 10px 18px rgba(0,0,0,.08);
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
    display:flex;
    align-items:center;
    gap:6px;
    transform: translateY(0);
    animation: float 2.6s ease-in-out infinite;
    opacity:.96;
    white-space:nowrap;
}
.bubble::after{
    content: "";
    position: absolute;
    left: 10px;
    bottom: -5px;
    width: 10px;
    height: 10px;
    background: rgb(255 255 255 / 92%);
    border-left: 1px solid rgb(255 255 255 / 12%);
    border-bottom: 1px solid var(--bubble-brd);
    transform: rotate(45deg);
    border-bottom-left-radius: 3px;
}
.bubble .dot{
    width:5px;height:5px;border-radius:50%;
    background: var(--bad);
    box-shadow: 0 0 0 2px rgba(255,90,106,.18);
    flex:0 0 auto;
}
.bubble:nth-child(1){ left: 10%; top: 10%; animation-delay: .0s; }
.bubble:nth-child(2){ left: 35%; top: 18%; animation-delay: .4s; }
.bubble:nth-child(3){ left: 18%; top: 38%; animation-delay: .8s; }
.bubble:nth-child(4){ left: 48%; top: 44%; animation-delay: 1.2s; }

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

/* ===== Справа: “справки летят в телефон” ===== */
.right-flow{
    position:absolute;
    left: 58%;
    top: 12%;
    width: 40%;
    height: 78%;
    pointer-events:none;
}

.cert{
    position:absolute;
    width: 50%;
    height: 20%;
    border-radius: 10px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(36,48,66,.12);
    box-shadow: 0 14px 26px rgba(0,0,0,.10);
    overflow:hidden;
    opacity:0;
    transform: translateY(14px) scale(.98);
    animation: certIn 6s ease-in-out infinite;
}

/* Заголовок “СПРАВКА” */
.cert .head{
    height: 30%;
    padding: 0 10px;
    font-weight: 800;
    letter-spacing: .6px;
    color: #2b3b55;
    font-size: 8px;
    display:flex;
    align-items:center;
    gap:8px;
    background: linear-gradient(180deg, rgba(235,241,255,.9), rgba(235,241,255,.35));
    border-bottom: 1px solid rgba(36,48,66,.08);
}
.cert .body{
    padding: 4px 6px;
    display: grid;
    gap: 5px;
    height: 70%;
    align-items: center;
    align-content: center;
}
.line{
    height: 4px;
    border-radius: 999px;
    background: rgba(36,48,66,.10);
}
.line.s{ width: 55%; }
.line.m{ width: 75%; }
.line.l{ width: 90%; }

/* Галочка “успешно” — появляется позже */
.ok{
    position:absolute;
    right: 10%;
    top: 50%;
    width: 20%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: rgba(32,178,107,.12);
    border: 2px solid rgba(32,178,107,.45);
    display:grid;
    place-items:center;
    opacity:0;
    transform: scale(.7);
    animation: okPop 6s ease-in-out infinite;
}
.ok svg{ width:10px;height:10px; fill:none; stroke: var(--ok); stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }

/* Позиции справок (примерно над правыми персонажами) */
.cert.c1{ left: -14%; top: 6%;  animation-delay: 0s; }
.cert.c2{ left: 25%; top: -7%;  animation-delay: 0.9s; }
.cert.c3{ left: 52%; top: 8%; animation-delay: 1.8s; }

.cert.c1 .ok{ animation-delay: 0s; }
.cert.c2 .ok{ animation-delay: 0.9s; }
.cert.c3 .ok{ animation-delay: 1.8s; }

/* “Летящие данные” — пунктирные дуги */
.data-arc{
    position:absolute;
    left: 18%;
    top: 24%;
    width: 70%;
    height: 50%;
    opacity: .65;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,.10));
}
.data-arc path{
    stroke: rgba(90,140,230,.55);
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 7 10;
    animation: dash 2.6s linear infinite;
}
.data-arc path:nth-child(2){ animation-delay: .5s; opacity:.75; }
.data-arc path:nth-child(3){ animation-delay: 1.0s; opacity:.55; }
@keyframes dash{
    to{ stroke-dashoffset: -120; }
}

@keyframes certIn{
    0%   { opacity:0; transform: translateY(14px) scale(.98); }
    10%  { opacity:1; transform: translateY(0) scale(1); }
    55%  { opacity:1; transform: translateY(0) scale(1); }
    70%  { opacity:0; transform: translateY(-8px) scale(.99); }
    100% { opacity:0; transform: translateY(14px) scale(.98); }
}

@keyframes okPop{
    0%,22%  { opacity:0; transform: scale(.7); }
    32%     { opacity:1; transform: scale(1.05); }
    40%     { opacity:1; transform: scale(1); }
    70%     { opacity:0; transform: scale(.9); }
    100%    { opacity:0; transform: scale(.7); }
}

/* Адаптив: на маленьких экранах уменьшаем накладки */
@media (max-width: 1399px) {

}
@media (max-width: 1199px) {

}
@media (max-width: 991px){
    .hero {
        margin-top: 15px;
    }
}
@media (max-width: 545px){

    .cert{
        border-radius: 6px;
    }
}
/*@media (max-width: 700px){*/
/*    .clock{ width:64px; height:64px; }*/
/*    .hand.minute{ height:24px; }*/
/*    .hand.hour{ height:18px; }*/
/*    .bubble{ font-size:12px; padding:7px 9px; }*/
/*    .cert{ width: 170px; height: 84px; }*/
/*    .cert .head{ font-size: 12px; }*/
/*}*/