/*
Theme Name: Daniel Vasilišin – Advokát
Author: JUDr. Daniel Vasilišin
Description: Minimalistická prezentačná téma pre advokáta JUDr. Daniela Vasilišina.
Version: 1.0.35
*/
:root{--olive:#252c21;--olive-deep:#1d241b;--gold:#d5a947;--gold-light:#e8c46b;--cream:#f5f1e8;--paper:#fbfaf6;--ink:#20231e;--muted:#65675f;--line:#ded6c5;--white:#fff;--max:1180px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper);line-height:1.65}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}button,input,select,textarea{font:inherit}.container{width:min(var(--max),calc(100% - 48px));margin:auto}
.site-header{position:absolute;left:0;right:0;top:0;z-index:20;color:#fff}.nav{height:142px;display:flex;align-items:center;justify-content:space-between;gap:30px;padding-top:10px}.brand{display:flex;align-items:center;justify-content:flex-start;width:170px;height:122px;overflow:hidden}.brand img{width:150px;height:150px;object-fit:contain;display:block;flex:0 0 auto}.menu{display:flex;align-items:center;gap:34px;font-size:14px}.menu a{opacity:.95;transition:.2s}.menu a:hover{color:var(--gold-light)}.nav-cta{border:1px solid var(--gold);color:var(--gold-light);padding:13px 20px;letter-spacing:.04em;font-size:12px;font-weight:700;white-space:nowrap}.nav-toggle{display:none;background:none;border:0;color:#fff;font-size:28px}
.hero{min-height:760px;background:var(--olive);color:#fff;position:relative;overflow:hidden}.hero-inner{position:relative;z-index:2;min-height:760px;display:flex;align-items:center}.hero-copy{width:52%;padding-top:145px}.eyebrow{font-size:11px;letter-spacing:.3em;text-transform:uppercase;color:var(--gold-light);font-weight:700}.hero .hero-title{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:64px;line-height:1;margin:18px 0}.hero .hero-title:after{content:"";display:block;width:95px;height:2px;background:var(--gold);margin-top:26px}.hero-lead{font-family:Georgia,'Times New Roman',serif;font-size:25px;line-height:1.35;margin:0 0 12px;max-width:570px}.hero-sub{max-width:590px;font-size:16px;color:#e9ebe4}.actions{display:flex;gap:14px;margin:30px 0}.btn{display:inline-flex;align-items:center;justify-content:center;padding:15px 23px;border:1px solid var(--gold);font-size:12px;text-transform:uppercase;letter-spacing:.05em;font-weight:700}.btn-primary{background:var(--gold);color:#252c21}.btn-outline{color:var(--gold-light)}.location{font-size:13px;color:#e1e4dc}.hero-photo{position:absolute;z-index:1;right:0;top:142px;width:48%;height:calc(100% - 142px);overflow:hidden;background:var(--olive-deep)}.hero-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--olive) 0%,rgba(37,44,33,.35) 28%,rgba(37,44,33,.08) 100%)}.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:center 24%;display:block;filter:saturate(.82) contrast(.98)}
.section{padding:88px 0}.section-label{font-size:11px;letter-spacing:.3em;text-transform:uppercase;color:#a27b2b;font-weight:700}.section h2{font-family:Georgia,'Times New Roman',serif;font-size:42px;font-weight:400;line-height:1.18;margin:8px 0 0}.about-section{background:var(--paper)}.about-intro{display:grid;grid-template-columns:420px 1fr;gap:70px;align-items:center}.about-mark{background:var(--olive);min-height:390px;display:flex;align-items:center;justify-content:center;overflow:hidden}.about-mark img{width:88%;max-width:390px}.about-intro h2{max-width:720px}.about-intro p,.about-copy p{color:#55584f}.about-body{display:grid;grid-template-columns:1.55fr .75fr;gap:80px;margin-top:58px}.about-copy p{margin:0 0 18px;text-align:justify;text-justify:inter-word}.signature{font-family:Georgia,serif;color:#9a7529;font-size:18px;margin-top:30px}.signature small{font-family:Arial,Helvetica,sans-serif;font-size:12px;color:#777}.timeline{border-left:1px solid var(--line);padding-left:32px}.timeline-item{padding:0 0 28px;position:relative}.timeline-item:before{content:"";position:absolute;left:-38px;top:5px;width:9px;height:9px;border:1px solid var(--gold);background:var(--paper);border-radius:50%}.timeline-item strong{display:block;font-family:Georgia,serif;color:#9a7529;font-size:17px;margin-bottom:5px}.timeline-item span{display:block;color:#55584f;font-size:13px;line-height:1.55}
.services-section{background:var(--cream)}.section-head{text-align:center;margin-bottom:45px}.section-head h2{font-size:40px}.services{display:grid;grid-template-columns:repeat(5,1fr);gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.card{padding:34px 22px;min-height:300px;background:var(--cream);text-align:center;border-right:1px solid var(--line)}.card:last-child{border-right:0}.card-icon{font-size:32px;color:#8d6d27;margin-bottom:18px}.card h3{font-family:Georgia,'Times New Roman',serif;font-size:20px;font-weight:400;margin:0 0 12px}.card p{font-size:13px;color:#55584f;margin:0}.card .more{display:inline-block;margin-top:20px;color:#9a7529;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.detail{background:var(--paper);padding-top:70px}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.detail-card{border:1px solid var(--line);padding:28px;background:#fff}.detail-card h3{font-family:Georgia,serif;font-size:22px;font-weight:400;margin:0 0 14px;color:var(--olive)}.detail-card ul{margin:0;padding-left:19px;color:#55584f;font-size:13px}.detail-card li{margin:5px 0}
.split{display:grid;grid-template-columns:1fr 1fr}.work{background:var(--olive);color:#fff;padding:78px max(36px,calc((100vw - var(--max))/2)) 78px 0}.work-inner{padding-left:calc((100vw - var(--max))/2)}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:42px}.step-number{color:var(--gold);font-size:28px;font-family:Georgia,serif}.step h3{font-family:Georgia,serif;font-size:17px;font-weight:400;margin:4px 0}.step p{font-size:12px;color:#d1d5cc}.response{border-top:1px solid rgba(213,169,71,.55);margin-top:40px;padding-top:18px;font-size:13px}.free-consult{margin-top:22px;color:var(--gold-light);font-family:Georgia,serif;font-size:18px}
.contact{padding:78px max(36px,calc((100vw - var(--max))/2)) 78px 65px;background:var(--cream)}.contact-meta{display:grid;gap:10px;margin:25px 0;color:#4e5149;font-size:14px}.contact-meta strong{color:var(--olive)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:25px}.field{width:100%;padding:13px 14px;border:1px solid #d4ccbb;background:rgba(255,255,255,.65);color:var(--ink);outline:none}.field:focus{border-color:var(--gold)}textarea.field{min-height:120px;resize:vertical}.full{grid-column:1/-1}.consent{font-size:11px;color:#6a6a62;margin:14px 0}.submit{border:0;background:var(--gold);padding:15px 25px;color:#252c21;font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.05em;cursor:pointer}.notice{padding:12px 14px;margin-bottom:15px;font-size:13px;background:#eee7d8}.notice.error{background:#f0dddd;color:#733}.notice.success{background:#e4eadf;color:#344a2f}
.footer{background:var(--olive-deep);color:#ddd;padding:50px 0 25px}.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:40px}.footer-name{font-family:Georgia,serif;font-size:22px;color:var(--gold-light)}.footer-role{font-size:11px;letter-spacing:.3em;text-transform:uppercase;color:#c5c9c0;margin:5px 0 15px}.footer p,.footer a{font-size:13px;color:#c5c9c0}.footer h4{color:var(--gold-light);font-size:12px;text-transform:uppercase;letter-spacing:.16em}.footer-bottom{border-top:1px solid #384036;margin-top:40px;padding-top:18px;font-size:11px;color:#92998e;display:flex;justify-content:space-between}.sticky-mobile{display:none}
@media(max-width:1050px){.menu{gap:18px}.services{grid-template-columns:repeat(3,1fr)}.card{border-bottom:1px solid var(--line)}.hero-copy{width:62%}.hero .hero-title{font-size:56px}.hero-logo{width:45vw;height:45vw}.split{grid-template-columns:1fr}.work,.contact{padding:70px 40px}.work-inner{padding-left:0}.about{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}.detail-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.container{width:min(var(--max),calc(100% - 32px))}.nav{height:92px;padding-top:0}.brand{width:115px;height:88px}.brand img{width:105px;height:105px}.menu,.nav-cta{display:none}.nav-toggle{display:block}.hero{min-height:820px}.hero-inner{min-height:820px;align-items:flex-end;padding-bottom:80px}.hero-copy{width:100%;padding-top:160px}.hero .hero-title{font-size:48px}.hero-lead{font-size:21px}.hero-photo{top:auto;bottom:0;right:0;width:100%;height:52%;opacity:.72}.hero-photo:after{background:linear-gradient(180deg,var(--olive) 0%,rgba(37,44,33,.35) 45%,rgba(37,44,33,.08) 100%)}.actions{flex-direction:column;align-items:stretch}.section{padding:62px 0}.section h2,.section-head h2{font-size:32px}.about-intro{grid-template-columns:1fr;gap:35px}.about-mark{min-height:300px}.about-body{grid-template-columns:1fr;gap:45px}.timeline{border-left:0;border-top:1px solid var(--line);padding:28px 0 0}.timeline-item:before{display:none}.services{grid-template-columns:1fr;border-bottom:0}.card{border-right:0;min-height:auto}.detail-grid{grid-template-columns:1fr}.steps{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.contact{padding:62px 24px}.work{padding:62px 24px}.footer-grid{grid-template-columns:1fr}.footer-bottom{display:block}.footer-bottom span{display:block;margin-top:7px}.sticky-mobile{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:50;background:#172016;border-top:1px solid var(--gold);height:58px}.sticky-mobile a{flex:1;display:flex;align-items:center;justify-content:center;color:#fff;font-size:10px;text-transform:uppercase;border-right:1px solid #394038}.sticky-mobile a:last-child{border-right:0;color:var(--gold-light)}}

/* v5 refinements */
.hero{min-height:690px}
.hero-inner{min-height:690px;align-items:center;justify-content:center;text-align:center}
.hero-copy{width:100%;max-width:900px;padding-top:95px;margin:0 auto}
.hero-lead,.hero-sub{margin-left:auto;margin-right:auto}
.actions{justify-content:center}
.location{margin-top:4px}
.hero-photo{display:none}
.about-intro{grid-template-columns:minmax(300px, 430px) 1fr;gap:78px;align-items:center}
.about-photo{background:var(--olive);height:520px;overflow:hidden}
.about-photo img{width:100%;height:100%;object-fit:cover;object-position:center 18%;display:block}
.split{display:block}
.work{padding:82px 0}
.work-inner{width:min(var(--max),calc(100% - 72px));margin:0 auto;padding-left:0}
.steps{grid-template-columns:repeat(4,minmax(0,1fr));gap:48px}
.step{min-width:0}
.contact{padding:82px max(36px,calc((100vw - var(--max))/2))}
.footer-bottom{justify-content:flex-start}
@media(max-width:1050px){.about-intro{grid-template-columns:1fr 1fr;gap:45px}.about-photo{height:450px}.steps{gap:28px}}
@media(max-width:760px){.hero{min-height:700px}.hero-inner{min-height:700px;padding-bottom:65px}.hero-copy{padding-top:95px}.about-intro{grid-template-columns:1fr;gap:35px}.about-photo{height:440px;max-width:520px;margin:0 auto;width:100%}.steps{grid-template-columns:1fr 1fr;gap:28px}.work{padding:62px 0}.work-inner{width:min(var(--max),calc(100% - 48px))}.contact{padding:62px 24px}}

/* v5.3 hero refinement */
.hero-copy .eyebrow{font-size:12px;letter-spacing:.24em}
.hero .hero-title{font-size:58px;line-height:1.05;margin:8px 0 18px}
@media(max-width:760px){.hero .hero-title{font-size:46px}}


/* v5.4 visual refinements */
.site-header .nav{height:154px;padding-top:14px}
.brand{width:205px;height:138px}
.brand img{width:188px;height:188px}
.hero .hero-title{font-size:50px;line-height:1.08;margin:8px 0 18px}
.hero .hero-title:after{display:none}
.card{display:flex;flex-direction:column}
.card h3{min-height:52px;display:flex;align-items:flex-start;justify-content:center}
.card p{min-height:64px}
.card .more{margin-top:auto}
@media(max-width:760px){
  .site-header .nav{height:96px;padding-top:0}
  .brand{width:125px;height:92px}
  .brand img{width:116px;height:116px}
  .hero .hero-title{font-size:42px}
  .card h3,.card p{min-height:0}
  .card .more{margin-top:20px}
}

/* v5.5 SEO/brand refinement: slightly larger original logo; no other layout changes */
.site-header .brand{width:220px;height:146px}
.site-header .brand img{width:202px;height:202px}
.hero-lead{max-width:820px}
@media(max-width:760px){
  .site-header .brand{width:135px;height:94px}
  .site-header .brand img{width:126px;height:126px}
}


/* v6 final header/hero: centered original logo, sticky navigation */
.site-header{position:fixed;top:0;left:0;right:0;z-index:100;background:rgba(29,35,27,.97);border-bottom:1px solid rgba(201,161,75,.24);backdrop-filter:blur(8px);box-shadow:0 4px 18px rgba(0,0,0,.08)}
.site-header .nav{height:76px;padding:0;display:flex;align-items:center;justify-content:center}
.site-header .menu{display:flex;align-items:center;justify-content:center;gap:34px;width:100%}
.site-header .menu a{color:#e5e7df;font-size:11px;text-transform:uppercase;letter-spacing:.12em;text-decoration:none;transition:color .2s ease}
.site-header .menu a:hover{color:var(--gold-light)}
.site-header .nav-toggle{display:none;background:none;border:0;color:#f3f1e8;font-size:25px;cursor:pointer}
.mobile-menu{display:none}
.hero{padding-top: 34px;min-height:760px}
.hero-inner{min-height:684px}
.hero-copy{padding-top:42px}
.hero-logo{display:block;width:172px;height:150px;object-fit:contain;margin:0 auto 18px}
.hero-copy .eyebrow{font-size:12px;letter-spacing:.22em}
.hero .hero-title{font-size:44px;line-height:1.08;margin:6px 0 16px}
.hero-lead{font-size:25px}
@media(max-width:760px){
  .site-header .nav{height:66px;justify-content:flex-end;padding:0 16px}
  .site-header .menu{display:none}
  .site-header .nav-toggle{display:block}
  .mobile-menu{display:flex;flex-direction:column;background:rgba(29,35,27,.99);border-top:1px solid rgba(201,161,75,.2);padding:12px 22px 18px}
  .mobile-menu[hidden]{display:none}
  .mobile-menu a{padding:13px 0;color:#eee;text-decoration:none;font-size:12px;text-transform:uppercase;letter-spacing:.1em;border-bottom:1px solid rgba(255,255,255,.07)}
  .hero{padding-top:66px;min-height:700px}
  .hero-inner{min-height:634px}
  .hero-copy{padding-top:28px}
  .hero-logo{width:138px;height:120px;margin-bottom:15px}
  .hero .hero-title{font-size:40px}
  .hero-lead{font-size:21px}
}


/* v6 service pages */
.service-page{padding-top:145px;background:var(--paper);min-height:75vh}.service-page-inner{max-width:920px}.service-page h1{font-family:Georgia,'Times New Roman',serif;font-size:54px;font-weight:400;color:var(--olive);margin:12px 0 18px}.service-lead{font-size:19px;line-height:1.7;color:#55584f;max-width:780px}.service-content{display:grid;grid-template-columns:1.2fr .8fr;gap:60px;margin-top:55px}.service-content h2{font-family:Georgia,serif;font-size:28px;font-weight:400;color:var(--olive)}.service-list{padding-left:20px;color:#55584f;line-height:1.8}.service-list li{margin:6px 0}.service-cta{background:var(--olive);color:#fff;padding:34px}.service-cta h2{color:var(--gold-light);margin-top:0}.service-cta p{color:#d7dbd2}.service-cta .btn{display:inline-block;margin-top:10px}.service-cta .free-consult{font-size:16px}@media(max-width:760px){.service-page{padding-top:105px}.service-page h1{font-size:40px}.service-content{grid-template-columns:1fr;gap:35px}}

/* v6.1: final navigation and hero logo refinements */
html{scroll-padding-top:88px}
section[id],main[id],div[id]{scroll-margin-top:88px}
.site-header{pointer-events:auto}
.site-header .menu a{position:relative;z-index:2;pointer-events:auto;cursor:pointer}
.hero-logo{width:241px;height:210px;margin:0 auto 20px}
.hero-copy{padding-top:34px}
@media(max-width:1050px){.hero-logo{width:218px;height:190px}}
@media(max-width:760px){html{scroll-padding-top:76px}section[id],main[id],div[id]{scroll-margin-top:76px}.hero-logo{width:190px;height:165px;margin-bottom:16px}.hero-copy{padding-top:22px}}

/* v7: regional location page */
.location-page{padding-top:145px;background:var(--paper);min-height:75vh}.location-inner{max-width:1000px}.location-page h1{font-family:Georgia,'Times New Roman',serif;font-size:54px;font-weight:400;color:var(--olive);margin:12px 0 18px}.location-lead{font-size:20px;line-height:1.65;color:#4e5149;max-width:900px}.location-inner>p:not(.location-lead){font-size:16px;color:#55584f;max-width:900px}.location-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:52px}.location-grid article{background:#fff;border:1px solid var(--line);padding:26px}.location-grid h2{font-family:Georgia,serif;font-size:22px;font-weight:400;color:var(--olive);margin:0 0 10px}.location-grid p{font-size:13px;color:#55584f;margin:0}.location-services{margin-top:45px;padding:34px;background:var(--cream);border:1px solid var(--line)}.location-services h2{font-family:Georgia,serif;font-size:28px;font-weight:400;color:var(--olive);margin:0 0 10px}.location-services p{font-size:14px;color:#55584f;line-height:1.75}.location-services a:not(.btn){color:#8d6d27;text-decoration:underline;text-decoration-color:rgba(141,109,39,.35);text-underline-offset:3px}@media(max-width:760px){.location-page{padding-top:105px}.location-page h1{font-size:40px}.location-grid{grid-template-columns:1fr}.location-services{padding:26px}}

/* v7.1: location integrated into homepage; refined hero spacing */
.location-section{background:var(--paper)}
.location-intro{max-width:900px;margin:0 auto 34px;text-align:center}
.location-intro p{font-size:17px;line-height:1.75;color:#55584f;margin:0}
.homepage-location-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:28px}
.homepage-location-grid article{background:#fff;border:1px solid var(--line);padding:28px;min-height:150px;display:flex;flex-direction:column;justify-content:center}
.homepage-location-grid h3{font-family:Georgia,serif;font-size:21px;font-weight:400;color:var(--olive);margin:0 0 10px}
.homepage-location-grid p{font-size:14px;line-height:1.65;color:#55584f;margin:0}
.hero-copy{padding-top:8px}
.hero-logo{width:264px;height:230px;margin-bottom:12px}
@media(max-width:1050px){.hero-logo{width:241px;height:210px}}
@media(max-width:760px){.hero-copy{padding-top:4px}.hero-logo{width:207px;height:180px;margin-bottom:10px}.homepage-location-grid{grid-template-columns:1fr}.location-intro{text-align:left}}
/* v7.2: refined hero and SEO-friendly service/location content */
.hero-logo{width:299px;height:260px;margin:0 auto 12px}
.detail-card p{margin:0 0 18px;line-height:1.75;text-align:left}
.location-intro{max-width:920px;margin:0 auto;text-align:justify}
.location-intro p{line-height:1.8;margin:0 0 18px}
@media(max-width:1050px){.hero-logo{width:264px;height:230px}}
@media(max-width:760px){.hero-logo{width:218px;height:190px;margin-bottom:10px}.location-intro{text-align:left}}

/* v7.3: final hero and service/location content refinement */
.hero .hero-title{font-size:25px;line-height:1.35;margin:0 auto 12px;max-width:820px;font-family:Georgia,'Times New Roman',serif;font-weight:400}
.hero .hero-title:after{display:none}
.hero-logo{width:329px;height:286px;margin:0 auto 12px}
.detail-card{text-align:center}
.detail-card p{margin-left:auto;margin-right:auto}
.detail-card ul{display:inline-block;text-align:left;margin-left:auto;margin-right:auto}
.location-intro{text-align:left;max-width:980px;margin:0 auto}
@media(max-width:1050px){.hero-logo{width:291px;height:253px}}
@media(max-width:760px){.hero-logo{width:240px;height:209px;margin-bottom:10px}.hero .hero-title{font-size:21px;line-height:1.35}.detail-card{text-align:center}.detail-card ul{display:inline-block;text-align:left}.location-intro{text-align:left}}

/* v7.4: justified explanatory text in "Vybrané oblasti, ktorým sa venujem" */
.detail-card p{text-align:justify;text-justify:inter-word;}
@media(max-width:760px){.detail-card p{text-align:justify;}}


/* v7.5: service-interest CTA */
.detail-card{display:flex;flex-direction:column}
.service-interest{display:inline-flex;align-items:center;justify-content:center;align-self:center;margin-top:22px;padding:11px 15px;border:1px solid var(--gold);color:var(--olive);background:transparent;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;text-decoration:none;transition:all .2s ease}
.service-interest:hover{background:var(--gold);color:#252c21}
.card .service-interest{margin-top:auto}
@media(max-width:760px){.service-interest{width:100%;max-width:280px}}


/* v10: eight service cards and consistent consultation CTAs */
.services{grid-template-columns:repeat(4,minmax(0,1fr));width:90%;margin-left:auto;margin-right:auto;}
.services .card{display:flex;flex-direction:column;min-height:297px;width:90%;justify-self:center;}
.services .card p{line-height:1.65;}
.services .card .service-interest{margin-top:auto;}
.detail-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
.detail-card .service-interest{margin-top:auto;}
@media(max-width:1050px){.services{grid-template-columns:repeat(2,minmax(0,1fr));}.services .card:nth-child(2n){border-right:0;}}
@media(max-width:760px){.services{grid-template-columns:1fr;width:100%;}.services .card{border-right:0;border-bottom:1px solid var(--line);width:100%;justify-self:stretch;}.services .card:last-child{border-bottom:0;}.detail-grid{grid-template-columns:1fr;}}

/* v7.7 – direct e-mail below contact form */
.contact-email{margin-top:22px;padding-top:16px;border-top:1px solid var(--line);font-size:14px;color:#4e5149}
.contact-email strong{color:var(--olive)}
.contact-email a{color:var(--olive);text-decoration:none}
.contact-email a:hover{text-decoration:underline}

/* v8.1: editable form controls must use normal interactive cursors */
.dv-contact-form input:not([type="submit"]):not([type="checkbox"]):not([type="file"]),
.dv-contact-form textarea,
.dv-contact-form select {
    cursor: text;
}
.dv-contact-form select,
.dv-contact-form input[type="file"] {
    cursor: pointer;
}
.dv-contact-form input[type="checkbox"] {
    cursor: pointer;
}

/* v8.3: concrete service CTA buttons */
.detail-card{display:flex;flex-direction:column}
.detail-card .detail-actions{margin-top:auto;padding-top:22px;display:flex;flex-direction:column;gap:9px}
.detail-card .service-interest{display:flex;align-items:center;justify-content:center;text-align:center;min-height:42px;padding:10px 12px;border:1px solid var(--gold);color:#8e681f;font-size:11px;font-weight:700;letter-spacing:.035em;text-transform:uppercase;line-height:1.35}
.detail-card .service-interest:hover{background:var(--gold);color:#252c21}
@media(max-width:760px){.detail-card .detail-actions{padding-top:16px}}

/* v8.5-location-copy */
.location-copy {
  max-width: 980px;
  margin: 0 auto;
}
.location-copy p {
  line-height: 1.8;
  text-align: justify;
}

/* v8.8: tighter header-to-logo spacing */

/* v8.8-hero-inner */
.hero-inner {
  margin-top: 0;
}

/* v9.1: aligned selected-service cards */
.detail .detail-grid,
.detail .services-grid,
.detail .cards-grid {
  align-items: stretch;
}

.detail .detail-card,
.detail .service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.detail .detail-card > p,
.detail .service-card > p {
  min-height: 96px;
}

.detail .detail-card > ul,
.detail .service-card > ul {
  min-height: 150px;
  margin-bottom: 28px;
}

.detail .detail-actions,
.detail .service-actions {
  margin-top: auto;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
}

.detail .detail-actions a,
.detail .service-actions a {
  margin-top: 0 !important;
}

/* Center the heading in the regional SEO section. */
.location-section .section-heading,
#posobim .section-heading,
section#posobim h2 {
  text-align: center;
}



/* Compact selected legal-service cards: keep alignment without large empty spacers. */
.selected-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.selected-services-grid > article {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: auto !important;
  box-sizing: border-box !important;
  overflow: visible;
}

/* The normal introductory text is never bold. */
.selected-services-grid > article p {
  font-weight: 400 !important;
}

/* Use natural content height; avoid artificial blank space inside cards. */
.selected-services-grid > article > p {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 0 16px !important;
  overflow: visible;
}

.selected-services-grid > article > ul {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding-left: 28px !important;
  box-sizing: border-box !important;
  overflow: visible;
}

.selected-services-grid > article .detail-actions,
.selected-services-grid > article .service-actions {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-top: 18px !important;
  padding-top: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  gap: 9px !important;
}

.selected-services-grid > article .detail-actions a,
.selected-services-grid > article .service-actions a {
  margin: 0 !important;
}

/* Keep the regional SEO heading centered. */
#posobim h2,
#posobim .section-heading,
.location-section h2,
.location-section .section-heading {
  text-align: center !important;
}

@media (max-width: 900px) {
  .selected-services-grid {
    grid-template-columns: 1fr;
  }
  .selected-services-grid > article {
    height: auto !important;
    min-height: 0 !important;
  }
  .selected-services-grid > article > p,
  .selected-services-grid > article > ul,
  .selected-services-grid > article .detail-actions,
  .selected-services-grid > article .service-actions {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}

/* Keep selected-service CTA spacing compact. */
.selected-services-grid > article .detail-actions,
.selected-services-grid > article .service-actions {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-top: 18px !important;
  padding-top: 0 !important;
  justify-content: flex-start !important;
  gap: 9px !important;
}

/* Ordinary text in selected legal-service cards is regular weight. */
.selected-services-grid > article p,
.selected-services-grid > article li {
  font-weight: 400 !important;
}

/* Keep only the intentionally emphasized agreed-price phrase bold. */
.selected-services-grid > article p strong {
  font-weight: 700 !important;
}

/* Selected legal-service cards stay compact and size to their content. */
.selected-services-grid > article {
  height: auto !important;
  min-height: 0 !important;
}

.selected-services-grid > article .detail-actions,
.selected-services-grid > article .service-actions {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-top: 18px !important;
  padding-top: 0 !important;
  justify-content: flex-start !important;
  gap: 9px !important;
}

/* v9.4-mod2: regional section spacing and About-like two-column alignment */
#posobim {
  margin-top: -76px !important;
}

#posobim .location-body {
  display: grid;
  grid-template-columns: 1.55fr .75fr;
  gap: 80px;
  align-items: start;
}

#posobim .location-copy {
  max-width: none;
  margin: 0;
}

#posobim .location-copy p {
  margin: 0;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
}



@media (max-width: 1050px) {
  #posobim .location-body {
    grid-template-columns: 1fr 1fr;
    gap: 45px;
  }
}

@media (max-width: 760px) {
  #posobim {
    margin-top: -45px !important;
  }
  #posobim .location-body {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

/* Final: clean regional SEO section */
#posobim .location-body {
  display: block !important;
}

#posobim .location-copy {
  max-width: 980px !important;
  margin: 0 auto !important;
}

#posobim .location-copy p {
  text-align: justify !important;
  text-justify: inter-word !important;
}

/* Final v2: breathing room between regional section heading and text */
#posobim .section-heading,
#posobim h2 {
  margin-bottom: 18px !important;
}

/* v17: selected legal-service cards — compact spacing without clipping or overlap. */
@media (min-width: 901px) {
  .selected-services-grid > article {
    height: 520px !important;
    min-height: 520px !important;
    max-height: 520px !important;
    padding: 22px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
  .selected-services-grid > article > h3 {
    margin: 0 0 10px !important;
    flex: 0 0 auto !important;
  }
  .selected-services-grid > article > p {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 0 12px !important;
    line-height: 1.55 !important;
    flex: 0 0 auto !important;
  }
  .selected-services-grid > article > ul {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding-left: 24px !important;
    line-height: 1.42 !important;
    flex: 0 0 auto !important;
  }
  .selected-services-grid > article > ul li {
    margin: 2px 0 !important;
  }
  .selected-services-grid > article .detail-actions,
  .selected-services-grid > article .service-actions {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-top: auto !important;
    padding-top: 14px !important;
    gap: 7px !important;
    flex: 0 0 auto !important;
  }
}

/* v12: final content refinement; preserve the compact selected-service layout. */


/* v13: richer local SEO section without claiming a physical office */
#posobim .section-heading { margin-bottom: 24px !important; }
#posobim .location-copy { max-width: 980px !important; margin: 0 auto 28px !important; }
#posobim .location-copy p { margin: 0 0 14px !important; line-height: 1.8 !important; text-align: justify !important; }
#posobim .homepage-location-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 30px; }
#posobim .homepage-location-grid article { min-height: 145px; padding: 24px; }
#posobim .homepage-location-grid h3 { margin-bottom: 9px; }
#posobim .homepage-location-grid p { line-height: 1.65; }
.location-services-home { margin: 28px auto 0; max-width: 980px; padding: 26px 30px; background: var(--cream); border: 1px solid var(--line); }
.location-services-home h3 { font-family: Georgia,serif; font-size: 25px; font-weight: 400; color: var(--olive); margin: 0 0 9px; }
.location-services-home p { font-size: 14px; line-height: 1.75; color: #55584f; margin: 0; }
@media(max-width:1050px){#posobim .homepage-location-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:760px){#posobim .location-copy p{text-align:left !important;}#posobim .homepage-location-grid{grid-template-columns:1fr;} .location-services-home{padding:22px;}}


/* v14: location section – 4x2 desktop grid and visual refinement */
#posobim .homepage-location-grid {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:0 !important;
  margin-top:32px !important;
  border-top:1px solid var(--line);
  border-left:1px solid var(--line);
}
#posobim .homepage-location-grid article {
  background:#fff;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:24px 22px !important;
  min-height:190px !important;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}
#posobim .homepage-location-grid .location-icon {
  color:#8d6d27;
  font-size:26px;
  line-height:1;
  margin-bottom:12px;
}
#posobim .homepage-location-grid h3 {
  font-family:Georgia,'Times New Roman',serif;
  font-size:19px !important;
  line-height:1.25;
  font-weight:400;
  color:var(--olive);
  margin:0 0 9px !important;
}
#posobim .homepage-location-grid p {
  font-size:12px !important;
  line-height:1.6 !important;
  color:#55584f;
  margin:0 !important;
}
@media(max-width:1050px){
  #posobim .homepage-location-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media(max-width:760px){
  #posobim .homepage-location-grid { grid-template-columns:1fr !important; }
  #posobim .homepage-location-grid article { min-height:0 !important; padding:22px !important; }
}

/* v16: complete 4x2 service grid – no broken/incomplete outer lines. */
.services {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border: 1px solid var(--line) !important;
}
.services .card {
  width: 100% !important;
  justify-self: stretch !important;
  border-right: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
}
.services .card:nth-child(4n) { border-right: 0 !important; }
.services .card:nth-child(n+5) { border-bottom: 0 !important; }
@media(max-width:1050px){
  .services .card:nth-child(4n) { border-right: 1px solid var(--line) !important; }
  .services .card:nth-child(2n) { border-right: 0 !important; }
  .services .card:nth-child(n+7) { border-bottom: 0 !important; }
  .services .card:nth-child(n+5):not(:nth-child(n+7)) { border-bottom: 1px solid var(--line) !important; }
}
@media(max-width:760px){
  .services { width: 100% !important; border-bottom: 0 !important; }
  .services .card { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .services .card:last-child { border-bottom: 0 !important; }
}

/* v17 final: preserve the complete 4x2 grid for the top legal-services section. */
@media (min-width: 901px) {
  .services {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    border-top: 1px solid var(--line) !important;
    border-left: 1px solid var(--line) !important;
  }
  .services .card {
    border-right: 1px solid var(--line) !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .services .card:nth-child(4n) { border-right: 1px solid var(--line) !important; }
  .services .card:nth-child(n+5) { border-bottom: 1px solid var(--line) !important; }
}
@media (max-width: 900px) and (min-width: 701px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .services .card { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .services .card:nth-child(2n) { border-right: 1px solid var(--line) !important; }
}
@media (max-width: 700px) {
  .services { grid-template-columns: 1fr !important; }
  .services .card { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .services .card:last-child { border-bottom: 0 !important; }
}

/* v18: selected legal-service cards — natural height, no artificial empty space. */
@media (min-width: 901px) {
  .selected-services-grid {
    align-items: start !important;
  }
  .selected-services-grid > article {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 22px !important;
    box-sizing: border-box !important;
    align-self: start !important;
  }
  .selected-services-grid > article > h3 {
    margin: 0 0 10px !important;
  }
  .selected-services-grid > article > p {
    margin: 0 0 12px !important;
    line-height: 1.55 !important;
  }
  .selected-services-grid > article > ul {
    margin: 0 !important;
    padding-left: 24px !important;
    line-height: 1.42 !important;
  }
  .selected-services-grid > article > ul li {
    margin: 2px 0 !important;
  }
  .selected-services-grid > article .detail-actions,
  .selected-services-grid > article .service-actions {
    margin-top: 16px !important;
    padding-top: 0 !important;
    gap: 7px !important;
  }
}

/* v20: align bullet lists and CTA buttons without pushing CTAs to the bottom of tall cards. */
@media (min-width: 901px) {
  .selected-services-grid {
    align-items: stretch !important;
    grid-auto-rows: auto !important;
  }
  .selected-services-grid > article {
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }

  /* Keep the introductory paragraphs aligned within each two-column row. */
  .selected-services-grid > article:nth-child(1) > p,
  .selected-services-grid > article:nth-child(2) > p { min-height: 76px !important; }
  .selected-services-grid > article:nth-child(3) > p,
  .selected-services-grid > article:nth-child(4) > p,
  .selected-services-grid > article:nth-child(5) > p,
  .selected-services-grid > article:nth-child(6) > p,
  .selected-services-grid > article:nth-child(7) > p,
  .selected-services-grid > article:nth-child(8) > p { min-height: 52px !important; }

  /* Match the bullet-list height within each row, so the CTA starts at the same level. */
  .selected-services-grid > article:nth-child(1) > ul,
  .selected-services-grid > article:nth-child(2) > ul { min-height: 170px !important; }
  .selected-services-grid > article:nth-child(3) > ul,
  .selected-services-grid > article:nth-child(4) > ul { min-height: 160px !important; }
  .selected-services-grid > article:nth-child(5) > ul,
  .selected-services-grid > article:nth-child(6) > ul { min-height: 150px !important; }
  .selected-services-grid > article:nth-child(7) > ul,
  .selected-services-grid > article:nth-child(8) > ul { min-height: 125px !important; }

  .selected-services-grid > article > p {
    flex: 0 0 auto !important;
  }
  .selected-services-grid > article > ul {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding-left: 24px !important;
    line-height: 1.42 !important;
  }
  .selected-services-grid > article > ul li {
    margin: 2px 0 !important;
  }
  .selected-services-grid > article .detail-actions,
  .selected-services-grid > article .service-actions {
    margin-top: 12px !important;
    padding-top: 0 !important;
    align-items: center !important;
    width: 100% !important;
    gap: 7px !important;
  }
  .selected-services-grid > article .detail-actions a,
  .selected-services-grid > article .service-actions a {
    width: 270px !important;
    max-width: 100% !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
}

@media (max-width: 900px) {
  .selected-services-grid > article .detail-actions,
  .selected-services-grid > article .service-actions {
    align-items: center !important;
  }
  .selected-services-grid > article .detail-actions a,
  .selected-services-grid > article .service-actions a {
    max-width: 100% !important;
    min-height: 42px !important;
  }
}

/* v21: final alignment of selected-service content and CTA buttons. */
@media (min-width: 901px) {
  .selected-services-grid > article {
    display: grid !important;
    grid-template-rows: 52px auto auto auto !important;
    align-content: start !important;
  }

  .selected-services-grid > article > h3 {
    min-height: 52px !important;
    height: 52px !important;
    margin: 0 0 14px !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }

  /* Each row gets the same text/list block heights, so the CTA begins at one level. */
  .selected-services-grid > article:nth-child(1) > p,
  .selected-services-grid > article:nth-child(2) > p {
    height: 76px !important;
    min-height: 76px !important;
  }
  .selected-services-grid > article:nth-child(3) > p,
  .selected-services-grid > article:nth-child(4) > p {
    height: 64px !important;
    min-height: 64px !important;
  }
  .selected-services-grid > article:nth-child(5) > p,
  .selected-services-grid > article:nth-child(6) > p,
  .selected-services-grid > article:nth-child(7) > p,
  .selected-services-grid > article:nth-child(8) > p {
    height: 64px !important;
    min-height: 64px !important;
  }

  .selected-services-grid > article:nth-child(1) > ul,
  .selected-services-grid > article:nth-child(2) > ul {
    height: 170px !important;
    min-height: 170px !important;
  }
  .selected-services-grid > article:nth-child(3) > ul,
  .selected-services-grid > article:nth-child(4) > ul {
    height: 160px !important;
    min-height: 160px !important;
  }
  .selected-services-grid > article:nth-child(5) > ul,
  .selected-services-grid > article:nth-child(6) > ul {
    height: 150px !important;
    min-height: 150px !important;
  }
  .selected-services-grid > article:nth-child(7) > ul,
  .selected-services-grid > article:nth-child(8) > ul {
    height: 125px !important;
    min-height: 125px !important;
  }

  .selected-services-grid > article > ul {
    margin: 0 !important;
    padding-left: 24px !important;
    line-height: 1.42 !important;
    overflow: visible !important;
  }

  .selected-services-grid > article .detail-actions,
  .selected-services-grid > article .service-actions {
    margin: 12px 0 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
  }

  .selected-services-grid > article .detail-actions a,
  .selected-services-grid > article .service-actions a {
    width: 270px !important;
    max-width: 100% !important;
    min-height: 42px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

@media (max-width: 900px) {
  .selected-services-grid > article > h3,
  .selected-services-grid > article > p,
  .selected-services-grid > article > ul {
    height: auto !important;
    min-height: 0 !important;
  }
}

/* v22: prevent CTA overlap in the final selected-services row. */
@media (min-width: 901px) {
  .selected-services-grid > article:nth-child(7) > ul,
  .selected-services-grid > article:nth-child(8) > ul {
    height: 150px !important;
    min-height: 150px !important;
    overflow: visible !important;
  }
  .selected-services-grid > article:nth-child(7) .detail-actions,
  .selected-services-grid > article:nth-child(8) .detail-actions {
    margin-top: 12px !important;
    padding-top: 0 !important;
    position: relative !important;
    z-index: 2 !important;
  }
}

/* v23: slightly more breathing room before CTAs in business-law cards. */
@media (min-width: 901px) {
  .selected-services-grid > article:nth-child(5) .detail-actions,
  .selected-services-grid > article:nth-child(6) .detail-actions,
  .selected-services-grid > article:nth-child(5) .service-actions,
  .selected-services-grid > article:nth-child(6) .service-actions {
    margin-top: 18px !important;
  }
}


/* v24 FINAL GRID CORRECTION
 * Keep each homepage section on its intended, independent grid.
 * Do not use a global grid rule across sections.
 */

/* 1) Compact service overview: 3 columns on desktop. */
@media (min-width: 901px) {
  #sluzby .services {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0 !important;
  }

  #sluzby .services .card {
    width: auto !important;
    min-height: 300px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
    border-right: 1px solid var(--line) !important;
    border-bottom: 1px solid var(--line) !important;
  }

  #sluzby .services .card:nth-child(3n) {
    border-right: 0 !important;
  }

  #sluzby .services .card:nth-child(n+7) {
    border-bottom: 0 !important;
  }

  #sluzby .services .card .service-interest {
    margin-top: auto !important;
  }
}

/* 2) Detailed legal services: 2 columns on desktop.
 * Bullet lists and CTA buttons stay aligned within each row.
 */
@media (min-width: 901px) {
  .detail .selected-services-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
    align-items: stretch !important;
  }

  .detail .selected-services-grid > article {
    width: auto !important;
    max-width: none !important;
  }
}

/* 3) Regional SEO/location cards: 3 columns on desktop. */
@media (min-width: 1051px) {
  #posobim .homepage-location-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    border: 0 !important;
  }

  #posobim .homepage-location-grid article {
    border: 1px solid var(--line) !important;
    min-height: 145px !important;
  }
}

/* Tablet/mobile breakpoints remain independent for each section. */
@media (max-width: 1050px) and (min-width: 761px) {
  #sluzby .services {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #sluzby .services .card {
    border-right: 1px solid var(--line) !important;
    border-bottom: 1px solid var(--line) !important;
  }

  #sluzby .services .card:nth-child(2n) {
    border-right: 0 !important;
  }

  #posobim .homepage-location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  #sluzby .services {
    grid-template-columns: 1fr !important;
  }

  #sluzby .services .card {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    min-height: auto !important;
  }

  #sluzby .services .card:last-child {
    border-bottom: 0 !important;
  }

  #posobim .homepage-location-grid {
    grid-template-columns: 1fr !important;
  }
}


/* v25 FINAL: both 8-card overview sections use a complete 4 × 2 desktop grid.
 * This removes the visually awkward 3 + 3 + 2 layout.
 */
@media (min-width: 1051px) {
  #sluzby .services {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  #sluzby .services .card {
    width: auto !important;
    min-height: 300px !important;
  }

  #posobim .homepage-location-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  #posobim .homepage-location-grid article {
    min-height: 145px !important;
  }
}

/* v27: final repair of the 8-card legal-services grid. Keep the 4 × 2 layout,
 * make every cell fill its grid column, and keep borders aligned without gaps. */
@media (min-width: 1051px) {
  #sluzby {
    scroll-margin-top: 120px;
  }

  #sluzby .services {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0 !important;
    border-top: 1px solid var(--line) !important;
    border-left: 1px solid var(--line) !important;
    border-bottom: 1px solid var(--line) !important;
  }

  #sluzby .services .card {
    width: 100% !important;
    min-height: 300px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-right: 1px solid var(--line) !important;
    border-bottom: 1px solid var(--line) !important;
  }

  #sluzby .services .card:nth-child(4n) {
    border-right: 0 !important;
  }

  #sluzby .services .card:nth-child(n+5) {
    border-bottom: 0 !important;
  }
}

@media (max-width: 1050px) and (min-width: 761px) {
  #sluzby { scroll-margin-top: 105px; }
  #sluzby .services { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; gap: 0 !important; }
  #sluzby .services .card { width: 100% !important; margin: 0 !important; box-sizing: border-box !important; }
}

@media (max-width: 760px) {
  #sluzby { scroll-margin-top: 92px; }
  #sluzby .services { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
  #sluzby .services .card { width: 100% !important; margin: 0 !important; box-sizing: border-box !important; }
}

/* v28: seamless legal-services grid lines */
@media (min-width: 901px) {
  .services {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-rows: 1fr !important;
    gap: 1px !important;
    padding: 1px !important;
    border: 1px solid var(--line) !important;
    background: var(--line) !important;
  }
  .services .card,
  .services .card:nth-child(4n),
  .services .card:nth-child(n+5) {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    border: 0 !important;
    margin: 0 !important;
    background: var(--cream) !important;
  }
}
@media (max-width: 900px) and (min-width: 701px) {
  .services {
    gap: 1px !important;
    padding: 1px !important;
    border: 1px solid var(--line) !important;
    background: var(--line) !important;
  }
  .services .card,
  .services .card:nth-child(2n) {
    border: 0 !important;
    background: var(--cream) !important;
  }
}

/* v29: service overview as separate cards, matching the window/card treatment used elsewhere. */
@media (min-width: 1051px) {
  .services {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
  }
  .services .card {
    width: auto !important;
    min-height: 297px !important;
    margin: 0 !important;
    padding: 34px 24px !important;
    background: #fff !important;
    border: 1px solid var(--line) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-self: stretch !important;
    box-sizing: border-box !important;
  }
  .services .card:nth-child(4n),
  .services .card:nth-child(n+5) {
    border-right: 1px solid var(--line) !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .services .card .service-interest {
    margin-top: auto !important;
    align-self: center !important;
  }
}

@media (max-width: 1050px) and (min-width: 761px) {
  .services {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
  }
  .services .card,
  .services .card:nth-child(4n),
  .services .card:nth-child(n+5) {
    width: auto !important;
    min-height: 297px !important;
    margin: 0 !important;
    padding: 30px 22px !important;
    background: #fff !important;
    border: 1px solid var(--line) !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 760px) {
  .services {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
  }
  .services .card,
  .services .card:nth-child(4n),
  .services .card:nth-child(n+5) {
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid var(--line) !important;
    box-sizing: border-box !important;
  }
}

/* v30: legal services as separate cards, matching the other card sections */
.services-section .services {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.services-section .services .card {
  width: 100% !important;
  min-height: 300px !important;
  margin: 0 !important;
  padding: 30px 22px !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  justify-self: stretch !important;
}
.services-section .services .card:last-child,
.services-section .services .card:nth-child(2n),
.services-section .services .card:nth-child(4n) {
  border-right: 1px solid var(--line) !important;
}
.services-section .services .card h3 {
  min-height: 52px;
  margin-bottom: 12px;
}
.services-section .services .card p {
  min-height: 64px;
  line-height: 1.65;
}
.services-section .services .card .service-interest {
  margin-top: auto !important;
}
@media(max-width:1050px){
  .services-section .services {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .services-section .services .card,
  .services-section .services .card:nth-child(2n),
  .services-section .services .card:nth-child(4n) {
    border: 1px solid var(--line) !important;
  }
}
@media(max-width:760px){
  .services-section .services {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .services-section .services .card,
  .services-section .services .card:nth-child(2n),
  .services-section .services .card:nth-child(4n) {
    min-height: 0 !important;
    border: 1px solid var(--line) !important;
  }
  .services-section .services .card h3,
  .services-section .services .card p {
    min-height: 0;
  }
}

/* v31: complete the outer right and bottom edges of the legal-services card grid */
@media(min-width:1051px){
  .services-section .services {
    border-right: 1px solid var(--line) !important;
    border-bottom: 1px solid var(--line) !important;
  }
}

/* v32: truly uniform 1px grid lines for the eight legal-service cards.
 * The lines are drawn by the grid itself, not by individual card borders,
 * so every horizontal and vertical divider has exactly the same thickness.
 */
@media (min-width: 1051px) {
  .services-section .services {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(300px, auto)) !important;
    gap: 1px !important;
    padding: 1px !important;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    background: var(--line) !important;
  }
  .services-section .services .card,
  .services-section .services .card:nth-child(2n),
  .services-section .services .card:nth-child(4n),
  .services-section .services .card:nth-child(n+5) {
    width: 100% !important;
    min-height: 300px !important;
    height: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 1050px) and (min-width: 761px) {
  .services-section .services {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1px !important;
    padding: 1px !important;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    background: var(--line) !important;
  }
  .services-section .services .card,
  .services-section .services .card:nth-child(2n),
  .services-section .services .card:nth-child(4n),
  .services-section .services .card:nth-child(n+5) {
    width: 100% !important;
    min-height: 297px !important;
    margin: 0 !important;
    border: 0 !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 760px) {
  .services-section .services {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1px !important;
    padding: 1px !important;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    background: var(--line) !important;
  }
  .services-section .services .card,
  .services-section .services .card:nth-child(2n),
  .services-section .services .card:nth-child(4n),
  .services-section .services .card:nth-child(n+5) {
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }
}


/* v33: final, deterministic 4x2 legal-services grid.
 * Each direct card occupies exactly one grid cell; no spanning or legacy
 * nth-child border rules are allowed to alter the geometry. */
@media (min-width: 1051px) {
  #sluzby .services {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, 320px) !important;
    grid-auto-flow: row !important;
    grid-auto-rows: 320px !important;
    gap: 1px !important;
    padding: 1px !important;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    background: var(--line) !important;
    overflow: hidden !important;
  }
  #sluzby .services > .card {
    grid-column: auto !important;
    grid-row: auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 30px 22px !important;
    border: 0 !important;
    background: #fff !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-self: stretch !important;
    align-self: stretch !important;
  }
  #sluzby .services > .card h3 {
    min-height: 52px !important;
  }
  #sluzby .services > .card p {
    min-height: 64px !important;
  }
  #sluzby .services > .card .service-interest {
    margin-top: auto !important;
  }
}

@media (max-width: 1050px) and (min-width: 761px) {
  #sluzby .services {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-rows: 300px !important;
    gap: 1px !important;
    padding: 1px !important;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    background: var(--line) !important;
  }
  #sluzby .services > .card {
    grid-column: auto !important;
    grid-row: auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 760px) {
  #sluzby .services {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
    grid-auto-rows: auto !important;
    gap: 1px !important;
    padding: 1px !important;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    background: var(--line) !important;
  }
  #sluzby .services > .card {
    grid-column: auto !important;
    grid-row: auto !important;
    width: auto !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    border: 0 !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }
}

/* v33: use the supplied portrait without changing the surrounding layout. */
.about-photo img {
  object-fit: cover;
  object-position: center 18%;
}


/* v34: prevent text/button overlap in the 8-card legal-services grid.
 * Keep the existing design, but give the two desktop rows enough vertical
 * room and prevent flex items from shrinking below their text content. */
@media (min-width: 1051px) {
  #sluzby .services {
    grid-template-rows: repeat(2, 350px) !important;
    grid-auto-rows: 350px !important;
  }

  #sluzby .services > .card {
    min-height: 0 !important;
    height: 100% !important;
    overflow: visible !important;
  }

  #sluzby .services > .card .card-icon,
  #sluzby .services > .card h3,
  #sluzby .services > .card p,
  #sluzby .services > .card .service-interest {
    flex-shrink: 0 !important;
  }

  #sluzby .services > .card p {
    height: auto !important;
    overflow: visible !important;
  }

  #sluzby .services > .card .service-interest {
    margin-top: auto !important;
    flex-shrink: 0 !important;
  }
}

/* v35: separate articles section and dedicated article archive/single templates. */
.articles-section { background: var(--paper, #f7f5ef); }
.articles-section .section-head > p,
.articles-page-header > p { max-width: 760px; color: var(--muted, #62645f); line-height: 1.75; }
.article-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.article-card { display: flex; flex-direction: column; min-width: 0; padding: 26px; background: #fff; border: 1px solid var(--line, #e4e0d6); border-radius: 12px; box-shadow: 0 8px 26px rgba(25, 32, 24, .035); }
.article-card-date, .single-article-meta { color: var(--muted, #686a63); font-size: .86rem; }
.article-card h3 { margin: 12px 0 10px; font-size: 1.2rem; line-height: 1.4; }
.article-card h3 a, .article-list-item h2 a { color: var(--ink, #20251e); text-decoration: none; }
.article-card h3 a:hover, .article-list-item h2 a:hover { color: var(--gold, #9b8146); }
.article-card p { color: var(--muted, #62645f); line-height: 1.7; }
.article-read-more { display: inline-flex; gap: 8px; align-items: center; align-self: flex-start; margin-top: auto; padding-top: 10px; color: var(--ink, #20251e); font-weight: 600; text-decoration: none; }
.article-read-more:hover, .article-back-link:hover { color: var(--gold, #9b8146); }
.articles-all-wrap { display: flex; justify-content: center; margin-top: 30px; }
.articles-empty { padding: 24px; border: 1px solid var(--line, #e4e0d6); border-radius: 12px; background: #fff; color: var(--muted, #62645f); line-height: 1.7; }
.articles-page-header { max-width: 820px; margin: 0 auto 42px; }
.articles-page-header h1 { margin: 8px 0 16px; }
.article-list { display: grid; gap: 24px; }
.article-list-item { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px; padding: 26px; border: 1px solid var(--line, #e4e0d6); border-radius: 12px; background: #fff; }
.article-list-image img { display: block; width: 100%; height: 190px; object-fit: cover; border-radius: 8px; }
.article-list-content h2 { margin: 9px 0 10px; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.35; }
.article-list-content p { color: var(--muted, #62645f); line-height: 1.7; }
.article-pagination { margin-top: 32px; }
.article-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.article-pagination a, .article-pagination span { display: inline-block; padding: 8px 12px; border: 1px solid var(--line, #e4e0d6); border-radius: 6px; text-decoration: none; }
.single-article-container { max-width: 850px; }
.single-article-content { padding: clamp(22px, 4vw, 48px); border: 1px solid var(--line, #e4e0d6); border-radius: 14px; background: #fff; }
.single-article-header h1 { margin: 12px 0 14px; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.2; }
.single-article-excerpt { margin: 22px 0; color: var(--muted, #62645f); font-size: 1.15rem; line-height: 1.7; }
.single-article-featured-image { margin: 26px 0; }
.single-article-featured-image img { display: block; width: 100%; height: auto; border-radius: 10px; }
.entry-content { margin-top: 28px; font-size: 1.04rem; line-height: 1.85; overflow-wrap: anywhere; }
.entry-content h2, .entry-content h3 { margin-top: 1.8em; line-height: 1.35; }
.entry-content img { max-width: 100%; height: auto; }
.single-article-footer { margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line, #e4e0d6); }
.single-article-footer .legal-article-note { margin-top: 24px; color: var(--muted, #73746e); font-size: .88rem; line-height: 1.65; }
.article-back-link { display: inline-block; margin-top: 16px; color: var(--ink, #20251e); text-decoration: none; font-weight: 600; }
@media (max-width: 900px) { .article-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .article-cards { grid-template-columns: 1fr; }
  .article-card, .article-list-item { padding: 20px; }
  .article-list-item { grid-template-columns: 1fr; gap: 16px; }
  .article-list-image img { height: 210px; }
  .single-article-content { padding: 22px 18px; }
}

/* v1.0.34: SEO H1 in hero (small label above the motto); motto keeps the former H1 look */
.hero .hero-kicker{display:block;margin:0 0 6px;font-family:Arial,Helvetica,sans-serif;font-size:12px;font-weight:700;line-height:1.4;letter-spacing:.22em;text-transform:uppercase;color:var(--gold-light)}
.hero .hero-kicker:after{display:none}
@media(max-width:760px){.hero .hero-kicker{font-size:10px;letter-spacing:.16em}}
/* v1.0.34: generic pages, archives and 404 (page.php / index.php) */
.generic-page .container{max-width:850px}
.generic-page h1{font-family:Georgia,'Times New Roman',serif;font-size:42px;font-weight:400;line-height:1.18;margin:8px 0 0;color:var(--olive)}
.consent a,.footer-bottom a{text-decoration:underline}
@media(max-width:760px){.generic-page h1{font-size:32px}}

/* ===== v1.0.35: service pages, services dropdown, card links ===== */
/* Header dropdown "Právne služby" */
.menu-dropdown{position:relative;display:flex;align-items:center}
.menu-dropdown > a:after{content:"";display:inline-block;width:5px;height:5px;margin-left:7px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:translateY(-3px) rotate(45deg)}
.menu-dropdown .submenu{display:none;position:absolute;top:100%;left:-18px;min-width:270px;padding:10px 0;background:var(--olive-deep);border:1px solid rgba(213,169,71,.45);box-shadow:0 14px 30px rgba(0,0,0,.25);z-index:40}
.site-header .menu .submenu a{display:block;padding:10px 18px;font-size:11px;white-space:nowrap}
.menu-dropdown:hover .submenu,.menu-dropdown:focus-within .submenu{display:block}
.mobile-menu a.mobile-sub{padding-left:16px;font-size:11px;color:#c9cdc4}
/* Homepage cards: heading link + "Viac o službe" */
.detail-card h3 a{color:inherit}
.detail-card h3 a:hover{color:#9a7529}
.dv-more-links{display:flex;flex-direction:column;gap:6px;margin-top:14px}
.dv-more-link{color:#8e681f;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;text-decoration:underline;text-underline-offset:3px}
.dv-more-link:hover{color:var(--olive)}
/* Footer: five columns when the "Oblasti práva" column is present */
@media(min-width:1051px){.footer-grid:has(.footer-services){grid-template-columns:1.2fr 1.1fr 1fr .8fr .8fr;gap:32px}}
/* Service page */
.service-breadcrumb{font-size:12px;color:var(--muted);margin-bottom:22px}
.service-breadcrumb a{text-decoration:underline;text-underline-offset:3px}
.service-breadcrumb span{margin:0 4px}
.service-page h1{line-height:1.12}
.service-lead{font-family:Georgia,'Times New Roman',serif;font-size:22px;line-height:1.5;color:#3d4138;max-width:800px;margin:0 0 26px}
.service-hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:18px;margin-bottom:20px}
.service-hero-note{color:#9a7529;font-family:Georgia,serif;font-size:17px}
.service-block{margin-top:56px}
.service-block h2,.service-entry h2{font-family:Georgia,'Times New Roman',serif;font-size:32px;font-weight:400;line-height:1.2;color:var(--olive);margin:0 0 18px}
.service-list{display:grid;grid-template-columns:1fr 1fr;gap:10px 34px;margin:0;padding:24px 28px 24px 46px;background:#fff;border:1px solid var(--line)}
.service-list li{color:#45483f}
.service-entry{margin-top:56px;font-size:1.04rem;line-height:1.85;color:#33362f}
.service-entry h2{margin-top:1.6em}
.service-entry h3{font-family:Georgia,serif;font-weight:400;font-size:22px;color:var(--olive)}
.service-steps-list{list-style:none;counter-reset:step;display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:0;padding:0}
.service-steps-list li{counter-increment:step;padding:22px;background:var(--olive);color:#d9ddd3;font-size:13px;line-height:1.6}
.service-steps-list li:before{content:"0" counter(step);display:block;color:var(--gold);font-family:Georgia,serif;font-size:26px}
.service-steps-list strong{display:block;color:#fff;font-family:Georgia,serif;font-weight:400;font-size:17px;margin:4px 0}
.service-steps-note{margin-top:16px;color:#9a7529;font-family:Georgia,serif;font-size:17px}
.service-related .article-cards{margin-top:0}
.service-contact{padding:40px;background:var(--cream);border:1px solid var(--line)}
.service-contact > p{color:#4e5149}
.service-others ul{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none}
.service-others a{display:inline-block;padding:10px 14px;border:1px solid var(--gold);color:#8e681f;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.service-others a:hover{background:var(--gold);color:#252c21}
@media(max-width:1050px){.service-steps-list{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.service-lead{font-size:19px}.service-list{grid-template-columns:1fr;padding:20px 20px 20px 36px}.service-block h2,.service-entry h2{font-size:26px}.service-steps-list{grid-template-columns:1fr}.service-contact{padding:26px 18px}.service-block{margin-top:44px}}
