
:root{--green:#195c34;--green-dark:#104629;--red:#c3232e;--ink:#182a20;--mist:#f0f6f0;--paper:#fff;--line:#dbe6dc}
body{background:#fff;color:var(--ink)}
.site-header{background:#fff}
.header-inner{gap:clamp(12px,2vw,28px);min-height:92px}
.brand{gap:12px;flex-shrink:0}
.brand img{width:80px;height:66px}
.brand-wordmark{font:800 clamp(23px,2.2vw,35px)/1 Manrope,Arial,sans-serif;letter-spacing:-.055em;color:#15542e;white-space:nowrap}
.site-nav{gap:clamp(6px,1vw,17px);font-size:13px;flex:1;justify-content:flex-end}
.site-nav>a:not(.nav-contact),.category-toggle{border:0;border-radius:9px;background:#eff5ef;color:#174b2d;padding:12px clamp(10px,1.1vw,17px);font-weight:800;white-space:nowrap;line-height:1.4}
.site-nav>a:not(.nav-contact):hover,.category-toggle:hover,.category-toggle[aria-expanded=true]{background:#dcebdc;color:#0c3f22}
.site-nav .nav-contact{background:#bb2530;padding:13px 16px;color:#fff;white-space:nowrap}
.nav-categories{position:relative}
.category-toggle{font:800 13px/1.4 "DM Sans",Arial,sans-serif;cursor:pointer;background:#eff5ef;color:#174b2d;box-shadow:none}
.category-toggle:hover,.category-toggle[aria-expanded=true]{background:#dcebdc;color:#0c3f22}.nav-categories.is-active>.category-toggle{background:#1d6137;color:#fff;box-shadow:0 3px 10px #1c5a3026}
.category-menu{position:absolute;top:100%;left:50%;transform:translateX(-50%);z-index:80;width:300px;max-height:min(65vh,530px);overflow:auto;padding:10px;background:white;border:1px solid #dce8dd;border-radius:16px;box-shadow:0 20px 50px #123e2530;display:none;grid-template-columns:1fr;gap:3px}
.nav-categories:hover .category-menu,.nav-categories:focus-within .category-menu,.nav-categories.is-open .category-menu{display:grid}
.category-menu a{font-size:13px;font-weight:800;padding:11px 14px;border-radius:8px;color:#1b5734;white-space:normal}
.category-menu a:hover{background:#edf5ee;color:#9e1d29}
.home-hero{min-height:600px;background:#1a402b}
.hero-photo{background-size:cover!important;background-position:center center!important}
.home-hero h1{font-size:clamp(2.7rem,5.1vw,5.4rem);max-width:850px;line-height:1.08;text-shadow:0 3px 15px #0005}
.home-hero h1 em{color:#e5f4e8}
.home-hero p{color:white}
.button-primary{background:#bf2630}
.button-primary:hover{background:#a61e28}
.button-light{color:#14522f}
.eyebrow,.text-link,.strip-grid strong{color:#195b35}
.program-card{border-color:#dbe6dd;box-shadow:0 5px 22px #1a48200b}
@media(hover:hover) and (pointer:fine){.program-card:hover{box-shadow:0 17px 40px #14462b22}}
.card-index{color:#bd2931}
.section-tint,.page-hero,.sub-hero{background:#edf5ee}
.cta-section{background:#16552f}
.site-footer{background:#123d27}
.nav-contact:hover{background:#a61d28}
@media(min-width:1051px) and (max-width:1250px){
 .header-inner{gap:12px}
 .brand img{width:63px;height:55px}
 .brand-wordmark{font-size:25px}
 .site-nav{gap:6px;font-size:12px}
 .site-nav>a:not(.nav-contact),.category-toggle{padding:11px 9px}
 .site-nav .nav-contact{padding:11px 10px}
}
@media(max-width:1050px){
 .site-nav{gap:8px;align-items:stretch}
 .site-nav>a:not(.nav-contact),.category-toggle{display:block;width:100%;text-align:left;padding:13px 15px}
 .category-menu{position:static;transform:none;width:100%;max-height:none;box-shadow:none;margin-top:6px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .nav-categories:not(.is-open) .category-menu{display:none}
 .nav-categories.is-open .category-menu{display:grid}
 .site-nav .nav-contact{justify-content:center}
}
@media(max-width:600px){
 .brand-wordmark{font-size:clamp(21px,6vw,30px)}
 .brand img{width:62px;height:51px}
 .header-inner{min-height:74px}
 .category-menu{grid-template-columns:1fr}
 .home-hero{min-height:590px}
 .hero-photo{background-position:62% center!important}
}

/* CMS v6.7: highlight only the current page in the navigation. */
.site-nav>a.is-active:not(.nav-contact),.site-nav .category-menu>a.is-active{background:#1d6137!important;color:#fff!important;box-shadow:0 3px 10px #1c5a3026}
.site-nav>a.is-active{font-weight:900}

/* CMS v6.8 — search icon in main navigation */
.site-nav>a.nav-search{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;padding:8px;border-radius:9px}
.site-nav>a.nav-search svg{display:block;flex-shrink:0}
.site-nav>a.nav-search:hover,.site-nav>a.nav-search:focus-visible{background:#dcebdc;color:#0c3f22}
.site-nav>a.nav-search.is-active{background:#1d6137!important;color:white!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.cms-search-wrap{max-width:1000px;margin:50px auto;padding:24px 20px;min-height:55vh}
.cms-search-wrap h1{margin-bottom:20px}.cms-search-form{gap:10px;max-width:760px;margin-bottom:28px;}
.cms-search-form input{padding:14px 16px;border:1px solid #b4c7ba;border-radius:10px;font:inherit;}
.cms-search-form button{padding:12px 22px;border-radius:10px;color:#fff;font:inherit;font-weight:700;cursor:pointer;}
.cms-search-results{display:grid;gap:12px}.cms-search-result{display:block;padding:16px 18px;border:1px solid #dce7df;color:inherit;}
.cms-search-result:hover{border-color:#1d6137;background:#f3f8f3}.cms-search-result strong{display:block;margin-bottom:5px;color:#1d6137}.cms-search-result p{margin:0}
@media(max-width:550px){.cms-search-form{flex-direction:column}}

/* Search page uses the same page shell and responsive navigation as the rest of the site. */
.cms-search-wrap{width:min(1100px,calc(100% - 40px));max-width:1100px;margin:0 auto;padding:clamp(55px,8vw,105px) 0 100px;min-height:65vh}
.cms-search-wrap h1{font-family:Manrope,Arial,sans-serif;font-size:clamp(32px,4.5vw,54px);font-weight:800;letter-spacing:-.045em;color:#163d2c;margin:0 0 25px}
.cms-search-form{max-width:900px;display:flex;gap:12px;margin:0 0 32px}
.cms-search-form input{background:#fff;box-shadow:0 6px 30px #133d2610;min-height:56px}
.cms-search-form button{padding-inline:30px;background:#1d6137}
.cms-search-form button:hover{background:#124a2a}
.cms-search-results{max-width:900px}
.cms-search-result{border:1px solid #dce8de;border-radius:12px;padding:22px;background:#fff;box-shadow:0 5px 24px #133d260a;text-decoration:none}
.cms-search-result strong{color:#15542e;font-size:19px}
.cms-search-result p{color:#506359;line-height:1.6;margin:8px 0 0}
@media(max-width:600px){.cms-search-form{flex-direction:column}.cms-search-form button{min-height:50px}.cms-search-wrap{width:calc(100% - 32px)}}

/* v7.1: search page visual refinements */
.cms-search-wrap{min-height:calc(100vh - 370px);padding-top:clamp(58px,7vw,100px);padding-bottom:clamp(90px,10vw,150px)}
.cms-search-heading{max-width:860px;margin-bottom:30px}
.cms-search-kicker{display:block;color:#26764a;font-weight:800;font-size:12px;letter-spacing:.16em;margin-bottom:13px}
.cms-search-heading h1{margin-bottom:12px}
.cms-search-heading p{color:#586b61;font-size:clamp(15px,1.6vw,18px);line-height:1.6;margin:0}
.cms-search-form{max-width:960px;margin-bottom:24px}
.cms-search-form input{flex:1;min-width:0;border:1px solid #bfd5c6;border-radius:12px;padding:17px 20px;font-size:16px}
.cms-search-form button{border:0;border-radius:12px;min-width:130px;font-size:16px;transition:background .2s}
.cms-search-suggestions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#62756a;font-size:14px;margin-top:8px}
.cms-search-suggestions a{display:inline-flex;align-items:center;border:1px solid #dce9df;border-radius:999px;background:#f3f8f4;color:#1a5734;text-decoration:none;padding:9px 14px;font-weight:700}
.cms-search-suggestions a:hover{background:#e1f0e5;border-color:#a7cdb2}
.cms-search-results{margin-top:22px}
.cms-search-result{transition:border-color .2s,transform .2s,box-shadow .2s}
.cms-search-result:hover{transform:translateY(-2px);box-shadow:0 12px 30px #133d2612}
@media(max-width:600px){.cms-search-form button{width:100%}.cms-search-wrap{padding-top:48px;padding-bottom:90px}}

/* v11.4 — galvenās izvēlnes “Pieteikties” tāds pats augstums kā citām saitēm */
@media (min-width:1051px){
 .site-nav .nav-contact{padding:12px clamp(10px,1.1vw,17px);line-height:1.4;min-height:0;box-sizing:border-box;align-self:center;transform:none}
 .site-nav .nav-contact:hover{transform:none}
}
@media (max-width:1050px){
 .site-nav .nav-contact{padding:13px 15px;line-height:1.4;min-height:0;box-sizing:border-box}
}


/* v12.6: kategoriju izvēlnes transporta piktogrammas */
.category-menu a{align-items:center;gap:12px;min-height:48px;line-height:1.3;}
.category-menu a::before{content:"";display:block;flex:0 0 29px;width:29px;height:29px;background-color:#eaf2e9;background-position:center;background-repeat:no-repeat;background-size:23px 23px;border-radius:8px}
.category-menu a:nth-child(1)::before{background-image:url("category-icons/car-illustrated.png")}
.category-menu a:nth-child(2)::before{background-image:url("category-icons/motorcycle-illustrated.png")}
.category-menu a:nth-child(3)::before{background-image:url("category-icons/truck-illustrated.png")}
.category-menu a:nth-child(4)::before{background-image:url("category-icons/bus-illustrated.png")}
.category-menu a:nth-child(5)::before{background-image:url("category-icons/tractor.svg")}
.category-menu a:nth-child(6)::before{background-image:url("category-icons/tractor-trailer.svg")}
.category-menu a:nth-child(7)::before{background-image:url("category-icons/harvester.svg")}
.category-menu a:nth-child(8)::before{background-image:url("category-icons/excavator.svg")}
.category-menu a:nth-child(9)::before{background-image:url("category-icons/certificate-illustrated.png")}

/* v12.7 — kompaktas, sānskata transportlīdzekļu ikonas vienā izvēlnes logā */
@media(min-width:1051px){.category-menu{width:355px!important;max-height:min(80vh,650px)!important;overflow-y:auto!important;padding:8px 12px!important;gap:0!important;grid-template-columns:1fr!important}}
.category-menu a{display:flex!important;align-items:center!important;gap:15px!important;min-height:54px!important;line-height:1.2!important;box-sizing:border-box!important;}
.category-menu a+a{border-top:1px solid #e4e9e5;border-radius:0}
.category-menu a::before{width:95px!important;min-width:95px!important;height:43px!important;flex:0 0 95px!important;background-color:transparent!important;background-size:90px 42px!important;border-radius:0!important;}
@media(max-width:1050px){.category-menu{grid-template-columns:1fr!important}.category-menu a{min-height:51px!important}.category-menu a::before{width:82px!important;min-width:82px!important;flex-basis:82px!important;background-size:78px 39px!important}}

/* v12.8 — lietotāja apstiprinātās transporta siluetu bildes */
.category-menu a:nth-child(1)::before{background-image:url("category-icons/car-illustrated.png")!important}
.category-menu a:nth-child(2)::before{background-image:url("category-icons/motorcycle-illustrated.png")!important}
.category-menu a:nth-child(3)::before{background-image:url("category-icons/truck-illustrated.png")!important}
.category-menu a:nth-child(4)::before{background-image:url("category-icons/bus-illustrated.png")!important}
.category-menu a:nth-child(5)::before{background-image:url("category-icons/tractor.png")!important}
.category-menu a:nth-child(6)::before{background-image:url("category-icons/tractor-trailer.png")!important}
.category-menu a:nth-child(7)::before{background-image:url("category-icons/harvester.png")!important}
.category-menu a:nth-child(8)::before{background-image:url("category-icons/excavator.png")!important}
.category-menu a:nth-child(9)::before{background-image:url("category-icons/certificate-illustrated.png")!important}




/* AAA AUTOSKOLA — vienots, atjaunots kājenes dizains v13.3 */
.site-footer{
  position:relative;
  
  background:var(--cms-dark,#123c2a)!important;
  color:#eef7f0!important;
  padding:clamp(44px,5vw,76px) 0 0!important;
  border-top:5px solid var(--cms-primary,#1b633e);
}
.site-footer::before{
  content:"";position:absolute;right:-110px;top:-145px;
  width:390px;height:390px;border:1px solid rgba(255,255,255,.09);
  border-radius:50%;pointer-events:none;
}
.site-footer::after{
  content:"";position:absolute;right:-42px;top:-70px;
  width:240px;height:240px;border:1px solid rgba(255,255,255,.07);
  border-radius:50%;pointer-events:none;
}
.site-footer .footer-grid{
  position:relative;z-index:1;
  display:grid!important;
  grid-template-columns:minmax(220px,1.35fr) minmax(160px,.85fr) minmax(220px,1fr)!important;
  gap:clamp(28px,5vw,90px)!important;
  padding-bottom:clamp(34px,4vw,58px)!important;
  align-items:start;
}
.site-footer .footer-grid>div{min-width:0}
.site-footer .footer-brand{
  display:inline-block!important;
  margin:0 0 17px!important;
  font-size:clamp(1.35rem,2.2vw,1.9rem)!important;
  line-height:1.2!important;
  letter-spacing:-.035em;
  font-weight:850!important;
  color:#fff!important;
  text-decoration:none!important;
}
.site-footer .footer-grid h3{
  margin:0 0 22px!important;
  color:#fff!important;
  font-size:.84rem!important;
  font-weight:800!important;
  letter-spacing:.13em!important;
  text-transform:uppercase;
}
.site-footer .footer-grid p{
  max-width:360px;
  color:rgba(239,248,241,.78)!important;
  font-size:1rem!important;
  line-height:1.8!important;
  margin:0 0 16px!important;
}
.site-footer .footer-grid>div:nth-child(n/**/+2)>a{
  display:table!important;
  width:fit-content;
  max-width:100%;
  margin:0 0 12px!important;
  color:rgba(247,252,248,.88)!important;
  font-size:.98rem!important;
  line-height:1.55!important;
  text-decoration:none!important;
  border-bottom:1px solid transparent;
  transition:color .18s ease,border-color .18s ease;
  overflow-wrap:anywhere;
}
.site-footer .footer-grid a:hover,
.site-footer .footer-grid a:focus-visible{
  color:#fff!important;
  border-bottom-color:rgba(255,255,255,.7);
}
.site-footer .footer-bottom{
  position:relative;z-index:1;
  border-top:1px solid rgba(255,255,255,.16)!important;
  padding:23px 0 26px!important;
  color:rgba(238,247,240,.72)!important;
  font-size:.88rem!important;
  line-height:1.6;
}
.site-footer .footer-bottom a{color:#fff!important}
@media(max-width:850px){
 .site-footer .footer-grid{gap:32px!important;}
 
}
@media(max-width:560px){
 .site-footer{padding-top:40px!important}
 .site-footer .footer-grid{gap:25px!important;}
 
 .site-footer .footer-grid h3{margin-bottom:13px!important}
 .site-footer .footer-bottom{padding:19px 0 23px!important}
}
@media(prefers-reduced-motion:reduce){.site-footer .footer-grid a{transition:none}}

/* v13.4: AAA footer — apstiprinātais vizuālais virziens */
.site-footer{background:radial-gradient(ellipse at 25% 55%,rgba(26,106,65,.3),transparent 48%),#103b29!important}
.site-footer .footer-grid{grid-template-columns:minmax(330px,1.55fr) minmax(165px,.72fr) minmax(220px,.9fr)!important;gap:clamp(26px,4vw,75px)!important}
.site-footer .footer-grid>div:first-child{position:relative;min-height:335px;padding-bottom:130px}
.site-footer .footer-grid>div:nth-child(2),.site-footer .footer-grid>div:nth-child(3){border-left:1px solid rgba(255,255,255,.17);padding-left:clamp(22px,3vw,55px)}
.site-footer .footer-grid>div:nth-child(2)>a{position:relative;padding-left:24px}
.site-footer .footer-grid>div:nth-child(2)>a:before{content:"›";position:absolute;left:0;color:#81d04e;font-size:1.5rem;line-height:1;top:0}
.site-footer .footer-grid>div:nth-child(3)>a{position:relative;padding-left:35px}
.site-footer .footer-grid>div:nth-child(3)>a[href^="tel:"]:before,.site-footer .footer-grid>div:nth-child(3)>a[href^="mailto:"]:before{position:absolute;left:0;top:-2px;width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:#216c43;color:#fff;font-size:14px}
.site-footer .footer-grid>div:nth-child(3)>a[href^="tel:"]:before{content:"☎"}
.site-footer .footer-grid>div:nth-child(3)>a[href^="mailto:"]:before{content:"✉"}
.aaa-footer-benefits{position:relative;z-index:2;margin-top:23px;display:grid;gap:11px;max-width:300px}
.aaa-footer-benefits>div{display:flex;align-items:center;gap:13px;color:#fff;font-size:.95rem;font-weight:650}
.aaa-benefit-icon{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:10px;background:#207044;color:#fff;font-size:21px}
.aaa-footer-road-art{position:absolute;bottom:-8px;right:-18px;width:min(100%,450px);height:auto;pointer-events:none;z-index:1}
@media(max-width:1050px){.site-footer .footer-grid{grid-template-columns:1.2fr 1fr 1fr!important;gap:22px!important}.site-footer .footer-grid>div:nth-child(2),.site-footer .footer-grid>div:nth-child(3){padding-left:22px}.aaa-footer-road-art{width:350px;right:-5px}}
@media(max-width:850px){.site-footer .footer-grid>div:first-child{min-height:280px;padding-bottom:110px;}.aaa-footer-road-art{right:0;width:390px}.site-footer .footer-grid>div:nth-child(2){border-left:0;padding-left:0}}
@media(max-width:560px){.site-footer .footer-grid>div:first-child{min-height:290px;padding-bottom:115px;}.site-footer .footer-grid>div:nth-child(2),.site-footer .footer-grid>div:nth-child(3){border-left:0;padding-left:0}.aaa-footer-road-art{width:min(100%,340px);right:0}}

/* v13.5 — precīzāks apstiprinātā footer dizaina izkārtojums */
.site-footer{background:radial-gradient(ellipse at 30% 55%,rgba(11,100,57,.36),transparent 54%),#073e2b!important}
.site-footer .footer-grid{grid-template-columns:minmax(0,1.48fr) minmax(0,.72fr) minmax(0,.9fr)!important;gap:clamp(24px,3.6vw,64px)!important}
.site-footer .footer-grid>div:first-child{min-height:500px!important;padding-bottom:270px!important}
.site-footer .footer-grid>div:nth-child(2),.site-footer .footer-grid>div:nth-child(3){padding-left:clamp(24px,3vw,55px)!important}
.site-footer .footer-grid h3{font-size:1rem!important;letter-spacing:.07em!important}
.aaa-footer-benefits{max-width:340px!important;gap:11px!important;margin-top:26px!important}
.aaa-footer-benefits>div{gap:16px!important;font-size:1rem!important;white-space:nowrap}
.aaa-benefit-icon,.aaa-contact-icon{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:11px;background:linear-gradient(135deg,#198345,#0e6b39);color:#fff}
.aaa-benefit-icon svg,.aaa-contact-icon svg{display:block}
.aaa-footer-road-art{width:min(100%,550px)!important;max-width:none!important;right:-12px!important;bottom:5px!important;mix-blend-mode:lighten;mask-image:radial-gradient(ellipse 65% 62% at 53% 52%,#000 60%,transparent 100%);-webkit-mask-image:radial-gradient(ellipse 65% 62% at 53% 52%,#000 60%,transparent 100%)}
.aaa-footer-addresses{display:grid;gap:13px;margin-top:14px}
.aaa-footer-addresses>div{display:flex;align-items:center;gap:15px;color:#f2fbf4;line-height:1.5;font-size:1rem}
.site-footer .footer-grid>div:nth-child(3)>a{min-height:44px;align-items:center;padding-left:59px!important;margin-bottom:13px!important;}
.site-footer .footer-grid>div:nth-child(3)>a[href^="tel:"]:before,.site-footer .footer-grid>div:nth-child(3)>a[href^="mailto:"]:before{width:44px!important;height:44px!important;border-radius:11px!important;background:linear-gradient(135deg,#198345,#0e6b39)!important;font-size:23px!important;top:0!important}
.site-footer .footer-grid>div:nth-child(3)>a[href^="tel:"]:before{content:"☎"!important}
.site-footer .footer-grid>div:nth-child(3)>a[href^="mailto:"]:before{content:"✉"!important}
@media(max-width:1050px){.site-footer .footer-grid>div:first-child{min-height:410px!important;padding-bottom:215px!important}.aaa-footer-road-art{width:430px!important}.aaa-footer-benefits>div{white-space:normal}}
@media(max-width:850px){.site-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.site-footer .footer-grid>div:first-child{grid-column:1/-1;min-height:400px!important;padding-bottom:210px!important}.aaa-footer-road-art{width:480px!important;right:0!important}.site-footer .footer-grid>div:nth-child(2){padding-left:0!important}}
@media(max-width:560px){.site-footer .footer-grid{grid-template-columns:1fr!important}.site-footer .footer-grid>div:first-child{grid-column:auto;min-height:360px!important;padding-bottom:175px!important}.aaa-footer-road-art{width:min(100%,360px)!important;right:0!important}.site-footer .footer-grid>div:nth-child(2),.site-footer .footer-grid>div:nth-child(3){padding-left:0!important}.aaa-footer-benefits>div{font-size:.92rem!important}}

/* v13.6 — noņemta attēlā iestrādātā teksta dublēšanās un pārklāšanās */
.site-footer .footer-grid>div:first-child{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  min-height:0!important;padding-bottom:0!important;
}
.site-footer .aaa-footer-benefits{
  width:100%!important;
  max-width:100%!important;margin-top:25px!important;
  display:grid!important;gap:12px!important;
}
.site-footer .aaa-footer-benefits>div{
  display:flex!important;align-items:center!important;gap:16px!important;
  white-space:normal!important;line-height:1.45!important;
}
.site-footer .aaa-footer-benefits>div>span:last-child{min-width:0!important}
.site-footer .aaa-footer-road-art{
  z-index:1!important;
  
  
  margin:18px 0 0!important;
  
  
  
}
.site-footer .footer-grid>div:nth-child(2),
.site-footer .footer-grid>div:nth-child(3){align-self:start!important}
@media(max-width:850px){
 .site-footer .aaa-footer-road-art{max-width:470px!important}
}
@media(max-width:560px){
 .site-footer .aaa-footer-road-art{margin-top:12px!important;}
 .site-footer .aaa-footer-benefits>div{font-size:.93rem!important}
}

/* v13.7 — VW attēls nedaudz augstāk un pa labi, neietekmējot izvēlni */
@media(min-width:851px){
 .site-footer .aaa-footer-road-art{
   transform:translate(42px,-28px)!important;
   margin-bottom:-28px!important;
 }
}
@media(min-width:561px) and (max-width:850px){
 .site-footer .aaa-footer-road-art{
   transform:translate(26px,-18px)!important;
   margin-bottom:-18px!important;
 }
}
@media(max-width:560px){
 .site-footer .aaa-footer-road-art{
   transform:translate(8px,-8px)!important;
   margin-bottom:-8px!important;
 }
}

/* v13.8 — kursu kalendāra CTA kājenes labajā tukšajā laukumā */
@media(min-width:851px){
 .site-footer .footer-grid{row-gap:12px!important;}
 .site-footer .footer-grid>div:first-child{grid-column:1!important;grid-row:1 / span 2!important}
 .site-footer .footer-grid>div:nth-child(2){grid-column:2!important;grid-row:1!important}
 .site-footer .footer-grid>div:nth-child(3){grid-column:3!important;grid-row:1!important}
 .site-footer .aaa-footer-course-cta{grid-column:2 / 4!important;grid-row:2!important;align-self:start;margin-top:22px}
}
.site-footer .aaa-footer-course-cta{
 box-sizing:border-box;min-width:0;display:grid;grid-template-columns:88px minmax(0,1fr);
 align-items:center;column-gap:24px;row-gap:8px;padding:26px 28px;
 background:linear-gradient(135deg,rgba(29,120,69,.56),rgba(13,76,48,.84));
 border:1.5px solid rgba(114,211,91,.65);border-radius:20px;
 box-shadow:0 15px 40px rgba(0,0,0,.10);color:#fff;
}
.site-footer .aaa-footer-cta-icon{display:grid;place-items:center;color:#fff;grid-row:1 / span 2;border-right:1px solid rgba(255,255,255,.2);padding-right:15px;align-self:stretch}
.site-footer .aaa-footer-cta-icon svg{max-width:100%;height:auto;align-self:center}
.site-footer .aaa-footer-cta-content{min-width:0}
.site-footer .aaa-footer-cta-kicker{display:block;color:#e5d84a;font-weight:800;letter-spacing:.09em;font-size:.78rem;margin-bottom:8px}
.site-footer .aaa-footer-cta-content h3{font-size:clamp(1.2rem,1.7vw,1.55rem)!important;line-height:1.25!important;letter-spacing:0!important;text-transform:none!important;margin:0 0 14px!important;color:#fff!important}
.site-footer .aaa-footer-cta-content ul{margin:0;padding:0;list-style:none;display:grid;gap:7px}
.site-footer .aaa-footer-cta-content li{position:relative;padding-left:26px;color:#f5fff6;font-size:.9rem;line-height:1.5}
.site-footer .aaa-footer-cta-content li::before{content:"✓";position:absolute;left:0;top:1px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#80d64d;color:#103b29;font-size:12px;font-weight:900}
.site-footer .aaa-footer-cta-button{grid-column:2;display:inline-flex;align-items:center;justify-content:center;gap:9px;justify-self:start;padding:12px 19px;border-radius:12px;background:#c82230;color:#fff!important;text-decoration:none!important;font-weight:800;font-size:.94rem;line-height:1.3;transition:background .2s ease,transform .2s ease}
.site-footer .aaa-footer-cta-button:hover,.site-footer .aaa-footer-cta-button:focus-visible{background:#e0303d;transform:translateY(-2px);border-bottom-color:transparent!important}
@media(min-width:851px) and (max-width:1170px){.site-footer .aaa-footer-course-cta{grid-template-columns:1fr;padding:22px}.site-footer .aaa-footer-cta-icon{display:none}.site-footer .aaa-footer-cta-button{grid-column:1}}
@media(max-width:850px){.site-footer .aaa-footer-course-cta{grid-column:1 / -1;margin-top:12px}}
@media(max-width:560px){.site-footer .aaa-footer-course-cta{grid-column:1;grid-template-columns:1fr;padding:22px 18px;gap:12px}.site-footer .aaa-footer-cta-icon{display:none}.site-footer .aaa-footer-cta-button{grid-column:1;justify-self:stretch;text-align:center}}
@media(prefers-reduced-motion:reduce){.site-footer .aaa-footer-cta-button{transition:none}}

/* v16.5 — mazākas ikonas visām kategorijām; precīzāka TR tehnikas izvēle */
.category-menu a{gap:12px!important;min-height:49px!important;padding:5px 10px!important}
.category-menu a::before{width:72px!important;min-width:72px!important;flex-basis:72px!important;height:35px!important;background-size:70px 33px!important}




@media(max-width:1050px){.category-menu a::before{width:66px!important;min-width:66px!important;flex-basis:66px!important;height:32px!important;background-size:64px 30px!important}}

/* v16.7 — TR1–TR4 tehnikas silueti atbilstoši traktortehnikas apliecības kategoriju paraugam */
.category-menu a:nth-child(5)::before{background-image:url("category-icons/tr1-pair.png")!important}
.category-menu a:nth-child(6)::before{background-image:url("category-icons/tr2-pair.png")!important}
.category-menu a:nth-child(7)::before{background-image:url("category-icons/tr3-pair.png")!important}
.category-menu a:nth-child(8)::before{background-image:url("category-icons/tr4-pair.png")!important}

/* v16.9 — zīmētas traktortehnikas ikonas no apstiprinātās ilustrācijas */

/* v17.0: Auto un Moto ilustrācijas, saglabājot proporcijas */
.category-menu a::before{width:88px!important;min-width:88px!important;flex-basis:88px!important;height:40px!important;}
.category-menu a{min-height:52px!important}
.aaa-price-category-mark img,.aaa-related-feature-icons img,.aaa-category-pill-icon img,.aaa-category-photo-label img,.aaa-category-photo-icons img{object-fit:contain!important;object-position:center!important}
@media(max-width:1050px){.category-menu a::before{width:80px!important;min-width:80px!important;flex-basis:80px!important;height:38px!important}}


/* v17.1 — transporta ikonas ir salasāmas: noņemts liekais tukšums,
   saglabātas proporcijas un nodrošināta vienāda vieta visām kategorijām. */
.category-menu a{gap:14px!important;min-height:62px!important;padding:6px 12px!important}
.category-menu a::before{width:112px!important;min-width:112px!important;flex-basis:112px!important;height:48px!important;}
@media(min-width:1051px){.category-menu{width:390px!important;max-height:min(85vh,720px)!important}}
@media(max-width:1050px){.category-menu a::before{width:100px!important;min-width:100px!important;flex-basis:100px!important;height:45px!important}}

/* v17.2 — transporta ilustrāciju redzamība visā vietnē */
.category-menu a::before{background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important;}
.aaa-category-pill .aaa-category-pill-icon{width:49px!important;flex-basis:49px!important;height:32px!important;}
.aaa-category-photo-label span{width:69px!important;flex-basis:69px!important;height:35px!important;}
.aaa-category-photo-icons a{width:92px!important;height:65px!important;padding:6px!important;}
.aaa-price-category-mark{width:86px!important;height:60px!important;padding:7px!important;}
.aaa-price-category-mark img{width:100%!important;height:100%!important;object-fit:contain!important;}
.aaa-related-feature-icons a{padding:4px!important;}
.aaa-related-feature-icons a img{width:100%!important;height:100%!important;max-height:54px!important;object-fit:contain!important;}
.aaa-category-pill-icon img,.aaa-category-photo-label img,.aaa-category-photo-icons img{width:100%!important;height:100%!important;object-fit:contain!important;}
@media(max-width:560px){.aaa-category-photo-icons a{width:69px!important;height:52px!important}.aaa-category-photo-label span{width:54px!important;flex-basis:54px!important}}

/* v17.3 — izteiksmīgākas pirmo četru kategoriju ikonas */
@media(min-width:1051px){
 .category-menu{width:450px!important;max-width:min(450px,calc(100vw - 24px))!important}
 .category-menu a:nth-child(-n/**/+4){min-height:69px!important}
 .category-menu a:nth-child(-n/**/+4)::before{width:166px!important;min-width:166px!important;flex:0 0 166px!important;height:50px!important;background-size:160px auto!important}
}
@media(max-width:1050px){
 .category-menu a:nth-child(-n/**/+4)::before{width:122px!important;min-width:122px!important;flex:0 0 122px!important;height:46px!important;background-size:120px auto!important}
}
/* Cenu lapā TR1–TR4 rāda tādus pašus pāru siluetus kā izvēlnē. */
body:has(.aaa-price-guide) #traktori .aaa-price-category-mark{width:124px!important;height:70px!important;padding:5px!important}
body:has(.aaa-price-guide) #traktori .aaa-price-category-mark img{width:100%!important;height:100%!important;object-fit:contain!important}

/* v17.4 — lielāka, skaidrāk redzama B/BE/B1 attēla stūra ilustrācija.
   Mērķējam tikai uz B kategorijas lapu; attēla proporcijas saglabātas. */
body:has(.aaa-category-photo-label img[src*="car-illustrated"]) .aaa-category-photo-label{gap:12px!important;padding:10px 17px!important;min-height:65px!important}
body:has(.aaa-category-photo-label img[src*="car-illustrated"]) .aaa-category-photo-label span{width:116px!important;flex:0 0 116px!important;height:47px!important;overflow:visible!important}
body:has(.aaa-category-photo-label img[src*="car-illustrated"]) .aaa-category-photo-label span img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
@media(max-width:560px){body:has(.aaa-category-photo-label img[src*="car-illustrated"]) .aaa-category-photo-label{padding:8px 12px!important;gap:8px!important;min-height:51px!important}body:has(.aaa-category-photo-label img[src*="car-illustrated"]) .aaa-category-photo-label span{width:85px!important;flex-basis:85px!important;height:35px!important}}

/* v17.6 — gaišs aktīvās izvēlnes fons un vienādi lielas kategoriju hero ikonas */
.category-menu a:hover,.category-menu a:focus-visible,
.category-menu a[aria-current="page"],.category-menu a.active,
.category-menu a.is-active{
 background:#e2f0e4!important;color:#155a37!important;
 box-shadow:inset 0 0 0 1px #b5d8bf!important;
}
.category-menu a:hover::before,.category-menu a:focus-visible::before,
.category-menu a[aria-current="page"]::before,.category-menu a.active::before,
.category-menu a.is-active::before{opacity:1!important;filter:none!important}
.aaa-category-photo-label{gap:12px!important;padding:10px 17px!important;min-height:65px!important}
.aaa-category-photo-label span{width:116px!important;min-width:116px!important;flex:0 0 116px!important;height:47px!important;overflow:visible!important}
.aaa-category-photo-label span img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
@media(max-width:560px){.aaa-category-photo-label{padding:8px 12px!important;gap:8px!important;min-height:51px!important}.aaa-category-photo-label span{width:85px!important;min-width:85px!important;flex-basis:85px!important;height:35px!important}}

/* v17.7 — selected category remains exactly the same light-green as hover. */
.site-nav .category-menu a:is(:hover,:focus-visible,.is-active,.active,[aria-current="page"]),
.site-nav .category-menu>a.is-active, .site-nav .category-menu>a[aria-current="page"]{background:#e2f0e4!important;color:#155a37!important;box-shadow:inset 0 0 0 1px #b5d8bf!important}


/* v17.8 — auto/moto/kravas/autobusu pāru ilustrācijas izvēlnē ir lielākas. */
@media(min-width:1051px){
 .site-nav .category-menu{width:535px!important;max-width:min(535px,calc(100vw - 20px))!important}
 .site-nav .category-menu a:nth-child(-n/**/+4){min-height:78px!important;gap:15px!important;padding:8px 14px!important}
 .site-nav .category-menu a:nth-child(-n/**/+4)::before{width:225px!important;min-width:225px!important;flex:0 0 225px!important;height:57px!important;background-size:225px auto!important;background-position:center!important}
}
@media(min-width:701px) and (max-width:1050px){
 .site-nav .category-menu{width:475px!important;max-width:calc(100vw - 20px)!important}
 .site-nav .category-menu a:nth-child(-n/**/+4){min-height:70px!important;gap:12px!important}
 .site-nav .category-menu a:nth-child(-n/**/+4)::before{width:190px!important;min-width:190px!important;flex:0 0 190px!important;height:51px!important;background-size:190px auto!important}
}
@media(max-width:700px){
 .site-nav .category-menu a:nth-child(-n/**/+4){min-height:60px!important;gap:9px!important}
 .site-nav .category-menu a:nth-child(-n/**/+4)::before{width:clamp(105px,34vw,155px)!important;min-width:clamp(105px,34vw,155px)!important;flex:0 0 clamp(105px,34vw,155px)!important;height:43px!important;background-size:contain!important}
}

/* v18.0 — vienots kategoriju izvēlnes divu transporta ikonu režģis */
.site-nav .category-menu{
  width: 475px !important;
  max-width: min(475px, calc(100vw - 24px)) !important;
  max-height: min(76vh, 650px) !important;
  overflow-y: auto !important;
  padding: 10px 12px !important;
  gap: 0 !important;
  grid-template-columns: 1fr !important;
}
.site-nav .category-menu a,
.site-nav .category-menu a:nth-child(-n/**/+4){
  display: grid !important;
  grid-template-columns: 156px minmax(0,1fr) !important;
  align-items: center !important;
  justify-content: start !important;
  column-gap: 20px !important;
  min-height: 64px !important;
  padding: 6px 12px !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  border-radius: 9px !important;
  box-sizing: border-box !important;
}
.site-nav .category-menu a::before,
.site-nav .category-menu a:nth-child(-n/**/+4)::before{
  display: block !important;
  grid-column: 1 !important;
  width: 156px !important;
  min-width: 156px !important;
  max-width: 156px !important;
  height: 43px !important;
  flex: none !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
  margin: 0 !important;
}
.site-nav .category-menu a:nth-child(9)::before{
  background-image: url("category-icons/truck-ce-light-trailer.png") !important;
  background-position: center center !important;
  background-size: 95px 43px !important;
}
.site-nav .category-menu a:hover,
.site-nav .category-menu a:is(.is-active,.active,[aria-current="page"]){
  background: #e2f0e4 !important;
  color: #155a37 !important;
}
@media(max-width:700px){
  .site-nav .category-menu{max-width:calc(100vw - 18px)!important;padding:7px!important}
  .site-nav .category-menu a,
  .site-nav .category-menu a:nth-child(-n/**/+4){
    grid-template-columns: minmax(100px,38%) minmax(0,1fr) !important;
    gap: 10px !important;
    min-height: 55px !important;
    padding: 5px 8px !important;
  }
  .site-nav .category-menu a::before,
  .site-nav .category-menu a:nth-child(-n/**/+4)::before{
    width:100% !important;min-width:0 !important;max-width:100% !important;height:38px !important;
  }
}


/* v18.1 — kompakta apakšizvēlne bez iekšējas ritjoslas parastā ekrānā */
@media (min-width:701px) {
 .site-nav .category-menu {
   width: 425px !important;
   max-width: min(425px, calc(100vw - 24px)) !important;
   max-height: calc(100dvh - 115px) !important;
   padding: 5px 9px !important;
   overflow-y: auto !important;
   scrollbar-width: thin;
 }
 .site-nav .category-menu a,
 .site-nav .category-menu a:nth-child(-n/**/+4) {
   grid-template-columns: 136px minmax(0,1fr) !important;
   min-height: 48px !important;
   height: 48px !important;
   padding: 3px 9px !important;
   column-gap: 14px !important;
   font-size: 13px !important;
 }
 .site-nav .category-menu a::before,
 .site-nav .category-menu a:nth-child(-n/**/+4)::before {
   width: 136px !important;
   min-width: 136px !important;
   max-width: 136px !important;
   height: 35px !important;
   background-size: contain !important;
 }
}
@media (max-width:700px) {
 .site-nav .category-menu {
   max-height: calc(100dvh - 85px) !important;
   padding: 5px 7px !important;
 }
 .site-nav .category-menu a,
 .site-nav .category-menu a:nth-child(-n/**/+4) {
   min-height: 45px !important;
   height: 45px !important;
   padding: 2px 7px !important;
   font-size: 12px !important;
 }
 .site-nav .category-menu a::before,
 .site-nav .category-menu a:nth-child(-n/**/+4)::before {height:33px !important}
}

/* v18.4 — šaurāka kategoriju izvēlne un gaišs izvēlētās kategorijas fons */
@media (min-width:701px) {
  .site-nav .category-menu {
    width: 375px !important;
    max-width: min(375px, calc(100vw - 20px)) !important;
    padding: 5px 8px !important;
  }
  .site-nav .category-menu a,
  .site-nav .category-menu a:nth-child(-n/**/+4) {
    grid-template-columns: 154px minmax(0,1fr) !important;
    column-gap: 10px !important;
    padding-inline: 7px !important;
  }
  .site-nav .category-menu a::before,
  .site-nav .category-menu a:nth-child(-n/**/+4)::before {
    width: 154px !important;
    min-width: 154px !important;
    max-width: 154px !important;
  }
}
.site-nav .category-menu a:is(:hover,:focus-visible) {
  background: #eaf4eb !important;
  color: #155a37 !important;
}
.site-nav .category-menu a:is(.is-active,.active,[aria-current="page"]),
.site-nav .category-menu>a.is-active,
.site-nav .category-menu>a[aria-current="page"] {
  background: #dcecdf !important;
  
  box-shadow: inset 0 0 0 1px #c2dec9 !important;
}
.site-nav .category-menu a:is(:hover,:focus-visible,.is-active,.active,[aria-current="page"])::before {
  opacity: 1 !important;
  filter: none !important;
}

/* v18.8: izvēlētā kategorija gaiša un ikonas salasāmas */
.site-nav .category-menu a:is(.is-active,.active,[aria-current="page"]),
.site-nav .category-menu>a.is-active,
.site-nav .category-menu>a[aria-current="page"] {
 background:#e3f0e5!important;color:#155a37!important;
 box-shadow:inset 0 0 0 1px #b9d9c0!important;
}
.site-nav .category-menu a:is(.is-active,.active,[aria-current="page"])::before{opacity:1!important;filter:none!important}

/* v22.3 — kompaktāka galvenā navigācija tikai datora skatā */
@media (min-width:1051px){
  .site-header .site-nav{gap:clamp(5px,.55vw,10px)!important;font-size:12.5px!important;}
  .site-header .site-nav>a:not(.nav-contact),
  .site-header .site-nav .category-toggle{padding:10px clamp(9px,.8vw,13px)!important;border-radius:9px!important;line-height:1.35!important;}
  .site-header .site-nav .nav-contact{padding:10px 13px!important;}
  .site-header .site-nav>a.nav-search{min-width:38px!important;min-height:38px!important;padding:8px!important;}
}

/* v22.43 — vienots, bez redzamām attēla robežām, kājenes noformējums */
.site-footer{overflow:hidden;background:radial-gradient(ellipse at 18% 70%,rgba(25,110,62,.36),transparent 55%),#103b29!important;}
.site-footer .footer-grid>div:first-child{min-width:0!important;}
.site-footer .aaa-footer-road-art{width:min(100%,535px)!important;max-width:535px!important;margin:8px 0 0!important;filter:drop-shadow(0 12px 18px rgba(0,0,0,.12));}
.site-footer .aaa-footer-benefits{margin-bottom:0!important;}
@media(max-width:850px){.site-footer .aaa-footer-road-art{max-width:480px!important;}}
@media(max-width:560px){}

/* v22.44: visibly repaired footer illustration: no baked-in clipped text; feathered edges */
.site-footer .aaa-footer-road-art{width:min(100%,520px)!important;max-width:520px!important;margin:10px 0 -8px 0!important;}

@media(max-width:850px){.site-footer .aaa-footer-road-art{width:min(100%,460px)!important;max-width:460px!important;margin:14px 0 0!important;}}
@media(max-width:560px){.site-footer .aaa-footer-road-art{max-width:390px!important;}}

/* v22.45 — jauna vektoru ainava bez rastra attēla griezuma malām */
.site-footer .aaa-footer-road-art{right:auto!important;bottom:auto!important;filter:none!important;width:100%!important;max-width:690px!important;margin:22px 0 0!important;opacity:1!important;}
.site-footer .footer-grid>div:first-child{overflow:visible!important;}
@media(max-width:850px){.site-footer .aaa-footer-road-art{max-width:630px!important;margin-top:18px!important;}}
@media(max-width:560px){.site-footer .aaa-footer-road-art{margin-top:18px!important;}}

/* v22.46: apstiprinātā ilustrācija (nevis vienkāršotā SVG interpretācija). */
.site-footer .aaa-footer-road-art{position:relative!important;display:block!important;inset:auto!important;transform:none!important;margin:20px 0 0 -14px!important;margin-bottom:0!important;width:calc(100% + 28px)!important;max-width:720px!important;height:auto!important;object-fit:contain!important;mix-blend-mode:normal!important;mask-image:none!important;-webkit-mask-image:none!important;pointer-events:none!important}
.site-footer .aaa-footer-benefits{position:relative!important;z-index:2!important}
@media(max-width:850px){.site-footer .aaa-footer-road-art{width:100%!important;max-width:720px!important;margin:18px auto 0!important}}
@media(max-width:560px){.site-footer .aaa-footer-road-art{width:100%!important;max-width:100%!important;margin:14px auto 0!important}}

/* v22.47 — vienots kājenes izvēlnes un kontaktu kolonnu ritms */
@media (min-width:851px){
 .site-footer .footer-grid>div:nth-child(2),
 .site-footer .footer-grid>div:nth-child(3){
   align-self:stretch!important;
   position:relative!important;
   border-left:0!important;
   padding-left:clamp(24px,3vw,46px)!important;
   padding-top:0!important;
 }
 .site-footer .footer-grid>div:nth-child(2)::after,
 .site-footer .footer-grid>div:nth-child(3)::after{
   content:"";position:absolute;left:0;top:0;bottom:0;width:1px;
   background:rgba(255,255,255,.19);pointer-events:none;
 }
 
 
}
.site-footer .footer-grid>div:nth-child(2)>h3,
.site-footer .footer-grid>div:nth-child(3)>h3{
 margin:0 0 20px!important;min-height:27px!important;
 display:flex!important;align-items:center!important;
 font-size:1.08rem!important;line-height:1.3!important;
 letter-spacing:.055em!important;
}
.site-footer .footer-grid>div:nth-child(2)>a{
 display:flex!important;align-items:center!important;
 position:relative!important;min-height:44px!important;
 padding:6px 0 6px 27px!important;margin:0!important;
 font-size:1rem!important;line-height:1.4!important;
}
.site-footer .footer-grid>div:nth-child(2)>a::before{
 top:50%!important;transform:translateY(-50%)!important;line-height:1!important;
}
.site-footer .footer-grid>div:nth-child(3)>a{
 display:flex!important;align-items:center!important;
 min-height:52px!important;padding-left:66px!important;
 margin:0 0 12px!important;line-height:1.4!important;
}
.site-footer .footer-grid>div:nth-child(3)>a[href^="tel:"]::before,
.site-footer .footer-grid>div:nth-child(3)>a[href^="mailto:"]::before{
 width:52px!important;height:52px!important;top:0!important;
 display:grid!important;place-items:center!important;
}
.site-footer .aaa-footer-addresses{display:grid!important;gap:12px!important;margin-top:0!important;}
.site-footer .aaa-footer-addresses>div{
 display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;
 align-items:center!important;gap:14px!important;min-height:52px!important;
 font-size:1rem!important;line-height:1.4!important;
}
.site-footer .aaa-footer-addresses .aaa-contact-icon{
 width:52px!important;height:52px!important;min-width:52px!important;
 display:grid!important;place-items:center!important;margin:0!important;
 border-radius:11px!important;
}
@media(max-width:850px){
 .site-footer .footer-grid>div:nth-child(2),
 .site-footer .footer-grid>div:nth-child(3){align-self:start!important;}
}

/* v22.50 — kontaktu un izvēlnes pēdējās rindas vienā līmenī. */
@media (min-width:851px){
  .site-footer .footer-grid>div:nth-child(3)>a{
    min-height:46px!important;
    height:46px!important;
    margin:0 0 12px!important;
    padding-left:60px!important;
  }
  .site-footer .footer-grid>div:nth-child(3)>a[href^="tel:"]::before,
  .site-footer .footer-grid>div:nth-child(3)>a[href^="mailto:"]::before{
    width:46px!important;height:46px!important;
  }
  .site-footer .aaa-footer-addresses{gap:12px!important;}
  .site-footer .aaa-footer-addresses>div{
    min-height:46px!important;height:46px!important;
    grid-template-columns:46px minmax(0,1fr)!important;
  }
  .site-footer .aaa-footer-addresses .aaa-contact-icon{
    width:46px!important;height:46px!important;min-width:46px!important;
  }
}

/* v22.54: kājenes autortiesību teksta centrējums visās lapās */
.site-footer .footer-bottom { text-align: center !important; }

/* v24.2 — kompaktāka kategoriju nolaižamā izvēlne, bez liekas vietas labajā pusē. */
@media (min-width:1051px){
  .site-nav .category-menu,
  .category-menu{
    width:300px!important;
    max-width:calc(100vw - 24px)!important;
    padding:7px 8px!important;
    gap:0!important;
  }
  .category-menu a{
    gap:9px!important;
    min-height:53px!important;
    padding:5px 7px!important;
    font-size:13px!important;
  }
  .category-menu a::before{
    width:100px!important;
    min-width:100px!important;
    flex-basis:100px!important;
    height:42px!important;
    background-size:contain!important;
  }
}

/* v27.11 — vienots autortiesību un privātuma saites izskats */
.site-footer .aaa-footer-legal-row{display:flex!important;align-items:center;justify-content:center;flex-wrap:wrap;column-gap:12px;row-gap:4px;text-align:center!important}
.site-footer .aaa-footer-legal-row>span,.site-footer .aaa-footer-privacy-link{font:inherit!important;font-weight:400!important;letter-spacing:inherit!important;color:#c8d3cc!important;line-height:1.5!important}
.site-footer .aaa-footer-privacy-link{display:inline-block;text-decoration:none!important;white-space:nowrap;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
.site-footer .aaa-footer-privacy-link:hover{color:#dce5de!important;text-decoration:underline!important;text-decoration-color:rgba(220,229,222,.6)!important;text-underline-offset:3px}
.site-footer .aaa-footer-privacy-link:focus-visible{outline:2px solid #c8d3cc;outline-offset:3px;border-radius:2px}

/* v27.12: neuzkrītoša juridiskā saite, vienāds teksts un ritmiska atstarpe */
.site-footer .footer-bottom.aaa-footer-legal-row {display:flex!important;justify-content:center!important;align-items:baseline!important;flex-wrap:wrap!important;text-align:center!important;}
.site-footer .footer-bottom.aaa-footer-legal-row > span,
.site-footer .footer-bottom.aaa-footer-legal-row > a.aaa-footer-privacy-link {font-family:inherit!important;font-size:inherit!important;font-weight:400!important;line-height:inherit!important;letter-spacing:normal!important;color:rgba(238,247,240,.72)!important;text-decoration:none!important;text-shadow:none!important;border:0!important;background:none!important;padding:0!important;margin:0!important;}
.site-footer .footer-bottom.aaa-footer-legal-row > a.aaa-footer-privacy-link:hover {color:rgba(238,247,240,.9)!important;text-decoration:underline!important;text-underline-offset:3px!important;}
.site-footer .footer-bottom.aaa-footer-legal-row > a.aaa-footer-privacy-link:focus-visible {outline:2px solid rgba(238,247,240,.8)!important;outline-offset:3px!important;}

/* v27.25.3: identisks atstatums abpus atdalitajam punktam kajenes juridiskaja rinda */
.site-footer .footer-bottom.aaa-footer-legal-row > .aaa-footer-legal-separator {display:inline-block!important;flex:0 0 auto!important;line-height:inherit!important;color:rgba(238,247,240,.72)!important;user-select:none!important;}

/* v27.49 — vienotas kājenes atstarpes visās publiskajās lapās. */
.site-footer{padding-top:clamp(38px,4.5vw,64px)!important}
.site-footer .footer-grid{column-gap:clamp(22px,3vw,48px)!important;row-gap:24px!important;align-items:start!important}
.site-footer .footer-bottom.aaa-footer-legal-row{
  margin-top:clamp(30px,3.5vw,48px)!important;
  padding:22px 0 26px!important;
  min-height:0!important;
  gap:4px 12px!important;
  align-items:center!important;
}
@media(min-width:851px){
  .site-footer .footer-grid{grid-template-rows:auto auto!important;row-gap:24px!important}
  .site-footer .footer-grid>div:nth-child(2),
  .site-footer .footer-grid>div:nth-child(3){padding-left:clamp(20px,2.5vw,40px)!important}
  .site-footer .aaa-footer-course-cta{margin-top:0!important}
}
@media(max-width:850px){
  .site-footer .footer-grid{row-gap:28px!important}
  .site-footer .aaa-footer-course-cta{margin-top:0!important}
  .site-footer .footer-bottom.aaa-footer-legal-row{margin-top:32px!important}
}
@media(max-width:560px){
  .site-footer{padding-top:36px!important}
  .site-footer .footer-grid{row-gap:26px!important}
  .site-footer .footer-bottom.aaa-footer-legal-row{margin-top:26px!important;padding:20px 0 24px!important}
}

/* AAA CMS: footer calendar CTA uses the existing forest-green theme. */
.site-footer .aaa-footer-cta-button,
.site-footer .aaa-footer-cta-button:visited {
  background:#286a47;
  color:#fff!important;
  border:1px solid #75b88a;
}
.site-footer .aaa-footer-cta-button:hover,
.site-footer .aaa-footer-cta-button:focus-visible {
  background:#348557;
  color:#fff!important;
  border-color:#b4ddb9;
}
.site-footer .aaa-footer-cta-button:focus-visible {
  outline:3px solid #d1e9ce;
  outline-offset:3px;
}

/* V21.5: reserve intrinsic footer illustration ratio before lazy-load completes. */
.site-footer img.aaa-footer-road-art{aspect-ratio:772 / 332!important;height:auto!important;contain-intrinsic-size:772px 332px;}

/* V22.04: mobile legal and card links have explicit touch height. */
@media(max-width:600px){.program-card .text-link{min-height:44px}.site-footer .footer-bottom.aaa-footer-legal-row > a.aaa-footer-privacy-link{display:inline-flex!important;align-items:center;min-height:44px}}

/* V22.97 — mobile hero-to-content transition and viewport sizing. */
@media(max-width:850px){
 body #main > :is(.page-hero,.sub-hero) + .section {background:#eaf2e8!important;margin-top:0!important;padding-top:18px!important;border-top:0!important;}
 body #main > :is(.page-hero,.sub-hero) + .section > .container {margin-top:0!important;}
 body.aaa-contact-page #main > .page-hero + .section {background:#eaf2e8!important;padding-top:18px!important;}
}

@media(max-width:850px){
 html{--aaa-hero-space:calc(100svh - var(--aaa-header-offset,112px));}
 body #main > :is(.page-hero,.sub-hero),
 body #main .rental-hero.aaa-unified-band{
   box-sizing:border-box!important;min-height:var(--aaa-hero-space)!important;
   height:auto!important;display:flex!important;align-items:center!important;
   padding-block:clamp(12px,3svh,32px)!important;
 }
 body #main .aaa-unified-public .aaa-unified-layout{
   box-sizing:border-box!important;min-height:var(--aaa-hero-space)!important;
   padding-block:clamp(12px,3svh,32px)!important;margin-block:0!important;
   align-content:center!important;gap:clamp(10px,2svh,24px)!important;
 }
 body #main .aaa-unified-layout,body #main .about-hero-layout{
   width:100%;min-height:0!important;align-content:center!important;
   gap:clamp(10px,2svh,24px)!important;
 }
 body #main .aaa-unified-public .aaa-unified-layout{min-height:var(--aaa-hero-space)!important;}
 body #main .aaa-unified-layout .aaa-unified-copy h1,
 body #main .about-hero-copy h1{font-size:clamp(1.8rem,min(10vw,7svh),3.8rem)!important;margin-block:clamp(8px,2svh,20px)!important;}
 body #main .aaa-unified-layout .aaa-unified-copy p,body #main .about-hero-copy p{font-size:clamp(.95rem,min(4vw,2.7svh),1.2rem)!important;line-height:1.45!important;}
 body #main .aaa-unified-layout .aaa-unified-art,body #main .about-route-art{width:min(100%,440px,49svh)!important;max-width:440px!important;margin-inline:auto!important;}
 body #main .aaa-unified-art>svg,body #main .about-route-art>svg{max-height:34svh!important;width:100%!important;height:auto!important;}
 body #main .aaa-category-hero .sub-hero-inner{width:100%;gap:clamp(8px,1.6svh,18px)!important;}
 body #main .aaa-category-hero .aaa-category-copy h1{font-size:clamp(1.5rem,min(6.8vw,5svh),3rem)!important;}
 body #main .aaa-category-hero .sub-hero-photo img{max-height:min(32svh,280px)!important;}
 body.aaa-contact-page #main>.page-hero>.container{padding-block:0!important;min-height:0!important;}
 body.aaa-contact-page #main>.page-hero h1{font-size:clamp(1.8rem,min(9vw,6svh),3.5rem)!important;margin-block:10px!important;}
 body.aaa-contact-page #main .aaa-contact-road-illustration img{max-height:27svh!important;}
}


/* AAA — kompaktā kategoriju izvēlne: tikai datora navigācijai. */
@media (min-width:1051px){
  body .site-nav .category-menu{
    width:300px!important;
    max-width:calc(100vw - 24px)!important;
    padding:5px 7px!important;
    border-radius:14px!important;
    gap:0!important;
    grid-auto-rows:auto!important;
    max-height:calc(100dvh - 135px)!important;
    overflow-y:auto!important;
  }
  body .site-nav .category-menu a,
  body .site-nav .category-menu a:nth-child(-n/**/+4){
    grid-template-columns:132px minmax(0,1fr)!important;
    column-gap:10px!important;
    min-height:42px!important;
    height:auto!important;
    padding:3px 7px!important;
    font-size:13px!important;
    line-height:1.3!important;
  }
  body .site-nav .category-menu a::before,
  body .site-nav .category-menu a:nth-child(-n/**/+4)::before{
    width:132px!important;min-width:132px!important;max-width:132px!important;
    height:35px!important;flex:none!important;
    background-size:contain!important;
  }
  body .site-nav .category-menu a:nth-child(9)::before{
    background-size:85px auto!important;
  }
}
