/* Contextual prices sourced from PHP CSS variables */

/* Price and action share the same bottom row on every service card. */
.page-home .services-final .service-card .service-order{
  width:100%;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px;
}
.page-home .services-final .service-card .service-price{
  color:var(--accent-text);
  font:600 12px/1.35 "IBM Plex Mono",monospace;
  white-space:nowrap;
}
.page-home .services-final .service-card .ui-card-action{
  min-height:34px!important;
  gap:7px;
  padding:0 10px!important;
  white-space:nowrap;
}
.page-home .services-final .service-card .ui-card-action span{font-size:13px;line-height:1}

/* Base price beside CTA on each service page */
.page-service-web .internal-hero-actions::before,
.page-service-api .internal-hero-actions::before,
.page-service-automation .internal-hero-actions::before,
.page-service-seo .internal-hero-actions::before{
  padding:10px 12px;
  border:1px solid color-mix(in srgb,var(--accent) 20%,var(--line));
  border-radius:11px;
  background:var(--accent-soft);
  color:var(--accent);
  display:inline-flex;
  align-items:center;
  font:600 10px/1.25 "IBM Plex Mono",monospace;
  white-space:nowrap;
}
.page-service-web .internal-hero-actions::before{content:"СТАРТ · " var(--price-web)}
.page-service-api .internal-hero-actions::before{content:"СТАРТ · " var(--price-api)}
.page-service-automation .internal-hero-actions::before{content:"СТАРТ · " var(--price-automation)}
.page-service-seo .internal-hero-actions::before{content:"СТАРТ · " var(--price-seo)}

/* Task-level prices */
.page-service-web .service-task footer,
.page-service-api .service-task footer,
.page-service-automation .service-task footer,
.page-service-seo .service-task footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.page-service-web .service-task footer::after,
.page-service-api .service-task footer::after,
.page-service-automation .service-task footer::after,
.page-service-seo .service-task footer::after{
  color:var(--ink);
  font:600 10px "IBM Plex Mono",monospace;
  letter-spacing:0;
  white-space:nowrap;
}

.page-service-web .service-task:nth-child(1) footer::after{content:var(--price-web-site)}
.page-service-web .service-task:nth-child(2) footer::after{content:var(--price-web-shop)}
.page-service-web .service-task:nth-child(3) footer::after{content:var(--price-web-b2b)}
.page-service-web .service-task:nth-child(4) footer::after{content:var(--price-web-pwa)}

.page-service-api .service-task:nth-child(1) footer::after{content:var(--price-api-rest)}
.page-service-api .service-task:nth-child(2) footer::after{content:var(--price-api-crm)}
.page-service-api .service-task:nth-child(3) footer::after{content:var(--price-api-payment)}
.page-service-api .service-task:nth-child(4) footer::after{content:var(--price-api-logic)}

.page-service-automation .service-task:nth-child(1) footer::after{content:var(--price-auto-routing)}
.page-service-automation .service-task:nth-child(2) footer::after{content:var(--price-auto-docs)}
.page-service-automation .service-task:nth-child(3) footer::after{content:var(--price-auto-notify)}
.page-service-automation .service-task:nth-child(4) footer::after{content:var(--price-auto-ai)}

.page-service-seo .service-task:nth-child(1) footer::after{content:var(--price-seo-performance)}
.page-service-seo .service-task:nth-child(2) footer::after{content:var(--price-seo-indexing)}
.page-service-seo .service-task:nth-child(3) footer::after{content:var(--price-seo-schema)}
.page-service-seo .service-task:nth-child(4) footer::after{content:var(--price-seo-analytics)}

@media(max-width:760px){
  .page-home .services-final .service-card .service-order{flex-direction:row!important;align-items:center!important}
  .page-home .services-final .service-card .service-price{font-size:11px}
  .page-service-web .internal-hero-actions::before,
  .page-service-api .internal-hero-actions::before,
  .page-service-automation .internal-hero-actions::before,
  .page-service-seo .internal-hero-actions::before{
    width:auto;
    padding:9px 11px;
    justify-content:center;
    order:-1;
  }
  .service-task footer{align-items:center!important;justify-content:space-between!important;flex-direction:row!important;gap:8px!important}
  .service-task footer::after{font-size:9px!important}
}

@media(max-width:420px){
  .page-home .services-final .service-card .service-price{font-size:10px}
  .page-home .services-final .service-card .ui-card-action{font-size:10px!important}
  .service-task footer{align-items:center!important;flex-direction:row!important;gap:5px!important}
}
