/* =========================================================
   APG ERDVES — category landing pages
   Visual language aligned with APG First Page.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;550;600;650;700&family=Playfair+Display:wght@500;600&display=swap&subset=latin-ext');

.apg-space-page,
.apg-space-page *{box-sizing:border-box}
.apg-space-page{
    --apg-space-ink:#111;
    --apg-space-text:#25211d;
    --apg-space-muted:#756e68;
    --apg-space-muted-2:#958d86;
    --apg-space-line:rgba(17,17,17,.10);
    --apg-space-accent:#60404c;
    --apg-space-paper:#f5f4f1;
    --apg-space-shadow:0 18px 52px rgba(0,0,0,.052),0 0 0 1px rgba(17,17,17,.075) inset;
    --apg-space-shadow-hover:0 25px 68px rgba(0,0,0,.082),0 0 0 1px rgba(17,17,17,.115) inset;
    width:100%;
    padding:0 0 82px;
    background:#fff;
    color:var(--apg-space-text);
    font-family:'Montserrat','Raleway',Arial,sans-serif;
    overflow:hidden;
}
.apg-space-page a,
.apg-space-page a:hover,
.apg-space-page a:focus,
.apg-space-page a:active{color:inherit;text-decoration:none}

.apg-space-hero,
.apg-space-section,
.apg-space-other{
    width:100%;
    max-width:1420px;
    margin-left:auto;
    margin-right:auto;
    padding-left:22px;
    padding-right:22px;
}
.apg-space-hero{margin-top:42px;margin-bottom:34px}
.apg-space-breadcrumb{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:9px;
    margin:0 0 24px;
    color:#817a74;
    font-size:.78rem;
    line-height:1.4;
    font-weight:500;
}
.apg-space-breadcrumb a{border-bottom:1px solid transparent;transition:border-color .18s ease,color .18s ease}
.apg-space-breadcrumb a:hover{color:#111;border-color:rgba(17,17,17,.28)}
.apg-space-breadcrumb span[aria-hidden="true"]{color:#bbb4ae}

.apg-space-hero-row{
    padding:0 0 30px;
    border-bottom:1px solid var(--apg-space-line);
}
.apg-space-kicker{
    display:block;
    margin:0 0 12px;
    color:var(--apg-space-muted-2);
    font-size:.86rem;
    line-height:1;
    letter-spacing:1.55px;
    text-transform:uppercase;
    font-weight:600;
}
.apg-space-hero h1{
    max-width:980px;
    margin:0;
    color:var(--apg-space-ink);
    font-family:'Playfair Display',Georgia,serif;
    font-size:clamp(2.65rem,5vw,5.35rem);
    line-height:.98;
    letter-spacing:-.052em;
    font-weight:500;
}

.apg-space-section{margin-bottom:84px}
.apg-space-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
    align-items:stretch;
}
.apg-space-card{
    display:flex;
    flex-direction:column;
    min-width:0;
    padding:14px;
    border-radius:25px;
    background:#fff;
    box-shadow:var(--apg-space-shadow);
    overflow:hidden;
    transform:translateZ(0);
    transition:transform .24s ease,box-shadow .24s ease;
}
.apg-space-card:hover,
.apg-space-card:focus-visible{
    transform:translateY(-3px);
    box-shadow:var(--apg-space-shadow-hover);
    outline:none;
}
.apg-space-card-media{
    position:relative;
    display:block;
    width:100%;
    aspect-ratio:1/1;
    border-radius:19px;
    background:var(--apg-space-paper);
    overflow:hidden;
}
.apg-space-card-media:after{
    content:'';
    position:absolute;
    inset:0;
    border:1px solid rgba(17,17,17,.035);
    border-radius:inherit;
    pointer-events:none;
}
.apg-space-card-media img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    transform:scale(1.001);
    transition:transform .48s cubic-bezier(.2,.75,.25,1),filter .35s ease;
}
.apg-space-card:hover .apg-space-card-media img,
.apg-space-card:focus-visible .apg-space-card-media img{
    transform:scale(1.022);
    filter:saturate(1.015) contrast(1.01);
}
.apg-space-card-body{
    position:relative;
    display:flex;
    flex-direction:column;
    flex:1 1 auto;
    min-height:142px;
    padding:18px 4px 4px;
}
.apg-space-card-no{
    display:block;
    margin:0 0 12px;
    color:#a39b94;
    font-size:.76rem;
    line-height:1;
    letter-spacing:1.25px;
    font-weight:650;
}
.apg-space-card-title{
    display:block;
    color:#151515;
    font-family:'Playfair Display',Georgia,serif;
    font-size:clamp(1.58rem,1.2vw + 1.06rem,2.18rem);
    line-height:1.07;
    letter-spacing:-.035em;
    font-weight:500;
}
.apg-space-card-cta,
.apg-space-other-cta{
    display:inline-flex;
    align-items:center;
    align-self:flex-start;
    gap:10px;
    margin-top:auto;
    padding-top:19px;
    color:#59534e;
    font-size:.82rem;
    line-height:1;
    letter-spacing:1.12px;
    text-transform:uppercase;
    font-weight:650;
}
.apg-space-card-cta:after,
.apg-space-other-cta:after{
    content:'';
    width:32px;
    height:1px;
    background:linear-gradient(90deg,var(--apg-space-accent),rgba(96,64,76,.22));
    transition:width .22s ease;
}
.apg-space-card:hover .apg-space-card-cta:after,
.apg-space-other-card:hover .apg-space-other-cta:after{width:42px}

.apg-space-empty{
    padding:46px;
    border-radius:24px;
    background:#faf9f7;
    box-shadow:var(--apg-space-shadow);
    text-align:center;
}
.apg-space-empty h2{margin:0;font-family:'Playfair Display',Georgia,serif;font-size:2rem;font-weight:500}
.apg-space-empty p{max-width:620px;margin:14px auto;color:#6b645e;line-height:1.7}
.apg-space-empty a{display:inline-flex;margin-top:20px;padding-bottom:4px;border-bottom:1px solid rgba(17,17,17,.25);font-weight:650}

/* Kitos erdvės */
.apg-space-other{
    padding-top:42px;
    border-top:1px solid var(--apg-space-line);
}
.apg-space-other-head{
    margin:0 0 28px;
}
.apg-space-other-head h2{
    margin:0;
    color:#151515;
    font-family:'Playfair Display',Georgia,serif;
    font-size:clamp(2rem,3.2vw,3.75rem);
    line-height:1;
    letter-spacing:-.048em;
    font-weight:500;
}
.apg-space-other-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px;
}
.apg-space-other-card{
    display:flex;
    flex-direction:column;
    min-width:0;
    padding:12px;
    border-radius:23px;
    background:#fff;
    box-shadow:var(--apg-space-shadow);
    overflow:hidden;
    transition:transform .24s ease,box-shadow .24s ease;
}
.apg-space-other-card:hover,
.apg-space-other-card:focus-visible{
    transform:translateY(-3px);
    box-shadow:var(--apg-space-shadow-hover);
    outline:none;
}
.apg-space-other-media{
    position:relative;
    display:block;
    width:100%;
    aspect-ratio:16/10;
    border-radius:17px;
    background:var(--apg-space-paper);
    overflow:hidden;
}
.apg-space-other-media:after{
    content:'';
    position:absolute;
    inset:0;
    border:1px solid rgba(17,17,17,.035);
    border-radius:inherit;
    pointer-events:none;
}
.apg-space-other-media img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    transform:scale(1.001);
    transition:transform .48s cubic-bezier(.2,.75,.25,1),filter .35s ease;
}
.apg-space-other-card:hover .apg-space-other-media img,
.apg-space-other-card:focus-visible .apg-space-other-media img{
    transform:scale(1.022);
    filter:saturate(1.015) contrast(1.01);
}
.apg-space-other-body{
    display:flex;
    flex-direction:column;
    flex:1 1 auto;
    min-height:142px;
    padding:17px 5px 5px;
}
.apg-space-other-no{
    display:block;
    margin:0 0 10px;
    color:#a39b94;
    font-size:.72rem;
    line-height:1;
    letter-spacing:1.2px;
    font-weight:650;
}
.apg-space-other-title{
    display:block;
    color:#151515;
    font-family:'Playfair Display',Georgia,serif;
    font-size:clamp(1.42rem,1vw + 1.05rem,1.92rem);
    line-height:1.08;
    letter-spacing:-.032em;
    font-weight:500;
}
.apg-space-other-cta{padding-top:17px;font-size:.76rem}

@media(max-width:1050px){
    .apg-space-grid,
    .apg-space-other-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){
    .apg-space-page{padding-bottom:58px}
    .apg-space-hero,
    .apg-space-section,
    .apg-space-other{padding-left:11px;padding-right:11px}
    .apg-space-hero{margin-top:26px;margin-bottom:22px}
    .apg-space-breadcrumb{margin-bottom:18px;font-size:.72rem}
    .apg-space-hero-row{padding-bottom:22px}
    .apg-space-kicker{font-size:.76rem;letter-spacing:1.12px}
    .apg-space-hero h1{font-size:clamp(2.35rem,12vw,3.55rem)}
    .apg-space-section{margin-bottom:58px}
    .apg-space-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    .apg-space-card{padding:9px;border-radius:18px}
    .apg-space-card-media{border-radius:14px}
    .apg-space-card-body{min-height:117px;padding:13px 2px 2px}
    .apg-space-card-no{margin-bottom:8px;font-size:.66rem}
    .apg-space-card-title{font-size:clamp(1.16rem,5.2vw,1.48rem);line-height:1.08}
    .apg-space-card-cta{padding-top:14px;font-size:.67rem;letter-spacing:.8px}
    .apg-space-card-cta:after{width:22px}

    .apg-space-other{padding-top:31px}
    .apg-space-other-head{margin-bottom:20px}
    .apg-space-other-head h2{font-size:2rem}
    .apg-space-other-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    .apg-space-other-card{padding:8px;border-radius:18px}
    .apg-space-other-media{aspect-ratio:1/1;border-radius:14px}
    .apg-space-other-body{min-height:112px;padding:13px 2px 2px}
    .apg-space-other-no{margin-bottom:8px;font-size:.64rem}
    .apg-space-other-title{font-size:clamp(1.08rem,4.8vw,1.36rem)}
    .apg-space-other-cta{padding-top:13px;font-size:.65rem;letter-spacing:.78px}
    .apg-space-other-cta:after{width:22px}
}
@media(max-width:380px){
    .apg-space-grid,
    .apg-space-other-grid{gap:9px}
    .apg-space-card,
    .apg-space-other-card{padding:7px}
    .apg-space-card-title{font-size:1.05rem}
    .apg-space-other-title{font-size:1rem}
    .apg-space-card-cta,
    .apg-space-other-cta{font-size:.61rem}
}
@media(prefers-reduced-motion:reduce){
    .apg-space-card,
    .apg-space-card-media img,
    .apg-space-card-cta:after,
    .apg-space-other-card,
    .apg-space-other-media img,
    .apg-space-other-cta:after{transition:none!important}
}
