/*
Theme Name: Blocksy Child
Template: blocksy
Version: 1.0
*/

:root{
    --bg:#081a2d;
    --bg2:#0d2742;
    --bg3:#0f3252;
    --card:#112b47;
    --text:#ffffff;
    --muted:rgba(255,255,255,.78);
    --muted-dark:#5f6f82;
    --line:rgba(255,255,255,.12);
    --line-dark:rgba(16,35,58,.08);
    --accent:#2d7ff9;
    --accent-2:#67b7ff;
    --light:#f4f7fb;
    --white:#ffffff;
    --shadow-soft:0 18px 50px rgba(0,0,0,.16);
    --shadow-card:0 14px 34px rgba(16,35,58,.10);
    --radius-lg:24px;
    --radius-md:18px;
    --radius-sm:14px;
}

.poolshop-container{
    width:min(1280px, calc(100% - 48px));
    margin:0 auto;
}

.section-head{
    margin:0 0 28px;
}

.section-title{
    font-size:34px;
    line-height:1.08;
    margin:0 0 10px;
    color:#10233a;
    letter-spacing:-0.02em;
}

.section-subtitle{
    margin:0;
    color:#6b7a8c;
    font-size:16px;
    line-height:1.6;
    max-width:760px;
}

.section-head-light .section-title{
    color:#10233a;
}

.section-head-light .section-subtitle{
    color:#687789;
}

/* HERO */

.poolshop-hero{
    height:340px;
    background-size:cover;
    background-position:center center;
    position:relative;
    display:flex;
    align-items:center;
    overflow:hidden;
    isolation:isolate;
}

.poolshop-hero::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    background:
        linear-gradient(
            90deg,
            rgba(5,16,28,.72) 0%,
            rgba(5,16,28,.48) 26%,
            rgba(5,16,28,.16) 50%,
            rgba(5,16,28,0) 76%
        );
}

.poolshop-hero::after{
    height:60px;
    background:linear-gradient(
        180deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.20) 55%,
        #f4f7fb 100%
    );
}

.poolshop-hero-glow{
    position:absolute;
    left:8%;
    bottom:-60px;
    width:420px;
    height:220px;
    border-radius:999px;
    background:radial-gradient(circle, rgba(74,197,255,.18) 0%, rgba(74,197,255,.05) 42%, rgba(74,197,255,0) 72%);
    filter:blur(12px);
    z-index:1;
    pointer-events:none;
}

.hero-inner{
    position:relative;
    z-index:2;
    width:100%;
    display:flex;
    align-items:center;
}

.hero-card{
    max-width:470px;
    background:
        linear-gradient(180deg, rgba(13,29,47,.52) 0%, rgba(10,24,39,.38) 100%);
    border:1px solid rgba(255,255,255,.14);
    border-radius:24px;
    padding:28px 28px 26px;
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(12px);
    box-shadow:
        0 20px 60px rgba(0,0,0,.22),
        inset 0 1px 0 rgba(255,255,255,.10);
    position:relative; /* важно для псевдоэлементов */
    overflow:hidden;   /* чтобы блик не выходил за скругления */ 
    box-shadow:
    0 20px 60px rgba(0,0,0,.25),
    0 0 80px rgba(80,200,255,.08),
    inset 0 1px 0 rgba(255,255,255,.14);    
}

.hero-card::before{
    content:"";
    position:absolute;
    inset:-40% -20% auto -20%;
    height:140%;
    background:
        radial-gradient(circle at 30% 40%, rgba(120,220,255,.18) 0%, rgba(120,220,255,.10) 18%, rgba(120,220,255,0) 40%),
        radial-gradient(circle at 70% 30%, rgba(120,220,255,.16) 0%, rgba(120,220,255,.08) 16%, rgba(120,220,255,0) 36%),
        radial-gradient(circle at 50% 60%, rgba(120,220,255,.12) 0%, rgba(120,220,255,.06) 20%, rgba(120,220,255,0) 45%);
    filter:blur(18px);
    opacity:.75;
    pointer-events:none;
    animation:poolGlow 12s ease-in-out infinite alternate;
}

.hero-kicker{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:0 12px;
    margin:0 0 14px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.06);
    color:rgba(255,255,255,.82);
    font-size:13px;
    font-weight:600;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.hero-card h1{
    color:#fff;
    font-size:42px;
    line-height:1.02;
    letter-spacing:-0.03em;
    margin:0 0 14px;
    text-wrap:balance;
}

.hero-card p{
    color:rgba(255,255,255,.84);
    font-size:16px;
    line-height:1.65;
    margin:0 0 22px;
    max-width:420px;
}

.hero-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.hero-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:50px;
    padding:0 24px;
    border-radius:16px;
    background:
        linear-gradient(180deg, #4ca8ff 0%, #2d7ff9 100%);
    color:#fff;
    text-decoration:none;
    font-weight:700;
    font-size:15px;
    border:1px solid rgba(255,255,255,.18);
    box-shadow:
        0 14px 34px rgba(45,127,249,.32),
        inset 0 1px 0 rgba(255,255,255,.24);
    transition:transform .22s ease, box-shadow .22s ease, filter .22s ease;
    position:relative;
    overflow:hidden;    
}

.hero-btn::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        120deg,
        rgba(255,255,255,0) 30%,
        rgba(255,255,255,.35) 50%,
        rgba(255,255,255,0) 70%
    );
    transform:translateX(-120%);
    transition:transform .6s ease;
}

.hero-btn:hover::after{
    transform:translateX(120%);
}
.hero-btn:hover{
    transform:translateY(-2px);
    box-shadow:
        0 18px 38px rgba(45,127,249,.38),
        inset 0 1px 0 rgba(255,255,255,.28);
    filter:brightness(1.03);
    color:#fff;
}

/* CATEGORIES */

.poolshop-categories{
    background:#f4f7fb;
    padding:24px 0 72px;
}

.poolshop-categories::before{
    content:"";
    position:absolute;
    inset:0 0 auto 0;
    height:1px;
    background:rgba(255,255,255,.06);
}

.cat-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0,1fr));
    gap:22px;
}

.cat{
    position:relative;
    display:block;
    overflow:hidden;
    border-radius:22px;
    height:220px;
    background:#102741;
    text-decoration:none;
    box-shadow:0 18px 40px rgba(16,35,58,.12);
    border:1px solid rgba(16,35,58,.06);
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.cat.pools{
    grid-column:span 2;
}

.cat img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    object-position:center;
    transition:transform .45s ease;
}

.cat::after{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(180deg, rgba(0,0,0,.02) 0%, rgba(0,0,0,.14) 45%, rgba(0,0,0,.58) 100%);
}

.cat span{
    position:absolute;
    left:20px;
    bottom:18px;
    z-index:2;
    color:#fff;
    font-size:24px;
    font-weight:700;
    letter-spacing:-0.02em;
    text-shadow:0 2px 12px rgba(0,0,0,.28);
}

.cat:hover{
    transform:translateY(-6px);
    box-shadow:0 28px 60px rgba(16,35,58,.18);
}
.cat:hover img{
    transform:scale(1.05);
}

/* PRODUCTS */

.poolshop-products{
    padding:76px 0 84px;
    background:var(--light);
}

.poolshop-products ul.products{
    margin-top:10px;
}

.poolshop-products ul.products li.product{
    border-radius:20px;
    overflow:hidden;
    background:#fff;
    padding:16px;
    box-shadow:var(--shadow-card);
    border:1px solid var(--line-dark);
    transition:transform .22s ease, box-shadow .22s ease;
}

.poolshop-products ul.products li.product:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 36px rgba(16,35,58,.14);
}

/* BENEFITS */

.poolshop-benefits{
    background:linear-gradient(180deg, #0d2742 0%, #081a2d 100%);
    padding:60px 0 74px;
}

.benefits-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0,1fr));
    gap:20px;
}

.benefit{
    background:rgba(255,255,255,.04);
    border:1px solid var(--line);
    border-radius:20px;
    padding:24px;
    color:#fff;
    box-shadow:0 10px 24px rgba(0,0,0,.10);
}

.benefit strong{
    display:block;
    font-size:20px;
    line-height:1.2;
    margin-bottom:10px;
    letter-spacing:-0.02em;
}

.benefit p{
    margin:0;
    color:var(--muted);
    line-height:1.65;
    font-size:15px;
}

/* BANNER */

.poolshop-banner{
    min-height:420px;
    background-size:cover;
    background-position:center;
    position:relative;
    display:flex;
    align-items:center;
    overflow:hidden;
}

.poolshop-banner::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(90deg, rgba(8,18,32,.18) 0%, rgba(8,18,32,.44) 48%, rgba(8,18,32,.66) 100%);
}

.banner-inner{
    position:relative;
    z-index:2;
    width:100%;
    display:flex;
    justify-content:flex-end;
}

.banner-card{
    max-width:560px;
    background:rgba(10,22,39,.48);
    border:1px solid rgba(255,255,255,.12);
    border-radius:24px;
    padding:30px;
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    box-shadow:0 18px 50px rgba(0,0,0,.18);
}

.banner-card h2{
    color:#fff;
    font-size:42px;
    line-height:1.06;
    margin:0 0 14px;
    letter-spacing:-0.03em;
}

.banner-card p{
    color:var(--muted);
    margin:0 0 18px;
    font-size:16px;
    line-height:1.65;
}

/* RESPONSIVE */

@media (max-width: 1024px){
    .poolshop-hero{
        height:440px;
    }

    .hero-card{
        max-width:430px;
        padding:22px 24px;
    }

    .hero-card h1{
        font-size:38px;
    }

    .cat-grid{
        grid-template-columns:repeat(2, minmax(0,1fr));
    }

    .cat.pools{
        grid-column:span 2;
    }

    .benefits-grid{
        grid-template-columns:repeat(2, minmax(0,1fr));
    }

    .banner-card h2{
        font-size:36px;
    }
}

@media (max-width: 767px){
    .poolshop-container{
        width:min(100% - 24px, 100%);
    }

    .section-title{
        font-size:30px;
    }

    .section-subtitle{
        font-size:15px;
    }

    .poolshop-hero{
        height:380px;
        align-items:flex-end;
        background-position:center;
    }

    .hero-inner{
        padding-bottom:18px;
    }

    .hero-card{
        max-width:100%;
        padding:20px;
        border-radius:18px;
    }

    .hero-card h1{
        font-size:30px;
    }

    .hero-card p{
        font-size:15px;
        line-height:1.55;
        margin-bottom:18px;
    }

    .hero-btn{
        min-height:46px;
        padding:0 20px;
        border-radius:14px;
    }

    .poolshop-categories{
        padding:44px 0 60px;
    }

    .cat-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .cat,
    .cat.pools{
        grid-column:span 1;
        height:220px;
    }

    .cat span{
        font-size:22px;
        letter-spacing:-0.02em;
        text-shadow:0 4px 16px rgba(0,0,0,.25);
    }

    .benefits-grid{
        grid-template-columns:1fr;
    }

    .banner-inner{
        justify-content:flex-start;
    }

    .banner-card{
        padding:22px;
        border-radius:18px;
    }

    .banner-card h2{
        font-size:30px;
    }

    .banner-card p{
        font-size:15px;
    }
}

@keyframes poolGlow{
    0%{
        transform:translateY(-6%) scale(1);
        opacity:.65;
    }
    100%{
        transform:translateY(6%) scale(1.08);
        opacity:.9;
    }
}