/* Тизер онбординга и тур с затемнением. Подключается только на форме (/generate).
   Приём дырки — один SVG-path с fill-rule:evenodd (см. public/js/form-tour.js). */

.uy-teaser {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9997;
    display: flex;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 34px rgba(11, 18, 32, .22);
    overflow: hidden;
    animation: uyTeaserIn .24s ease-out;
    max-width: calc(100vw - 32px);
}

.uy-teaser-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 14px;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.uy-teaser-main b { font-size: 15px; line-height: 1.25; }
.uy-teaser-main span { font-size: 13px; color: #7a8394; }
.uy-teaser-main:hover { background: #f5f7fb; }

.uy-teaser-close {
    border: 0;
    background: none;
    padding: 0 12px;
    font-size: 22px;
    line-height: 1;
    color: #9aa3b2;
    cursor: pointer;
}

.uy-teaser-close:hover { color: #46506a; background: #f5f7fb; }

.uy-tour-svg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
}

.uy-tour-svg path {
    fill: #0b1220;
    opacity: .68;
    pointer-events: auto;
    cursor: pointer;
}

.uy-tour-pop {
    position: fixed;
    z-index: 9999;
    min-width: 260px;
    max-width: 340px;
    background: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 14px 44px rgba(11, 18, 32, .3);
    animation: uyTourIn .18s ease-out;
}

.uy-tour-pop h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.25; }
.uy-tour-pop p { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: #4a5568; }

.uy-tour-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.uy-tour-skip {
    border: 0;
    background: none;
    font: inherit;
    font-size: 13px;
    color: #8a93a5;
    padding: 8px 2px;
    cursor: pointer;
}

.uy-tour-skip:hover { color: #46506a; }
.uy-tour-count { font-size: 13px; color: #9aa3b2; }
.uy-tour-next { padding: 10px 18px; font-size: 15px; border-radius: 10px; cursor: pointer; }

/* Телефон: и тизер, и подсказка — во всю ширину с полями, позицию по горизонтали JS не трогает */
@media (max-width: 640px) {
    .uy-teaser { left: 12px; right: 12px; bottom: 12px; }
    .uy-tour-pop { left: 12px !important; right: 12px; max-width: none; width: auto; }
}

@keyframes uyTourIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes uyTeaserIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .uy-tour-pop, .uy-teaser { animation: none; }
}

/* Полоса стилей: один тап вместо квиза из четырёх пар (17.09) */
/* Две колонки, а не четыре: блок живёт в узком правом рельсе (~270px), в ряд из четырёх
   картинка нечитаема, а подпись «Скандинавский» обрезается на середине (проверено глазами) */
.f3-style-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.f3-style-tile {
    display: block;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    background: none;
    cursor: pointer;
    overflow: hidden;
    font: inherit;
    text-align: center;
    transition: border-color .12s ease, transform .12s ease;
}

.f3-style-tile img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.f3-style-tile span {
    display: block;
    padding: 6px 4px 7px;
    font-size: 13px;
    line-height: 1.2;
    color: #46506a;
    white-space: normal;
    overflow-wrap: anywhere;
}

.f3-style-tile:hover { border-color: #c9d3e6; }
.f3-style-tile.is-on { border-color: #2f6df6; }
.f3-style-tile.is-on span { color: #2f6df6; font-weight: 600; }

.f3-style-picked {
    margin: 8px 0 0;
    font-size: 13px;
    color: #4a5568;
}


