.product-card.automation-page {
  padding-top: 0;
  padding-bottom: 24px;
}

.product-card.automation-page .title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product-card.automation-page .title-section {
  margin-bottom: 12px;
}

.product-card.automation-page .title-section .p16_600 {
  font-size: 11px;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.product-card.automation-page .automation-page__advantages {
  max-width: 1241px;
  margin-top: 40px;
}

.product-card.automation-page .automation-page__advantages-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  grid-template-areas:
    "top image"
    "bottom image";
  column-gap: 56px;
  row-gap: 42px;
  align-items: start;
}

.product-card.automation-page .automation-page__advantages-top {
  grid-area: top;
}

.product-card.automation-page .automation-page__advantages-image {
  grid-area: image;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card.automation-page .automation-page__advantages-bottom {
  grid-area: bottom;
}

.product-card.automation-page .automation-page__advantages-top .item + .item,
.product-card.automation-page .automation-page__advantages-bottom .item + .item {
  margin-top: 22px;
}

.product-card.automation-page .automation-page__advantages .item .h4_24_600 {
  margin-bottom: 10px;
  color: #0b1f35;
  text-align: left;
}

.product-card.automation-page .automation-page__advantages .item .p16_500 {
  margin: 0;
  padding: 0;
  color: #0b1f35;
  line-height: 1.55;
  text-align: left;
}

.product-card.automation-page .automation-page__advantages-image .img-box {
  width: 100%;
}

.product-card.automation-page .automation-page__advantages-image img {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.automation-models {
  max-width: 1241px;
  margin: 48px auto 0;
  padding-bottom: 20px;
}

.automation-model + .automation-model {
  margin-top: 72px;
}

.automation-model {
  width: 100%;
}

.automation-model__top {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  grid-template-areas:
    "title title"
    "image main";
  column-gap: 56px;
  row-gap: 24px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

.automation-model__title {
  grid-area: title;
  margin: 0 0 6px 0;
  text-align: left;
}

.automation-model__image {
  grid-area: image;
  width: 100%;
  max-width: 420px;
}

.automation-model__image img {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.automation-model__main {
  grid-area: main;
  min-width: 0;
  padding-top: 6px;
}

.automation-model__desc {
  max-width: 920px;
  margin: 0 0 28px 0;
  padding-bottom: 0;
  line-height: 1.6;
  text-align: left;
}

.automation-model__bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.automation-model__price-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.automation-model__price-label {
  padding-bottom: 0;
}

.automation-model__price {
  margin: 0;
}

.automation-model__bottom .button {
  min-width: 230px;
  padding: 14px 34px;
  border-radius: 10px;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.automation-model__bottom .button:focus,
.automation-model__bottom .button:focus-visible,
.automation-model__bottom .button:active {
  outline: none;
  box-shadow: none;
}

.automation-model__mobile-specs-btn {
  display: none;
  background: transparent;
  border: 1px solid #2f466f;
  color: #0b1f35;
}

.automation-model__mobile-specs-btn:hover,
.automation-model__mobile-specs-btn:focus,
.automation-model__mobile-specs-btn:focus-visible,
.automation-model__mobile-specs-btn:active {
  background: #4d6696;
  border-color: #4d6696;
  color: #ffffff;
  outline: none;
  box-shadow: none;
}

.automation-model__consult-btn {
  background: transparent;
  border: 1px solid #2f466f;
  color: #0b1f35;
}

.automation-model__consult-btn:hover,
.automation-model__consult-btn:focus,
.automation-model__consult-btn:focus-visible,
.automation-model__consult-btn:active {
  background: #4d6696;
  border-color: #4d6696;
  color: #ffffff;
  outline: none;
  box-shadow: none;
}

.automation-model__toggle {
  width: 100%;
  max-width: 1080px;
  margin: 28px auto 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #e6eef2;
  border: 1px solid rgba(11, 31, 53, 0.08);
  border-radius: 10px;
  cursor: pointer;
  color: #0b1f35;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.automation-model__toggle:hover,
.automation-model__toggle:focus,
.automation-model__toggle:focus-visible,
.automation-model__toggle:active {
  background: #dde8ed;
  border-color: rgba(11, 31, 53, 0.12);
  outline: none;
  box-shadow: none;
}

.automation-model__toggle-text {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: #0b1f35;
}

.automation-model__toggle-icon {
  position: relative;
  width: 18px;
  height: 12px;
  flex: 0 0 18px;
}

.automation-model__toggle-icon::before,
.automation-model__toggle-icon::after,
.automation-model__collapse-icon::before,
.automation-model__collapse-icon::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 10px;
  height: 2px;
  background: #0b1f35;
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.automation-model__toggle-icon::before {
  left: 0;
  transform: rotate(45deg);
}

.automation-model__toggle-icon::after {
  right: 0;
  transform: rotate(-45deg);
}

.automation-model.is-open .automation-model__toggle-icon::before {
  transform: rotate(-45deg);
}

.automation-model.is-open .automation-model__toggle-icon::after {
  transform: rotate(45deg);
}

.automation-model__specs-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 24px;
}

.automation-model__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.automation-model__spec {
  display: grid;
  grid-template-columns: minmax(260px, 42%) minmax(0, 1fr);
  align-items: center;
  background: #e6eef2;
  border-radius: 8px;
  overflow: hidden;
}

.automation-model__spec span {
  padding: 12px 16px;
  color: #0b1f35;
  line-height: 1.5;
}

.automation-model__spec span:first-child {
  font-weight: 700;
}

.automation-model__spec span:last-child {
  border-left: 1px solid rgba(11, 31, 53, 0.08);
}

.automation-model__collapse {
  display: none;
  width: 100%;
  margin-top: 16px;
  padding: 14px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #e6eef2;
  border: 1px solid rgba(11, 31, 53, 0.08);
  border-radius: 10px;
  cursor: pointer;
  color: #0b1f35;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
}

.automation-model__collapse:focus,
.automation-model__collapse:focus-visible,
.automation-model__collapse:active {
  outline: none;
  box-shadow: none;
}

.automation-model__collapse-text {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: #0b1f35;
}

.automation-model__collapse-icon {
  position: relative;
  width: 18px;
  height: 12px;
  flex: 0 0 18px;
}

.automation-model__collapse-icon::before {
  left: 0;
  transform: rotate(-45deg);
}

.automation-model__collapse-icon::after {
  right: 0;
  transform: rotate(45deg);
}

.vorota-kalitki-head {
  max-width: 1241px;
  margin: 54px auto 0;
  text-align: center;
}

.vorota-kalitki-catalog {
  max-width: 1241px;
  margin: 14px auto 0;
  padding-bottom: 20px;
}

.vorota-kalitki-catalog .item {
  border-radius: 18px;
  background: #e6eef2;
  padding-top: 25px;
  transition: .3s;
}

.vorota-kalitki-catalog .item:hover {
  transform: scale(.98);
}

.vorota-kalitki-catalog .item img {
  display: block;
  width: 100%;
  border-radius: 12px 12px 0 0;
}

.vorota-kalitki-catalog .item h2 {
  padding: 15px 15px 0 15px;
  color: #0b1f35;
  text-align: center;
}

.vorota-kalitki-catalog .button-box {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 15px;
  flex-wrap: wrap;
}

.vorota-kalitki-catalog .button3 {
  min-width: 180px;
  padding: 12px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #2f466f;
  border-radius: 10px;
  color: #0b1f35;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.vorota-kalitki-catalog .button3:hover,
.vorota-kalitki-catalog .button3:focus,
.vorota-kalitki-catalog .button3:focus-visible,
.vorota-kalitki-catalog .button3:active {
  background: #4d6696;
  border-color: #4d6696;
  color: #ffffff;
  outline: none;
  box-shadow: none;
}

.automation-specs-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.automation-specs-modal.is-open {
  display: block;
}

.automation-specs-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 53, 0.45);
}

.automation-specs-modal__dialog {
  position: relative;
  width: calc(100% - 24px);
  max-width: 720px;
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(11, 31, 53, 0.18);
}

.automation-specs-modal__body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(100vh - 40px);
}

.automation-specs-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #0b1f35;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  transition: transform 0.25s ease, color 0.25s ease;
}

.automation-specs-modal__close:focus,
.automation-specs-modal__close:focus-visible,
.automation-specs-modal__close:active {
  outline: none;
  box-shadow: none;
}

.automation-specs-modal__close span {
  display: inline-block;
  transition: transform 0.25s ease, color 0.25s ease;
}

.automation-specs-modal__close:hover span,
.automation-specs-modal__close:focus span,
.automation-specs-modal__close:focus-visible span {
  transform: rotate(90deg) scale(1.08);
  color: #4d6696;
}

.automation-specs-modal__title {
  margin: 0 40px 20px 0;
  color: #0b1f35;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.automation-specs-modal__content .automation-model__specs {
  grid-template-columns: 1fr;
  gap: 8px;
}

.automation-specs-modal__content .automation-model__spec {
  grid-template-columns: minmax(180px, 46%) minmax(0, 1fr);
}

@media screen and (max-width: 1199px) {
  .automation-model__top {
    grid-template-columns: 340px minmax(0, 1fr);
    max-width: 940px;
    column-gap: 40px;
  }

  .automation-model__image,
  .automation-model__image img {
    max-width: 340px;
  }

  .automation-model__toggle,
  .automation-model__specs-wrap {
    max-width: 940px;
  }
}

@media screen and (max-width: 991px) {
  .product-card.automation-page .automation-page__advantages-layout {
    grid-template-columns: 1fr 420px;
    column-gap: 28px;
    row-gap: 30px;
  }

  .product-card.automation-page .automation-page__advantages-image img {
    max-width: 420px;
  }

  .automation-model__top {
    grid-template-columns: 280px minmax(0, 1fr);
    max-width: 780px;
    column-gap: 28px;
  }

  .automation-model__image,
  .automation-model__image img {
    max-width: 280px;
  }

  .automation-model__specs {
    grid-template-columns: 1fr;
  }

  .vorota-kalitki-head {
    margin-top: 42px;
  }

  .vorota-kalitki-catalog {
    margin-top: 12px;
  }
}

@media screen and (max-width: 767px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }

  button,
  a,
  input,
  textarea,
  select {
    -webkit-tap-highlight-color: transparent;
  }

  .product-card.automation-page {
    padding-bottom: 18px;
  }

  .product-card.automation-page .title-section .p16_600 {
    font-size: 10px;
    letter-spacing: 0.22em;
  }

  .product-card.automation-page .automation-page__advantages {
    margin-top: 28px;
  }

  .product-card.automation-page .automation-page__advantages-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "image"
      "bottom";
    row-gap: 22px;
  }

  .product-card.automation-page .automation-page__advantages-image img {
    max-width: 320px;
  }

  .automation-models {
    margin-top: 32px;
    padding-bottom: 10px;
  }

  .automation-model + .automation-model {
    margin-top: 48px;
  }

  .automation-model__top {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "image"
      "main";
    row-gap: 18px;
    max-width: 100%;
  }

  .automation-model__title {
    margin: 0;
    text-align: center;
  }

  .automation-model__image {
    max-width: 320px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .automation-model__image img {
    max-width: 320px;
    margin: 0 auto;
  }

  .automation-model__main {
    display: flex;
    flex-direction: column;
    padding-top: 0;
  }

  .automation-model__desc {
    margin: 0 0 18px 0;
    text-align: left;
  }

  .automation-model__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .automation-model__price-box {
    justify-content: flex-start;
  }

  .automation-model__bottom .button {
    width: 100%;
    max-width: 320px;
    min-width: 0;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    box-shadow: none;
  }

  .automation-model__bottom .button:focus,
  .automation-model__bottom .button:focus-visible,
  .automation-model__bottom .button:active {
    outline: none;
    box-shadow: none;
  }

  .automation-model__mobile-specs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .automation-model__consult-btn {
    background: #4d6696;
    border-color: #4d6696;
    color: #ffffff;
  }

  .automation-model__consult-btn:hover,
  .automation-model__consult-btn:focus,
  .automation-model__consult-btn:focus-visible,
  .automation-model__consult-btn:active {
    background: #2f466f;
    border-color: #2f466f;
    color: #ffffff;
  }

  .automation-model__toggle,
  .automation-model__specs-wrap {
    display: none;
  }

  .vorota-kalitki-head {
    margin-top: 30px;
  }

  .vorota-kalitki-catalog {
    margin-top: 8px;
  }

  .vorota-kalitki-catalog .item {
    padding-top: 16px;
  }

  .vorota-kalitki-catalog .item img {
    height: auto;
    object-fit: contain;
  }

  .vorota-kalitki-catalog .item h2 {
    padding: 10px 14px 0 14px;
    font-size: 20px;
    line-height: 1.2;
  }

  .vorota-kalitki-catalog .button-box {
    gap: 10px;
    padding: 12px 14px 14px;
  }

  .vorota-kalitki-catalog .button3 {
    min-width: 0;
    width: calc(50% - 5px);
    padding: 12px 16px;
  }

  .automation-specs-modal__dialog {
    width: calc(100% - 16px);
    margin: 8px auto;
    max-height: calc(100vh - 16px);
    border-radius: 14px;
  }

  .automation-specs-modal__body {
    padding: 18px 8px 12px;
    max-height: calc(100vh - 16px);
  }

  .automation-specs-modal__title {
    margin-right: 34px;
    font-size: 20px;
  }

  .automation-specs-modal__content .automation-model__specs {
    gap: 6px;
  }

  .automation-specs-modal__content .automation-model__spec {
    display: block;
    border-radius: 6px;
    overflow: hidden;
  }

  .automation-specs-modal__content .automation-model__spec span {
    display: block;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
  }

  .automation-specs-modal__content .automation-model__spec span:first-child {
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid rgba(11, 31, 53, 0.08);
  }

  .automation-specs-modal__content .automation-model__spec span:last-child {
    border-left: none;
    border-top: none;
  }
}