/* AAA AUTOSKOLA v15.9 — Cenu lapas izkārtojums */
body:has(.aaa-price-guide) .page-hero {padding-block:clamp(52px,6vw,86px);background:radial-gradient(circle at 86% 40%,#d9eadb 0,transparent 32%),linear-gradient(125deg,#f0f8f1,#e7f1e9)}
body:has(.aaa-price-guide) .page-hero h1 {font-size:clamp(3.2rem,6.6vw,6.3rem)}
.aaa-price-guide{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.94fr);align-items:center;gap:30px;min-height:330px;padding:28px clamp(25px,4vw,56px);margin-bottom:35px;border:1px solid #cbe3d2;border-radius:30px;background:linear-gradient(125deg,#f5fbf5 0%,#e7f3e9 100%);overflow:hidden;position:relative}
.aaa-price-guide:before{content:"";position:absolute;width:280px;height:280px;border:42px solid #d3e9d8;border-radius:50%;right:-140px;top:-160px;opacity:.7}
.aaa-price-guide-text{position:relative;z-index:1}
.aaa-guide-kicker{display:block;color:#1b6844;font-size:11px;font-weight:800;letter-spacing:.19em;margin-bottom:17px}
.aaa-price-guide h2{font-size:clamp(30px,3.1vw,48px);line-height:1.13;max-width:560px;margin-bottom:16px}
.aaa-price-guide h2 em{color:#1d7548}
.aaa-price-guide p{font-size:15px;color:#567263;max-width:480px;margin-bottom:23px}
.aaa-guide-button{display:inline-flex;align-items:center;gap:20px;background:#17633e;color:#fff!important;border-radius:12px;padding:13px 20px;font-weight:800;font-size:14px;box-shadow:0 12px 22px #165c3a1b;transition:transform .2s,background .2s}
.aaa-guide-button:hover{transform:translateY(-3px);background:#0e4b2c}
.aaa-price-guide-visual{position:relative;z-index:1}
.aaa-price-guide-visual img{display:block;width:100%;max-height:300px;object-fit:contain;filter:drop-shadow(0 16px 25px #194f331c)}
body:has(.aaa-price-guide) main > .section{padding-top:clamp(40px,5vw,75px)}
body:has(.aaa-price-guide) .anchor-links{padding:6px 0 20px;margin-bottom:38px;border-bottom:1px solid #d9e8dd}
body:has(.aaa-price-guide) .anchor-links a{border:1px solid #c6ddce;background:#f5faf6;color:#175b39;transition:background .2s,transform .2s}
body:has(.aaa-price-guide) .anchor-links a:hover{background:#e2f2e7;transform:translateY(-2px)}
body:has(.aaa-price-guide) .price-section{margin-bottom:76px;scroll-margin-top:130px}
body:has(.aaa-price-guide) .price-section h2{display:flex;align-items:center;gap:15px;font-size:clamp(26px,3vw,39px);margin-bottom:28px}
body:has(.aaa-price-guide) .price-section h2:before{content:"";display:block;width:7px;height:37px;border-radius:20px;background:linear-gradient(#7ecf69,#19613d);flex-shrink:0}
body:has(.aaa-price-guide) .price-section .price-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
body:has(.aaa-price-guide) .price-item{display:flex;flex-direction:column;border-radius:23px;border:1px solid #dbe7df;box-shadow:0 10px 35px #123c2410;transition:transform .25s,box-shadow .25s,border-color .25s}
body:has(.aaa-price-guide) .price-item:hover{transform:translateY(-5px);box-shadow:0 22px 45px #123c2421;border-color:#a9d3b8}
body:has(.aaa-price-guide) .price-item>img{aspect-ratio:2.1;object-fit:cover;transition:filter .2s}
body:has(.aaa-price-guide) .price-copy{display:grid;grid-template-columns:1fr auto;gap:9px 16px;align-items:center;padding:25px 28px 27px;flex:1}
body:has(.aaa-price-guide) .aaa-price-category-mark{grid-column:1/-1;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:14px;background:#e9f5eb;font-size:25px;margin-bottom:3px}
body:has(.aaa-price-guide) .price-copy h3{grid-column:1/-1;margin:0;font-size:clamp(20px,2.1vw,26px)}
body:has(.aaa-price-guide) .price-copy p{grid-column:1/-1;margin:0 0 8px;min-height:23px}
body:has(.aaa-price-guide) .price-blank{grid-column:1;margin:0;display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#2c714c;font-weight:800}
body:has(.aaa-price-guide) .price-blank:before{content:"€";display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:50%;background:#e4f2e7;color:#155a36;font-size:14px}
body:has(.aaa-price-guide) .price-copy>a{grid-column:2;justify-self:end;display:inline-flex;padding:10px 12px;border-radius:9px;background:#e9f4eb;color:#155a36;white-space:nowrap;transition:background .2s}
body:has(.aaa-price-guide) .price-copy>a:hover{background:#d2e9d8}
body:has(.aaa-price-guide) .notice{border:1px solid #c9e1d0;background:linear-gradient(110deg,#eaf5eb,#f8fbf8);padding:32px 36px}
body:has(.aaa-price-guide) .notice strong{font-size:22px;color:#175c3b}
@media(max-width:850px){.aaa-price-guide{grid-template-columns:1fr;gap:5px}.aaa-price-guide-visual img{max-height:230px}.aaa-price-guide-visual{max-width:470px;margin:auto}}
@media(max-width:720px){body:has(.aaa-price-guide) .price-section .price-grid{grid-template-columns:1fr}.aaa-price-guide{padding:25px 23px;border-radius:20px}.aaa-price-guide h2{font-size:31px}body:has(.aaa-price-guide) .price-copy{padding:22px;gap:8px}.aaa-price-guide-visual img{max-height:190px}body:has(.aaa-price-guide) .price-item>img{aspect-ratio:1.8}}
@media(max-width:400px){body:has(.aaa-price-guide) .price-copy{grid-template-columns:1fr}body:has(.aaa-price-guide) .price-copy>a{grid-column:1;justify-self:start}}
@media(prefers-reduced-motion:reduce){body:has(.aaa-price-guide) .price-item,.aaa-guide-button{transition:none}}

/* v16.0: lietot tieši tās pašas SVG ikonas, kas kategoriju izvēlnē */
body:has(.aaa-price-guide) .aaa-price-category-mark {width:54px;height:54px;padding:10px;box-sizing:border-box;background:#e9f5eb;border-radius:14px;}
body:has(.aaa-price-guide) .aaa-price-category-mark img {display:block;width:100%;height:100%;object-fit:contain;filter:none;}

/* v19.6 — cenu kartītes: ikona kreisajā pusē, rediģējamais nosaukums un apraksts pa labi (arī CMS priekšskatījumā). */
body:has(.aaa-price-guide) .price-section .price-copy{
  display:grid;grid-template-columns:72px minmax(0,1fr);grid-template-rows:auto auto auto;
  align-content:start;align-items:center;column-gap:16px;row-gap:5px;
}
body:has(.aaa-price-guide) .price-section .price-copy .aaa-price-category-mark{
  grid-column:1;grid-row:1 / span 2;align-self:center;justify-self:center;
  width:70px;height:70px;padding:9px;margin:0;box-sizing:border-box;
}
body:has(.aaa-price-guide) .price-section .price-copy .aaa-price-category-mark img{
  width:100%;height:100%;object-fit:contain;
}
body:has(.aaa-price-guide) .price-section .price-copy h3{
  grid-column:2;grid-row:1;align-self:end;margin:0;min-width:0;
}
body:has(.aaa-price-guide) .price-section .price-copy p{
  grid-column:2;grid-row:2;align-self:start;margin:0 0 10px;min-height:0;min-width:0;
}
body:has(.aaa-price-guide) .price-section .price-copy .price-blank{
  grid-column:1 / -1;grid-row:3;margin:8px 0 0;
}
body:has(.aaa-price-guide) .price-section .price-copy > a{
  grid-column:1 / -1;grid-row:4;justify-self:start;margin-top:7px;
}
@media(max-width:400px){
 body:has(.aaa-price-guide) .price-section .price-copy{grid-template-columns:62px minmax(0,1fr);column-gap:12px}
 body:has(.aaa-price-guide) .price-section .price-copy .aaa-price-category-mark{width:60px;height:60px}
}

/* v19.7 — vienota cenu kartīšu kompozīcija: ikona, nosaukums, apraksts, cena un darbības poga. */
body:has(.aaa-price-guide) .price-section .price-copy{
  display:grid;grid-template-columns:84px minmax(0,1fr) auto;
  grid-template-rows:auto auto minmax(40px,auto);
  align-content:center;align-items:center;column-gap:18px;row-gap:7px;
  padding:26px 28px 28px;min-height:160px;
}
body:has(.aaa-price-guide) .price-section .price-copy .aaa-price-category-mark{
  grid-column:1;grid-row:1 / 4;align-self:center;justify-self:start;
  width:82px;height:82px;padding:11px;margin:0;border-radius:18px;
}
body:has(.aaa-price-guide) .price-section .price-copy h3{
  grid-column:2 / 4;grid-row:1;align-self:end;margin:0;line-height:1.18;
}
body:has(.aaa-price-guide) .price-section .price-copy p{
  grid-column:2 / 4;grid-row:2;align-self:start;margin:0;min-height:0;line-height:1.45;
}
body:has(.aaa-price-guide) .price-section .price-copy .price-blank{
  grid-column:2;grid-row:3;align-self:center;margin:0;
}
body:has(.aaa-price-guide) .price-section .price-copy > a{
  grid-column:3;grid-row:3;align-self:center;justify-self:end;
  margin:0;padding:11px 16px;border-radius:10px;font-weight:750;
}
@media(max-width:1050px){
  body:has(.aaa-price-guide) .price-section .price-copy{grid-template-columns:72px minmax(0,1fr);column-gap:14px;row-gap:8px}
  body:has(.aaa-price-guide) .price-section .price-copy .aaa-price-category-mark{width:70px;height:70px;grid-row:1 / 3}
  body:has(.aaa-price-guide) .price-section .price-copy h3{grid-column:2;grid-row:1}
  body:has(.aaa-price-guide) .price-section .price-copy p{grid-column:2;grid-row:2}
  body:has(.aaa-price-guide) .price-section .price-copy .price-blank{grid-column:2;grid-row:3}
  body:has(.aaa-price-guide) .price-section .price-copy > a{grid-column:2;grid-row:4;justify-self:start}
}
@media(max-width:450px){
  body:has(.aaa-price-guide) .price-section .price-copy{padding:20px;grid-template-columns:62px minmax(0,1fr);column-gap:12px;min-height:0}
  body:has(.aaa-price-guide) .price-section .price-copy .aaa-price-category-mark{width:60px;height:60px;padding:8px}
}

/* v19.8 — sakārtota kompozīcija pēc parauga: ikona | teksts un cena | poga */
body:has(.aaa-price-guide) .price-section .price-copy{
  display:grid!important;
  grid-template-columns:108px minmax(0,1fr) auto!important;
  grid-template-rows:auto auto auto!important;
  column-gap:20px!important;row-gap:5px!important;
  align-items:center!important;align-content:center!important;
  min-height:154px!important;padding:24px 28px!important;
}
body:has(.aaa-price-guide) .price-section .price-copy .aaa-price-category-mark{
  grid-column:1!important;grid-row:1 / 4!important;
  align-self:center!important;justify-self:center!important;
  width:106px!important;height:88px!important;padding:12px!important;margin:0!important;
  border-radius:18px!important;
}
body:has(.aaa-price-guide) .price-section .price-copy .aaa-price-category-mark img{
  width:100%!important;height:100%!important;object-fit:contain!important;
}
body:has(.aaa-price-guide) .price-section .price-copy h3{
  grid-column:2!important;grid-row:1!important;align-self:end!important;
  margin:0!important;line-height:1.2!important;font-size:clamp(19px,1.7vw,25px)!important;
}
body:has(.aaa-price-guide) .price-section .price-copy p{
  grid-column:2!important;grid-row:2!important;align-self:center!important;
  margin:0!important;min-height:0!important;line-height:1.4!important;
}
body:has(.aaa-price-guide) .price-section .price-copy .price-blank{
  grid-column:2!important;grid-row:3!important;align-self:start!important;
  justify-self:start!important;margin:6px 0 0!important;
}
body:has(.aaa-price-guide) .price-section .price-copy>a{
  grid-column:3!important;grid-row:1 / 4!important;
  align-self:center!important;justify-self:end!important;
  margin:0!important;padding:13px 17px!important;white-space:nowrap!important;
}
@media(max-width:1050px){
 body:has(.aaa-price-guide) .price-section .price-copy{grid-template-columns:82px minmax(0,1fr)!important;column-gap:14px!important;padding:22px!important}
 body:has(.aaa-price-guide) .price-section .price-copy .aaa-price-category-mark{width:80px!important;height:76px!important;grid-row:1 / 4!important}
 body:has(.aaa-price-guide) .price-section .price-copy>a{grid-column:2!important;grid-row:4!important;justify-self:start!important;margin-top:8px!important}
}
@media(min-width:1051px) and (max-width:1280px){
 body:has(.aaa-price-guide) .price-section .price-copy{grid-template-columns:88px minmax(0,1fr) auto!important;column-gap:13px!important;padding:22px!important}
 body:has(.aaa-price-guide) .price-section .price-copy .aaa-price-category-mark{width:86px!important;height:78px!important}
 body:has(.aaa-price-guide) .price-section .price-copy>a{padding:11px 12px!important}
}
@media(max-width:430px){
 body:has(.aaa-price-guide) .price-section .price-copy{grid-template-columns:72px minmax(0,1fr)!important;column-gap:12px!important;padding:18px!important}
 body:has(.aaa-price-guide) .price-section .price-copy .aaa-price-category-mark{width:70px!important;height:68px!important;padding:8px!important}
}

/* v19.9 — vienots, centrēts kartītes satura bloks */
@media(min-width:1051px){
 body:has(.aaa-price-guide) .price-section .price-copy{
  box-sizing:border-box!important;
  grid-template-columns:96px minmax(0,1fr) 158px!important;
  grid-template-rows:auto auto auto!important;
  column-gap:18px!important;row-gap:6px!important;
  width:100%!important;min-height:170px!important;
  padding:26px clamp(20px,3vw,38px)!important;
  align-content:center!important;align-items:center!important;
 }
 body:has(.aaa-price-guide) .price-section .price-copy .aaa-price-category-mark{
  width:94px!important;height:86px!important;grid-row:1 / 4!important;
  align-self:center!important;justify-self:center!important;
 }
 body:has(.aaa-price-guide) .price-section .price-copy h3{align-self:end!important}
 body:has(.aaa-price-guide) .price-section .price-copy p{align-self:center!important}
 body:has(.aaa-price-guide) .price-section .price-copy .price-blank{align-self:start!important;margin-top:3px!important}
 body:has(.aaa-price-guide) .price-section .price-copy>a{
  grid-column:3!important;grid-row:1 / 4!important;
  justify-self:center!important;align-self:center!important;
  text-align:center!important;
 }
}
@media(max-width:1050px){
 body:has(.aaa-price-guide) .price-section .price-copy{
  align-content:center!important;min-height:170px!important;
 }
 body:has(.aaa-price-guide) .price-section .price-copy .aaa-price-category-mark{
  align-self:center!important;
 }
}

/* v20.0: vienots horizontāli un vertikāli centrēts kartīšu saturs.
   Atsevišķs teksta bloks novērš virsrakstu un cenu nobīdi starp kategorijām. */
body .price-section .price-item .price-copy{
 display:grid!important;
 grid-template-columns: minmax(88px,112px) minmax(0,1fr) auto!important;
 grid-template-rows:1fr!important;
 align-items:center!important;
 align-content:center!important;
 column-gap:18px!important;
 row-gap:0!important;
 padding:24px 28px!important;
 min-height:168px!important;
 box-sizing:border-box!important;
}
body .price-section .price-item .price-copy .aaa-price-category-mark{
 grid-column:1!important;grid-row:1!important;
 width:100%!important;height:92px!important;
 margin:0!important;padding:12px!important;
 align-self:center!important;justify-self:center!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
}
body .price-section .price-item .price-copy .aaa-price-category-mark img{
 width:100%!important;height:100%!important;object-fit:contain!important;
}
body .price-section .price-item .price-copy .aaa-price-details{
 grid-column:2!important;grid-row:1!important;
 min-width:0;display:flex!important;flex-direction:column!important;
 align-items:flex-start!important;justify-content:center!important;
 gap:7px!important;align-self:center!important;
}
body .price-section .price-item .price-copy .aaa-price-details h3,
body .price-section .price-item .price-copy .aaa-price-details p,
body .price-section .price-item .price-copy .aaa-price-details .price-blank{
 grid-column:auto!important;grid-row:auto!important;
 align-self:auto!important;justify-self:auto!important;
 margin:0!important;min-height:0!important;
}
body .price-section .price-item .price-copy .aaa-price-details h3{
 font-size:clamp(20px,1.7vw,26px)!important;line-height:1.18!important;
}
body .price-section .price-item .price-copy .aaa-price-details p{line-height:1.4!important}
body .price-section .price-item .price-copy>a{
 grid-column:3!important;grid-row:1!important;
 align-self:center!important;justify-self:center!important;
 margin:0!important;white-space:nowrap!important;
 padding:13px 17px!important;text-align:center!important;
}
@media(max-width:1100px){
 body .price-section .price-item .price-copy{
  grid-template-columns:84px minmax(0,1fr)!important;
  column-gap:14px!important;row-gap:12px!important;
  padding:22px!important;min-height:0!important;
 }
 body .price-section .price-item .price-copy .aaa-price-category-mark{height:78px!important}
 body .price-section .price-item .price-copy>a{
  grid-column:2!important;grid-row:2!important;justify-self:start!important;
 }
}
@media(max-width:480px){
 body .price-section .price-item .price-copy{
  grid-template-columns:70px minmax(0,1fr)!important;
  column-gap:12px!important;padding:18px!important;
 }
 body .price-section .price-item .price-copy .aaa-price-category-mark{height:68px!important;padding:8px!important}
 body .price-section .price-item .price-copy .aaa-price-details h3{font-size:20px!important}
}

/* v20.2 — cenu kartītes: pietiekama vieta garākiem aprakstiem un vienots ritms */
body .price-section .price-item .price-copy{
  display:grid!important;
  grid-template-columns:96px minmax(0,1fr) 142px!important;
  grid-template-rows:auto!important;
  align-items:center!important;
  column-gap:14px!important;
  padding:22px 24px!important;
  min-height:174px!important;
  height:auto!important;
}
body .price-section .price-item .price-copy .aaa-price-category-mark{
  grid-column:1!important;grid-row:1!important;
  width:96px!important;height:84px!important;
  padding:10px!important;box-sizing:border-box!important;
}
body .price-section .price-item .price-copy .aaa-price-details{
  grid-column:2!important;grid-row:1!important;
  width:100%!important;min-width:0!important;
  gap:7px!important;overflow-wrap:anywhere!important;
}
body .price-section .price-item .price-copy .aaa-price-details h3{
  font-size:clamp(19px,1.55vw,25px)!important;
  line-height:1.2!important;max-width:100%!important;
}
body .price-section .price-item .price-copy .aaa-price-details p{
  font-size:14px!important;line-height:1.5!important;
  max-width:100%!important;white-space:normal!important;
  overflow:visible!important;display:block!important;
}
body .price-section .price-item .price-copy .aaa-price-details .price-blank{
  max-width:100%!important;white-space:normal!important;
}
body .price-section .price-item .price-copy>a{
  grid-column:3!important;grid-row:1!important;
  width:142px!important;max-width:100%!important;
  box-sizing:border-box!important;justify-self:end!important;
  white-space:normal!important;line-height:1.35!important;
  padding:12px 10px!important;
}
@media(max-width:1250px){
 body .price-section .price-item .price-copy{
  grid-template-columns:82px minmax(0,1fr) 120px!important;
  column-gap:11px!important;padding:20px 16px!important;
 }
 body .price-section .price-item .price-copy .aaa-price-category-mark{width:82px!important;height:78px!important;padding:8px!important}
 body .price-section .price-item .price-copy>a{width:120px!important;padding:11px 8px!important;font-size:13px!important}
}
@media(max-width:850px){
 body .price-section .price-item .price-copy{
  grid-template-columns:86px minmax(0,1fr)!important;
  column-gap:14px!important;row-gap:12px!important;
  padding:20px!important;min-height:0!important;
 }
 body .price-section .price-item .price-copy .aaa-price-category-mark{width:86px!important;height:78px!important}
 body .price-section .price-item .price-copy>a{
  grid-column:2!important;grid-row:2!important;
  justify-self:start!important;width:auto!important;min-width:140px!important;
 }
}
@media(max-width:480px){
 body .price-section .price-item .price-copy{grid-template-columns:72px minmax(0,1fr)!important;column-gap:12px!important;padding:16px!important}
 body .price-section .price-item .price-copy .aaa-price-category-mark{width:72px!important;height:70px!important;padding:7px!important}
 body .price-section .price-item .price-copy .aaa-price-details h3{font-size:20px!important}
}

/* Cenu lapas piecu kategoriju pilnā ilustrācija */
.aaa-price-guide-visual img{max-height:390px}
@media(max-width:700px){.aaa-price-guide-visual img{max-height:none}}

/* V21.7 — tikai cenu lapas kategoriju kartīšu attēlu augstuma stabilizācija.
   Neietekmē CMS tekstus, kategoriju saites un citu lapu attēlus. */
body:has(.aaa-price-guide) .price-section .price-item {
  min-height: 0;
}
body:has(.aaa-price-guide) .price-section .price-item > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.1 / 1;
  object-fit: cover;
  flex: 0 0 auto;
}
body:has(.aaa-price-guide) .price-section .price-item > .price-copy {
  flex: 0 0 auto;
}
@media (max-width: 700px) {
  body:has(.aaa-price-guide) .price-section .price-item > img {
    aspect-ratio: 1.8 / 1;
  }
}

/* V21.8 — cenu kategoriju kartītes: fiksēts attēlu laukums un bez vertikālas izstiepšanas. */
body .price-section .price-grid { align-items: start !important; }
body .price-section .price-grid > .price-item { align-self: start !important; height: auto !important; min-height: 0 !important; }
body .price-section .price-grid > .price-item > img {
  display: block !important; width: 100% !important; height: clamp(165px, 20vw, 265px) !important;
  max-height: 265px !important; min-height: 0 !important; aspect-ratio: auto !important;
  object-fit: cover !important; object-position: center !important; flex: none !important;
}
body .price-section .price-grid > .price-item > .price-copy { flex: none !important; height: auto !important; }
@media (max-width: 720px) {
 body .price-section .price-grid > .price-item > img { height: clamp(185px, 55vw, 285px) !important; max-height: 285px !important; }
}
