/*
Theme Name: AKPP Service
Description: Лёгкая mobile-first тема автосервиса трансмиссий.
Version: 0.1.22
Text Domain: akpp-service
*/

:root {
  --akpp-accent: #e85720;
  --akpp-ink: #17202a;
  --akpp-muted: #5e6a76;
  --akpp-surface: #f4f6f8;
  --akpp-radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  color: var(--akpp-ink);
  background: #ffffff;
}

a { text-underline-offset: 0.18em; }

.site-shell {
  min-height: 100vh;
}

.site-hero {
  display: grid;
  min-height: 65vh;
  place-items: center;
  padding: clamp(4rem, 12vw, 9rem) 1.25rem;
  background: var(--akpp-surface);
  text-align: center;
}

.site-hero__inner {
  max-width: 46rem;
}

.site-hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.site-hero p {
  max-width: 38rem;
  margin: 1.5rem auto 0;
  color: var(--akpp-muted);
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  line-height: 1.55;
}

.site-header,
.site-footer {
  padding: 1.25rem;
}

.site-header p,
.site-footer p {
  margin: 0.25rem 0 0;
  color: var(--akpp-muted);
}

.akpp-section {
  padding: clamp(3.5rem, 9vw, 7rem) 1.25rem;
}

.akpp-section--muted {
  background: var(--akpp-surface);
}

.akpp-eyebrow {
  margin: 0 0 1rem;
  color: var(--akpp-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.akpp-lead {
  max-width: 43rem;
  color: var(--akpp-muted);
  font-size: clamp(1.08rem, 3vw, 1.3rem);
  line-height: 1.55;
}

.akpp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.akpp-card {
  min-height: 100%;
  padding: 1.4rem;
  border: 1px solid #dce2e8;
  border-radius: var(--akpp-radius);
  background: #fff;
}

.akpp-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.akpp-card p {
  margin-bottom: 0;
  color: var(--akpp-muted);
  line-height: 1.5;
}

.akpp-symptoms {
  columns: 1;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.akpp-symptoms li {
  position: relative;
  margin: 0 0 0.85rem;
  padding-left: 1.5rem;
}

.akpp-symptoms li::before {
  position: absolute;
  left: 0;
  color: var(--akpp-accent);
  content: "•";
  font-size: 1.4rem;
  line-height: 1;
}

.akpp-process {
  margin: 1.5rem 0 0;
  padding-left: 1.4rem;
}

.akpp-process li {
  margin-bottom: 1rem;
  padding-left: 0.4rem;
  line-height: 1.5;
}

.akpp-process strong {
  color: var(--akpp-accent);
}

.akpp-price {
  margin: 1rem 0;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 700;
}

.akpp-notice {
  padding: 1.25rem;
  border-left: 4px solid var(--akpp-accent);
  border-radius: 0 var(--akpp-radius) var(--akpp-radius) 0;
  background: #fff;
  line-height: 1.55;
}

.akpp-contact-box {
  padding: 1.5rem;
  border-radius: var(--akpp-radius);
  background: var(--akpp-ink);
  color: #fff;
}

.akpp-contact-box p {
  margin: 0.35rem 0;
}

.akpp-contact-box .wp-block-shortcode {
  font-size: 1.25rem;
  font-weight: 700;
}

.akpp-mobile-actions {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  border-top: 1px solid #dce2e8;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.akpp-mobile-actions a {
  display: block;
  padding: 0.85rem 0.5rem;
  border-radius: 12px;
  background: var(--akpp-ink);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.akpp-mobile-actions a:last-child {
  background: var(--akpp-accent);
}

@media (min-width: 700px) {
  .akpp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .akpp-symptoms {
    columns: 2;
    column-gap: 3rem;
  }

  .akpp-mobile-actions {
    display: none;
  }
}

@media (min-width: 1024px) {
  .akpp-grid--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-hero__inner {
  max-width: 72rem;
}

.site-hero h1 {
  max-width: 18ch;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
}

.akpp-grid {
  align-items: stretch;
}

.akpp-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  text-align: center;
}

.akpp-card h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.16;
}

.akpp-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

@media (min-width: 1024px) {
  .site-hero {
    min-height: min(700px, 72vh);
  }

  .akpp-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .akpp-grid--three {
    gap: 1.25rem;
  }

  .akpp-card {
    padding: 1.5rem;
  }
}

.site-hero h1 {
  max-width: none;
  font-size: clamp(2.1rem, 3.75vw, 3.5rem);
  line-height: 1.08;
}

.site-hero .wp-block-buttons {
  justify-content: center;
  gap: 0.75rem;
}

@media (max-width: 699px) {
  .site-hero .wp-block-buttons {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .site-hero .wp-block-button,
  .site-hero .wp-block-button__link {
    width: 100%;
  }
}

.akpp-grid > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.akpp-contact-box > p:first-child,
.akpp-contact-box > .wp-block-shortcode {
  display: inline;
}

.akpp-contact-box > p:first-child {
  margin-right: 0.35rem;
}

.akpp-contact-box > .wp-block-shortcode {
  font-size: 1.25rem;
  font-weight: 700;
}

.akpp-contact-box > p:first-child,
.akpp-contact-box > p:first-child + p {
  display: inline;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.akpp-contact-box > p:first-child {
  margin-right: 0.35rem;
}

.akpp-contact-box > p:first-child + p {
  font-size: 1.25rem;
  font-weight: 700;
}

.akpp-contact-box > p:first-child + p {
  font-size: inherit;
  font-weight: inherit;
}

.akpp-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.akpp-work-grid figure {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--akpp-radius);
  background: var(--akpp-surface);
}

.akpp-work-grid img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .akpp-work-grid {
    gap: 1.25rem;
  }
}

.site-header .akpp-service-brand {
  color: var(--akpp-ink);
  font-size: 1.35rem;
  font-weight: 750;
  text-decoration: none;
}

.site-header .akpp-service-brand:hover,
.site-header .akpp-service-brand:focus-visible {
  color: var(--akpp-accent);
}

.akpp-work-grid a {
  display: block;
  cursor: zoom-in;
}

.akpp-lightbox {
  width: auto;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.akpp-lightbox::backdrop {
  background: rgb(0 0 0 / 85%);
}

.akpp-lightbox img {
  display: block;
  max-width: 96vw;
  max-height: 88vh;
  border-radius: 8px;
}

.akpp-lightbox__close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--akpp-ink);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgb(23 32 42 / 10%);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
}

.site-header .wp-block-group {
  min-height: 2.5rem;
}

.site-header p {
  margin: 0;
}

@media (max-width: 699px) {
  .site-header {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .site-header .wp-block-group {
    gap: 0.75rem;
  }

  .site-header .has-small-font-size {
    max-width: 11rem;
    font-size: 0.72rem !important;
    line-height: 1.25;
    text-align: right;
  }
}

header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 30;
  display: block;
}

header.wp-block-template-part .site-header {
  position: relative;
  top: auto;
  z-index: auto;
}

.akpp-mobile-actions {
  display: flex;
  gap: 0.5rem;
}

.akpp-mobile-actions a {
  flex: 1;
  padding: 0.8rem 0.25rem;
  font-size: 0.8rem;
}

.akpp-mobile-actions a:nth-child(2) {
  background: #229ed9;
}

.akpp-mobile-actions a:nth-child(3) {
  background: #635bff;
}

@media (min-width: 700px) {
  .akpp-mobile-actions {
    display: none;
  }
}

.akpp-header-contact {
  padding: 0.5rem 0.8rem;
  border: 1px solid rgb(23 32 42 / 18%);
  border-radius: 9px;
  color: var(--akpp-ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.akpp-header-contact:hover,
.akpp-header-contact:focus-visible {
  border-color: var(--akpp-accent);
  color: var(--akpp-accent);
}

@media (max-width: 699px) {
  .akpp-header-contact {
    display: none;
  }
}

.akpp-contact-box a {
  color: #fff;
  text-decoration-color: rgb(255 255 255 / 55%);
  overflow-wrap: anywhere;
}

.akpp-contact-note {
  margin-top: 1.25rem !important;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 25%);
  color: rgb(255 255 255 / 82%);
  font-size: 0.95rem;
  line-height: 1.5;
}

.akpp-contact-note {
  margin-top: 1.25rem !important;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 25%);
  color: rgb(255 255 255 / 82%);
  font-size: 0.95rem;
  line-height: 1.5;
}

.akpp-contact-box a {
  color: #fff;
  text-decoration-color: rgb(255 255 255 / 55%);
}

.akpp-contact-box a:hover,
.akpp-contact-box a:focus-visible {
  color: #fff;
  text-decoration-color: #fff;
}

.akpp-mobile-actions a::before {
  content: "" !important;
  width: 1rem;
  height: 1rem;
  border: 0 !important;
  border-radius: 0 !important;
  background: center / contain no-repeat;
  font-size: 0 !important;
  rotate: none !important;
}

.akpp-mobile-actions a:nth-child(1)::before {
  background-image: url("/wp-content/themes/akpp-service/assets/icons/phone.svg");
  filter: invert(1);
}

.akpp-mobile-actions a:nth-child(2)::before {
  background-image: url("/wp-content/themes/akpp-service/assets/icons/telegram.svg");
}

.akpp-mobile-actions a:nth-child(3)::before {
  background-image: url("/wp-content/themes/akpp-service/assets/icons/max.svg");
}

.akpp-mobile-actions a::before {
  display: inline-block;
  flex: 0 0 1rem;
  vertical-align: -0.12em;
}

.akpp-mobile-actions a::before {
  margin-right: 0.35rem;
}

@media (min-width: 700px) {
  .akpp-contact-box p:nth-of-type(1)::before,
  .akpp-contact-box p:nth-of-type(3)::before,
  .akpp-contact-box p:nth-of-type(4)::before {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.45rem;
    vertical-align: -0.12em;
    background: center / contain no-repeat;
    content: "";
  }

  .akpp-contact-box p:nth-of-type(1)::before {
    background-image: url("/wp-content/themes/akpp-service/assets/icons/phone.svg");
    filter: invert(1);
  }

  .akpp-contact-box p:nth-of-type(3)::before {
    background-image: url("/wp-content/themes/akpp-service/assets/icons/telegram.svg");
  }

  .akpp-contact-box p:nth-of-type(4)::before {
    background-image: url("/wp-content/themes/akpp-service/assets/icons/max.svg");
  }
}

.akpp-header-meta {
  max-width: 30rem;
  min-width: 0;
  text-align: right;
}

.site-header .akpp-header-address {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.25;
}

.site-header .akpp-header-phone {
  margin: 0.15rem 0 0;
  font-weight: 700;
}

.site-header .akpp-header-phone a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 699px) {
  .site-header .akpp-header-address {
    display: none;
  }
}

.akpp-contact-disclaimer {
  margin-top: 0.9rem !important;
  color: rgb(255 255 255 / 66%);
  font-size: 0.84rem;
  line-height: 1.45;
}

.akpp-price-card {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
  padding: clamp(1.35rem, 4vw, 2.25rem);
  border: 1px solid #dce2e8;
  border-radius: var(--akpp-radius);
  background: #fff;
}

.akpp-price-card__label {
  margin: 0;
  color: var(--akpp-muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.akpp-price-card__main .wp-block-shortcode,
.akpp-price-card__main .wp-block-shortcode p {
  margin: 0.4rem 0 0;
  color: var(--akpp-ink);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.akpp-price-card__caption {
  margin: 0.6rem 0 0;
  color: var(--akpp-muted);
  font-size: 0.9rem;
}

.akpp-price-card__details {
  padding-top: 1.5rem;
  border-top: 1px solid #dce2e8;
}

.akpp-price-card__details h3 {
  margin: 0;
  font-size: 1.05rem;
}

.akpp-price-card__details .wp-block-shortcode,
.akpp-price-card__details .wp-block-shortcode p {
  margin: 0.65rem 0 0;
  color: var(--akpp-muted);
  line-height: 1.55;
}

.akpp-price-note {
  margin: 1.25rem 0 0;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: var(--akpp-surface);
  color: var(--akpp-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (min-width: 700px) {
  .akpp-price-card {
    grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 2.5rem;
  }

  .akpp-price-card__details {
    padding-top: 0;
    padding-left: 2.5rem;
    border-top: 0;
    border-left: 1px solid #dce2e8;
  }
}

#prices > .akpp-eyebrow,
#prices > h2,
#prices > .akpp-price-card,
#prices > .akpp-price-note {
  width: min(100%, var(--wp--style--global--wide-size));
  margin-right: auto !important;
  margin-left: auto !important;
}

.akpp-price-card__label,
.akpp-price-card__details h3 {
  margin: 0;
  color: var(--akpp-muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.akpp-price-card__main > p:not(.akpp-price-card__label):not(.akpp-price-card__caption) {
  margin: 0.85rem 0 0;
  color: var(--akpp-ink);
  font-size: clamp(2.35rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.akpp-price-card__caption {
  margin: 0.65rem 0 0;
  color: var(--akpp-muted);
  font-size: 0.95rem;
}

.akpp-price-card__details > p {
  margin: 0.85rem 0 0;
  color: var(--akpp-ink);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.42;
}

.akpp-price-card__main > p:not(.akpp-price-card__label):not(.akpp-price-card__caption) {
  font-size: clamp(2rem, 4vw, 2.6rem);
  white-space: nowrap;
}

@media (min-width: 700px) {
  .akpp-price-card {
    align-items: start;
  }

  .akpp-price-card__details > p {
    font-size: 1.15rem;
  }
}

.akpp-price-card > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

@media (min-width: 700px) {
  .akpp-price-card__main,
  .akpp-price-card__details {
    align-self: start;
  }
}

.akpp-card:has(.akpp-card__link) {
  position: relative;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.akpp-card:has(.akpp-card__link):hover,
.akpp-card:has(.akpp-card__link):focus-within {
  border-color: var(--akpp-accent);
  box-shadow: 0 10px 24px rgb(23 32 42 / 9%);
  transform: translateY(-2px);
}

.akpp-card__link {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
}

.akpp-card:has(.akpp-card__link) h3,
.akpp-card:has(.akpp-card__link) p {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.akpp-header-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.akpp-header-brand p {
  margin: 0;
}

.akpp-header-logo {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgb(23 32 42 / 12%);
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 699px) {
  .akpp-header-logo {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
}

.akpp-header-logo {
  width: 50px;
  height: 50px;
  flex-basis: 50px;
}

@media (max-width: 699px) {
  .akpp-header-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
}

.akpp-service-page__hero,
.akpp-service-page__section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 1.25rem;
}

.akpp-service-page__hero {
  background: var(--akpp-surface);
  text-align: center;
}

.akpp-service-page__hero .akpp-lead {
  margin-right: auto;
  margin-left: auto;
}

.akpp-service-page__hero .wp-block-buttons {
  justify-content: center;
}

.akpp-service-page__section > * {
  width: min(100%, var(--wp--style--global--wide-size));
  margin-right: auto !important;
  margin-left: auto !important;
}

.akpp-service-page__list {
  max-width: 48rem;
  margin-top: 1.5rem;
  line-height: 1.6;
}

.akpp-service-page__list li + li {
  margin-top: 0.65rem;
}

.akpp-service-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.akpp-service-photo-grid a {
  display: block;
  overflow: hidden;
  border-radius: var(--akpp-radius);
  background: var(--akpp-surface);
}

.akpp-service-photo-grid img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.akpp-service-page__callout {
  background: var(--akpp-ink);
  color: #fff;
}

.akpp-service-page__callout p {
  max-width: 48rem;
  color: rgb(255 255 255 / 82%);
  line-height: 1.6;
}

.akpp-service-page__hero {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.akpp-cvt-hero,
.akpp-cvt-work {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(17rem, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
}

.akpp-cvt-hero__copy {
  text-align: left;
}

.akpp-cvt-hero__copy .akpp-lead {
  margin: 1.25rem 0 1.75rem;
}

.akpp-cvt-hero__photo,
.akpp-cvt-work__photo {
  display: block;
  overflow: hidden;
  margin: 0;
  border-radius: var(--akpp-radius);
  background: #dde2e7;
}

.akpp-cvt-hero__photo img,
.akpp-cvt-work__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.akpp-cvt-hero__photo {
  max-height: 28rem;
}

.akpp-cvt-hero__photo img {
  aspect-ratio: 4 / 5;
}

.akpp-cvt-hero__button {
  display: inline-block;
  padding: 0.95rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--wp--preset--color--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.akpp-cvt-work {
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.65fr);
}

.akpp-cvt-work__photo {
  max-height: 22rem;
}

.akpp-cvt-work__photo img {
  aspect-ratio: 4 / 5;
}

@media (max-width: 700px) {
  .akpp-cvt-hero,
  .akpp-cvt-work {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .akpp-cvt-hero__photo {
    order: -1;
    max-height: 21rem;
  }

  .akpp-cvt-work__photo {
    max-height: 24rem;
  }
}

.akpp-cvt-hero__photo,
.akpp-cvt-work__photo {
  max-height: none;
}

.akpp-cvt-hero__photo img,
.akpp-cvt-work__photo img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.akpp-cvt-dialog {
  width: min(94vw, 72rem);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #111;
}

.akpp-cvt-dialog::backdrop {
  background: rgb(0 0 0 / 78%);
}

.akpp-cvt-dialog img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 88vh;
  margin: 0 auto;
}

.akpp-cvt-dialog__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #17202a;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.akpp-service-placeholder {
  display: flex;
  min-height: 19rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--akpp-radius);
  background:
    radial-gradient(circle at top right, rgb(232 87 32 / 78%), transparent 40%),
    linear-gradient(135deg, #17202a, #2a3845);
  color: #fff;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
}

.akpp-service-placeholder span {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.07em;
}

.akpp-service-placeholder small {
  margin-top: 1.25rem;
  color: rgb(255 255 255 / 72%);
  font-size: 0.9rem;
  line-height: 1.35;
}

.akpp-lightbox[open] {
  position: fixed;
  inset: 0;
  display: grid;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 2rem;
  border: 0;
  background: transparent;
  place-items: center;
}

.akpp-lightbox[open] img {
  width: auto;
  max-width: 96vw;
  height: auto;
  max-height: 88vh;
}

/* Compact homepage */
.akpp-home .akpp-section {
  padding-block: 2.5rem;
}

.akpp-home h2 {
  margin: 0;
  font-size: clamp(1.65rem, 6vw, 2.25rem);
  line-height: 1.15;
}

.akpp-home-hero {
  min-height: 0;
  padding-block: clamp(2.5rem, 10vw, 4.5rem);
}

.site-hero .akpp-home-hero__lead {
  margin-top: 1rem;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
}

.akpp-home-hero__types {
  margin: 0.85rem auto 0;
  color: var(--akpp-ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.akpp-home-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 34rem;
  margin: 1.25rem auto 0;
  text-align: center;
}

.akpp-home-prices p {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0.8rem;
  border: 1px solid #dce2e8;
  border-radius: 12px;
  background: #fff;
}

.akpp-home-prices span,
.akpp-home-prices small {
  color: var(--akpp-muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.akpp-home-prices strong {
  color: var(--akpp-ink);
  font-size: clamp(1.05rem, 4vw, 1.3rem);
  line-height: 1.15;
}

.akpp-home-hero__actions {
  margin-top: 1.25rem;
}

.akpp-home-hero__actions .wp-block-button__link,
.akpp-home-hero__actions .wp-block-button a {
  width: 100%;
}

.akpp-home-hero__actions .is-style-outline a {
  display: block;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  border: 2px solid currentColor;
  border-radius: 12px;
  color: var(--akpp-ink);
  text-align: center;
  text-decoration: none;
}

.akpp-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.akpp-service-card {
  display: flex;
  min-height: 8.5rem;
  padding: 0.9rem;
  border: 1px solid #dce2e8;
  border-radius: var(--akpp-radius);
  background: #fff;
  color: var(--akpp-ink);
  flex-direction: column;
  text-align: center;
  text-decoration: none;
}

.akpp-service-card h3 {
  margin: 0;
  font-size: clamp(1rem, 4.2vw, 1.2rem);
  line-height: 1.15;
}

.akpp-service-card p {
  margin: 0.45rem 0 0;
  color: var(--akpp-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.akpp-service-card span {
  margin-top: auto;
  padding-top: 0.6rem;
  color: var(--akpp-accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.akpp-service-card:hover,
.akpp-service-card:focus-visible {
  border-color: var(--akpp-accent);
  box-shadow: 0 6px 16px rgb(23 32 42 / 8%);
}

.akpp-home-intro {
  max-width: 42rem;
  margin: 0.75rem 0 0;
  color: var(--akpp-muted);
  line-height: 1.45;
}

.akpp-symptom-chips {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  flex-wrap: wrap;
  list-style: none;
}

.akpp-symptom-chips li {
  padding: 0.45rem 0.65rem;
  border: 1px solid #dce2e8;
  border-radius: 999px;
  background: #fff;
  font-size: 0.85rem;
  line-height: 1.2;
}

.akpp-home-diagnosis {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.akpp-home-diagnosis p {
  margin: 0;
  font-size: 1.05rem;
}

.akpp-home-diagnosis a {
  padding: 0.7rem 1rem;
  background: var(--akpp-accent);
  color: #fff;
}

.akpp-mini-steps {
  margin: 1.25rem 0 0;
  color: var(--akpp-muted);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.6;
}

.akpp-mini-steps span {
  color: var(--akpp-accent);
}

.akpp-home-contacts .akpp-contact-box {
  margin-top: 1.25rem;
  padding: 1.25rem;
  display: grid;
  gap: 0.65rem;
}

.akpp-home-contacts .akpp-contact-box p {
  display: block;
  margin: 0 !important;
  font-size: 1rem;
  font-weight: 400;
}

.akpp-home-contacts .akpp-contact-box p::before {
  display: none;
  content: none;
}

.akpp-home-contacts .akpp-contact-box .akpp-contact-item--phone::before,
.akpp-home-contacts .akpp-contact-box .akpp-contact-item--telegram::before,
.akpp-home-contacts .akpp-contact-box .akpp-contact-item--max::before {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.45rem;
  vertical-align: -0.12em;
  background: center / contain no-repeat;
  content: "";
}

.akpp-home-contacts .akpp-contact-box .akpp-contact-item--phone::before {
  background-image: url("/wp-content/themes/akpp-service/assets/icons/phone.svg");
  filter: invert(1);
}

.akpp-home-contacts .akpp-contact-box .akpp-contact-item--telegram::before {
  background-image: url("/wp-content/themes/akpp-service/assets/icons/telegram.svg");
}

.akpp-home-contacts .akpp-contact-box .akpp-contact-item--max::before {
  background-image: url("/wp-content/themes/akpp-service/assets/icons/max.svg");
}

.akpp-header-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.akpp-header-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 9px;
  color: var(--akpp-ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.akpp-header-nav a:hover,
.akpp-header-nav a:focus-visible {
  color: var(--akpp-accent);
}

@media (min-width: 700px) {
  .akpp-home .akpp-section {
    padding-block: 3.5rem;
  }

  .akpp-home-hero__actions .wp-block-button,
  .akpp-home-hero__actions .wp-block-button__link,
  .akpp-home-hero__actions .wp-block-button a {
    width: auto;
  }

  .akpp-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .akpp-service-card {
    min-height: 10rem;
    padding: 1.15rem;
  }
}

@media (max-width: 699px) {
  .site-header .akpp-header-meta,
  .akpp-header-service {
    display: none;
  }

  .akpp-header-contact {
    display: block !important;
    padding: 0.45rem 0.65rem !important;
    border: 1px solid rgb(23 32 42 / 18%);
  }
}

/* Repair AKPP landing page */
.akpp-akpp-page .akpp-service-page__hero,
.akpp-akpp-page .akpp-service-page__section,
.akpp-cvt-page .akpp-service-page__hero,
.akpp-cvt-page .akpp-service-page__section,
.akpp-dsg-page .akpp-service-page__hero,
.akpp-dsg-page .akpp-service-page__section,
.akpp-powershift-page .akpp-service-page__hero,
.akpp-powershift-page .akpp-service-page__section,
.akpp-gidrobloka-page .akpp-service-page__hero,
.akpp-gidrobloka-page .akpp-service-page__section {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.akpp-akpp-page h2,
.akpp-cvt-page h2,
.akpp-dsg-page h2,
.akpp-powershift-page h2,
.akpp-gidrobloka-page h2 {
  max-width: 42rem;
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-align: center;
}

.akpp-akpp-price-row,
.akpp-akpp-costs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.akpp-akpp-price-row {
  max-width: 34rem;
  margin: 0 0 1.5rem;
}

.akpp-powershift-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
}

.akpp-powershift-hero__copy {
  max-width: 42rem;
}

.akpp-powershift-hero__copy .akpp-lead {
  margin: 1.25rem 0 0;
}

.akpp-powershift-hero__actions .akpp-akpp-price-row {
  margin: 0 0 1rem;
}

.akpp-powershift-ford p {
  max-width: 52rem;
  margin: 1rem 0 0;
  line-height: 1.55;
}

.akpp-gidrobloka-page .akpp-cvt-hero__photo {
  aspect-ratio: 4 / 3;
}

.akpp-gidrobloka-page .akpp-cvt-hero__photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.akpp-hydroblock-tech-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.akpp-hydroblock-tech-photos .akpp-cvt-work__photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 0.75rem;
}

.akpp-hydroblock-tech-photos .akpp-cvt-work__photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.akpp-hydroblock-tech-photos .akpp-hydroblock-tech-photo--landscape img {
  object-fit: contain;
}

.akpp-gidrobloka-mechatronics p {
  max-width: 52rem;
  margin: 1rem 0 0;
  line-height: 1.55;
}

.akpp-gidrobloka-mechatronics__link {
  font-weight: 600;
}

.akpp-gidrobloka-mechatronics__link a {
  color: inherit;
}

.akpp-akpp-price-row p,
.akpp-akpp-costs p {
  display: flex;
  min-height: 7.5rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid rgb(23 32 42 / 12%);
  border-radius: 0.75rem;
  background: #fff;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.akpp-akpp-price-row span,
.akpp-akpp-costs span {
  color: var(--akpp-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.akpp-akpp-price-row strong,
.akpp-akpp-costs strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--akpp-ink);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.1;
}

.akpp-akpp-price-row small,
.akpp-akpp-costs small {
  display: block;
  margin-top: 0.45rem;
  color: var(--akpp-muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.akpp-akpp-symptoms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.akpp-akpp-symptoms li {
  padding: 0.8rem 0.85rem;
  border-radius: 0.7rem;
  background: #fff;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.akpp-akpp-note {
  max-width: 52rem;
  margin: 1.25rem 0 0;
  color: var(--akpp-muted);
  line-height: 1.55;
}

.akpp-akpp-repair-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.akpp-akpp-repair-section > h2 {
  text-align: center;
}

.akpp-akpp-repair-grid article {
  padding: 1.15rem;
  border: 1px solid rgb(23 32 42 / 11%);
  border-radius: 0.75rem;
  background: #fff;
  text-align: center;
}

.akpp-akpp-repair-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.akpp-akpp-repair-photos .akpp-akpp-repair-photo {
  display: block;
  aspect-ratio: 4 / 3;
}

.akpp-akpp-repair-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.akpp-akpp-repair-photos img:first-child {
  background: var(--akpp-surface);
  object-fit: contain;
}

.akpp-akpp-repair-grid h3,
.akpp-akpp-capital-callout h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  text-align: center;
}

.akpp-akpp-repair-grid p,
.akpp-akpp-capital-callout p {
  margin: 0.6rem 0 0;
  color: var(--akpp-muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.akpp-akpp-capital-callout {
  max-width: 54rem;
  margin-top: 1rem;
  padding: 1.25rem;
  border-left: 0.3rem solid var(--akpp-accent);
  border-radius: 0 0.75rem 0.75rem 0;
  background: var(--akpp-surface);
}

.akpp-akpp-costs {
  max-width: 44rem;
  margin-top: 1.5rem;
}

.akpp-akpp-costs p {
  min-height: 8rem;
}

.akpp-akpp-service-link {
  margin: 1.25rem 0 0;
  font-weight: 600;
}

.akpp-akpp-service-link a {
  color: inherit;
}

.akpp-akpp-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  counter-reset: repair-step;
}

.akpp-akpp-steps li {
  min-height: 6.25rem;
  padding: 1rem;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 0.75rem;
  counter-increment: repair-step;
  font-weight: 700;
  line-height: 1.3;
}

.akpp-akpp-steps li::before {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--akpp-accent);
  content: '0' counter(repair-step);
  font-size: 0.85rem;
}

.akpp-akpp-final-cta {
  background: var(--akpp-surface);
  text-align: center;
}

.akpp-akpp-final-cta > * {
  max-width: 42rem;
  margin-right: auto !important;
  margin-left: auto !important;
}

.akpp-akpp-final-cta__title {
  margin-top: 0.4rem !important;
  margin-bottom: 0.7rem !important;
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.akpp-akpp-final-cta .akpp-cvt-hero__button {
  margin-top: 1rem !important;
}

.akpp-akpp-page .akpp-cvt-hero__photo {
  aspect-ratio: 5 / 4;
}

.akpp-akpp-page .akpp-cvt-hero__photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 50% 8%;
}

.akpp-akpp-page .akpp-cvt-work__photo {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.akpp-akpp-page .akpp-cvt-work__photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.akpp-cvt-page .akpp-cvt-hero__photo {
  aspect-ratio: 5 / 4;
}

.akpp-cvt-page .akpp-cvt-hero__photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 50% 62%;
}

.akpp-cvt-page .akpp-akpp-repair-photos img,
.akpp-cvt-page .akpp-akpp-repair-photos img:first-child {
  background: transparent;
  object-fit: cover;
  object-position: 50% 50%;
}

.akpp-cvt-page .akpp-akpp-repair-photos > div {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 0.75rem;
}

.akpp-cvt-page .akpp-akpp-repair-photos > div > a {
  display: block;
  height: 100%;
}

.akpp-cvt-page .akpp-cvt-work__photo {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.akpp-cvt-page .akpp-cvt-work__photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.akpp-cvt-brands p {
  max-width: 52rem;
  margin: 1rem 0 0;
  line-height: 1.55;
}

.akpp-dsg-page .akpp-cvt-hero__photo {
  aspect-ratio: 4 / 3;
}

.akpp-dsg-page .akpp-cvt-hero__photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 50% 50%;
}

.akpp-dsg-tech-photo {
  display: block;
  max-width: 42rem;
  margin-top: 0.75rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  background: var(--akpp-surface);
}

.akpp-dsg-tech-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.akpp-dsg-page .akpp-cvt-work__photo {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.akpp-dsg-page .akpp-cvt-work__photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.akpp-dsg-types p {
  max-width: 52rem;
  margin: 1rem 0 0;
  line-height: 1.55;
}

.akpp-dsg-types ul {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.akpp-dsg-types li {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgb(23 32 42 / 14%);
  border-radius: 999px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

@media (max-width: 700px) {
  .akpp-akpp-page .akpp-service-page__hero,
  .akpp-akpp-page .akpp-service-page__section,
  .akpp-cvt-page .akpp-service-page__hero,
  .akpp-cvt-page .akpp-service-page__section,
  .akpp-dsg-page .akpp-service-page__hero,
  .akpp-dsg-page .akpp-service-page__section,
  .akpp-powershift-page .akpp-service-page__hero,
  .akpp-powershift-page .akpp-service-page__section,
  .akpp-gidrobloka-page .akpp-service-page__hero,
  .akpp-gidrobloka-page .akpp-service-page__section {
    padding-block: 2.5rem;
  }

  .akpp-akpp-price-row,
  .akpp-akpp-costs,
  .akpp-akpp-symptoms,
  .akpp-akpp-repair-grid,
  .akpp-akpp-steps {
    grid-template-columns: 1fr;
  }

  .akpp-akpp-price-row p,
  .akpp-akpp-costs p,
  .akpp-akpp-steps li {
    min-height: auto;
  }

  .akpp-akpp-symptoms {
    gap: 0.5rem;
  }

  .akpp-akpp-steps {
    gap: 0.5rem;
  }

  .akpp-akpp-steps li {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    align-items: center;
    padding: 0.85rem 1rem;
  }

  .akpp-akpp-steps li::before {
    margin: 0;
  }

  .akpp-cvt-page .akpp-cvt-hero__photo {
    order: 0;
  }

  .akpp-dsg-page .akpp-cvt-hero__photo {
    order: 0;
  }

  .akpp-gidrobloka-page .akpp-cvt-hero__photo {
    order: 0;
  }

  .akpp-powershift-hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
