/* ============================================================
   PARTNERS (/partners/): надувной бассейн с кругами-логотипами
   Фото static/pool.webp (1400×787); вода на нём — эллипс с центром
   49.97% / 30.90% и радиусами 43.14% / 24.29% (те же доли в partners-pool.js)
   ============================================================ */
.partners-section:not(.bg-light) {
    color: #eaf6fb;
}

.partners-narrow {
    max-width: 860px;
}

.partners-lead {
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0;
}

.partners-title {
    font-size: clamp(1.3rem, 2.6vw, 1.75rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: 0.75rem;
}

.partners-section:not(.bg-light) .partners-title {
    color: #fff;
}

.partners-hint {
    text-align: center;
    color: rgba(230, 246, 250, 0.75);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.partners-link {
    color: #aeefff;
    font-weight: 600;
}

/* --- Бассейн --- */
.pool {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 1400 / 787;
}

/* Мягкая тень под бассейном */
.pool::before {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: -3%;
    height: 12%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 45, 80, 0.3), rgba(0, 45, 80, 0) 70%);
}

.pool-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pool-photo { z-index: 1; }
.pool-water { z-index: 2; pointer-events: none; }
.pool-buoys { z-index: 3; }
.pool-front { z-index: 4; pointer-events: none; }

/* --- Вода: анимированные блики поверх воды на фото --- */
.pool-water {
    clip-path: ellipse(43.14% 24.29% at 49.97% 30.9%);
    overflow: hidden;
}

/* Солнечные блики на дне — два слоя сетки, плывущие в разные стороны */
.pool-caustics {
    position: absolute;
    inset: -30%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M0 40 C30 20 60 60 100 40 S170 20 200 40'/%3E%3Cpath d='M0 120 C40 100 70 150 110 120 S170 100 200 120'/%3E%3Cpath d='M40 0 C20 40 60 70 40 110 S20 170 40 200'/%3E%3Cpath d='M140 0 C170 30 120 80 150 120 S170 170 140 200'/%3E%3C/g%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    filter: blur(2px);
}

.pool-caustics--a {
    background-size: 240px 120px; /* сплющено под перспективу фото */
    opacity: 0.6;
    animation: caustics-a 16s linear infinite;
}

.pool-caustics--b {
    background-size: 170px 85px;
    opacity: 0.45;
    animation: caustics-b 11s linear infinite;
}

@keyframes caustics-a {
    from { transform: translate(0, 0); }
    to   { transform: translate(240px, 120px); }
}

@keyframes caustics-b {
    from { transform: translate(0, 0); }
    to   { transform: translate(-170px, 85px); }
}

/* Пологие волны и скользящий солнечный блик */
.pool-waves {
    position: absolute;
    inset: -15%;
    background:
        radial-gradient(ellipse 18% 30% at 50% 50%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 70%),
        repeating-linear-gradient(
            176deg,
            rgba(255, 255, 255, 0) 0 22px,
            rgba(255, 255, 255, 0.22) 22px 25px,
            rgba(255, 255, 255, 0) 25px 46px
        );
    background-size: 100% 100%, 100% 100%;
    mix-blend-mode: soft-light;
    filter: blur(1.5px);
    animation: surface-waves 5s ease-in-out infinite alternate, glint 14s ease-in-out infinite alternate;
}

@keyframes surface-waves {
    from { transform: translate(-14px, -6px) skewY(-1.5deg); }
    to   { transform: translate(14px, 6px) skewY(1.5deg); }
}

@keyframes glint {
    from { background-position: -30% 0, 0 0; }
    to   { background-position: 30% 0, 0 0; }
}

/* --- Спасательные круги --- */
.buoy {
    position: absolute;
    left: 0;
    top: 0;
    width: 14%;
    aspect-ratio: 310 / 170;
    display: block;
    will-change: transform;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.buoy:focus-visible {
    outline: none;
}

/* Тень в воде и расходящаяся рябь */
.buoy::before,
.buoy::after {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    top: 30%;
    bottom: -6%;
    border-radius: 50%;
    pointer-events: none;
}

.buoy::before {
    background: radial-gradient(ellipse at center, rgba(0, 60, 90, 0.35), rgba(0, 60, 90, 0) 70%);
    transform: translateY(6%);
}

.buoy::after {
    border: 2px solid rgba(255, 255, 255, 0.55);
    animation: buoy-ripple 3.2s ease-out infinite;
    animation-delay: var(--ripple-delay, 0s);
}

@keyframes buoy-ripple {
    0%   { transform: scale(0.85); opacity: 0.8; }
    100% { transform: scale(1.35); opacity: 0; }
}

.buoy-ring {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 3px 3px rgba(0, 40, 70, 0.25));
}

.buoy-logo,
.buoy-name {
    position: absolute;
    left: 50%;
    top: 47%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.buoy-logo {
    max-width: 80%;
    max-height: 62%;
    object-fit: contain;
    /* белый контур, чтобы логотип читался на оранжевом */
    filter:
        drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff)
        drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff)
        drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.buoy-name {
    width: 80%;
    text-align: center;
    font-weight: 700;
    font-size: clamp(0.55rem, 1vw, 0.85rem);
    line-height: 1.1;
    color: #0b4f7a;
    text-shadow: 0 0 3px #fff, 0 0 3px #fff;
}

.buoy.is-active .buoy-ring {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.95)) drop-shadow(0 4px 6px rgba(0, 40, 70, 0.3));
}

/* --- Подсказка с описанием партнёра --- */
.pool-tooltip {
    position: absolute;
    z-index: 10;
    left: 0;
    top: 0;
    width: min(320px, 80vw);
    padding: 0.85rem 1rem;
    background: #fff;
    color: #2a3540;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 40, 70, 0.25);
    font-size: 0.85rem;
    line-height: 1.4;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 12px));
}

.pool-tooltip.is-below {
    transform: translate(-50%, 12px);
}

.pool-tooltip strong {
    display: block;
    font-size: 0.95rem;
    color: #1b2a33;
    margin-bottom: 0.15rem;
}

.buoy-place {
    display: block;
    font-size: 0.78rem;
    color: var(--muted, #55636e);
    margin-bottom: 0.4rem;
}

.buoy-desc {
    display: block;
    margin-bottom: 0.4rem;
}

.buoy-go {
    display: block;
    font-size: 0.75rem;
    color: var(--ocean-700, #0f6f93);
}

/* --- Список для узких экранов --- */
.partners-mobile-list {
    display: none;
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}

.partners-mobile-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 14px rgba(0, 40, 70, 0.08);
}

.partners-mobile-list li + li {
    margin-top: 0.75rem;
}

.partners-mobile-list img {
    width: 90px;
    height: 50px;
    object-fit: contain;
    flex: none;
}

.partners-mobile-list p {
    font-size: 0.85rem;
    margin: 0.25rem 0;
}

@media (max-width: 767px) {
    .buoy { width: 18%; }
    .partners-mobile-list { display: block; }
    .partners-hint { display: none; }
}

/* «Уменьшение движения» в системе: анимация остаётся, но спокойнее */
@media (prefers-reduced-motion: reduce) {
    .pool-caustics--a { animation-duration: 40s; }
    .pool-caustics--b { animation-duration: 30s; }
    .pool-waves { animation-duration: 12s, 30s; }
    .buoy::after { animation-duration: 6s; }
}
