h1 {
  font-size: 48px;
  line-height: 60px;
}

body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

h2 {
  font-weight: 600;
  font-size: 44px;
  line-height: 60px;
  margin-bottom: 12px;
  color: rgba(6, 17, 80, 1);
}

.content ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0px;
}

.content ul li {
  position: relative;
  font-size: 16px;
  line-height: 26px;
  padding-left: 29px;
  font-weight: 400;
}

.content ul li::after {
  content: "";
  width: 20px;
  height: 20px;
  background: url(../img/Icon.svg);
  border-radius: 100%;
  position: absolute;
  top: 1px;
  left: 0;
  background-repeat: no-repeat;
  background-size: contain;
}

.mg-150 {
  margin: 150px 0px;
}

.mg-30 {
  margin: 30px 0px;
}

.over-link {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  /* поверх позиционированного содержимого карточки, чтобы кликалась вся площадь */
  z-index: 2;
}

/* Кнопки внутри карточек с over-link — выше перекрывающей ссылки,
   чтобы сохранялся их собственный ховер */
.related-card .btn,
.usl-item .btn {
  position: relative;
  z-index: 3;
}


@media(max-width: 768px) {
  h2 {
    font-size: 29px;
    line-height: 32px;
  }

  .mg-150 {
    margin: 80px 0px;
  }

  .content ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0px;
  }
}

html {
  scroll-behavior: smooth;
  /* шапка (72px) + якорное меню (56px) + отступ */
  scroll-padding-top: 145px;
}


main {
  min-height: calc(100vh - 268px);
}

.wrapper {
  /* не 100vw: vw включает ширину скроллбара и даёт боковой скролл */
  width: 100%;
  display: flex;
  flex-direction: column;
}

p {
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: rgba(77, 84, 116, 1);
}

._container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 15px;
  box-sizing: content-box;
}

._container-h {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0px 15px;
  box-sizing: content-box;
}

h1 {
  font-weight: 600;
  font-size: 48px;
  line-height: 60px;
  color: rgba(255, 255, 255, 1);
}

.banner-content-dop ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.banner-content-dop ul li {
  padding-left: 18px;
  position: relative;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: rgba(223, 246, 255, 1);
}

.banner-content-dop ul li:after {
  position: absolute;
  content: '';
  background: url(../img/Icon.svg);
  top: 3px;
  left: 0;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-size: contain;
}

/* banner */

.banner {
  position: relative;
  background-color: rgba(5, 19, 103, 1);
  overflow: hidden;
}

.banner ._container {
  position: relative;
  z-index: 1;
}

/* Хлебные крошки внутри тёмного баннера (страница «Услуги» и т.п.).
   Селекторы с #breadcrumbs — чтобы перебить базовые светлые стили крошек */
.banner__breadcrumbs {
  padding-top: 24px;
}

.banner__breadcrumbs #breadcrumbs {
  font-size: 13px;
  line-height: 20px;
  color: rgba(157, 165, 200, 1);
}

.banner__breadcrumbs #breadcrumbs a {
  color: rgba(223, 246, 255, 1);
  transition: color 0.3s;
}

.banner__breadcrumbs #breadcrumbs a:hover {
  color: rgba(255, 199, 0, 1);
}

.banner__breadcrumbs #breadcrumbs .breadcrumb_last {
  color: rgba(255, 255, 255, 1);
}

.banner__body {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 33px;
}

.banner__content {
  max-width: 551px;
  width: 100%;
}

.banner__img,
.banner__img img {
  max-width: 551px;
  width: 100%;
}

/* фото прижато к нижней границе баннера */
.banner__img {
  display: flex;
  align-items: flex-end;
  position: relative;
}

/* постоянный декор за фото (back.svg), отцентрирован по блоку */
.banner__img::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: url(../img/back.svg) no-repeat center;
  background-size: contain;
  pointer-events: none;
}

.banner__img img {
  display: block;
  height: auto;
  /* фото поверх декоративной подложки */
  position: relative;
  z-index: 1;
}

.banner__content {
  margin-top: 110px;
  margin-bottom: 60px;
}

.banner__content h1 {
  margin-bottom: 32px;
}

.banner__content p {
  font-size: 16px;
  line-height: 26px;
  color: rgba(223, 246, 255, 1);
  max-width: 438px;
  font-weight: 300;
}

.banner__img {
  position: relative;
}

.banner-content-dop {
  position: absolute;
  bottom: 20px;
  right: -22px;
  box-shadow: 0px 4px 50px 0px rgba(2, 6, 27, 0.2);
  background: rgba(6, 17, 80, 1);
  border-radius: 8px;
  padding: 24px;
  max-width: 234px;
  width: 100%;
  z-index: 2;
}

.banner-content-dop__title {
  font-weight: 600;
  font-size: 18px;
  line-height: 30px;
  color: rgba(255, 255, 255, 1);
}

.banner-content-dop a {
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  height: 36px;
  display: inline-block;
  border-radius: 4px;
  transition: .3s ease;
}

.banner-content-dop a:hover {
  background: rgba(255, 255, 255, 0.3);
}

.banner-content-dop ul {
  margin: 12px 0px 16px 0px;
}

.line {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 18px;
}

.line-body {
  background-color: rgba(5, 19, 103, 1);
}

/* banner form */

.banner__form {
  display: flex;
  align-items: center;
  gap: 37px;
  padding: 56px 0px;
  flex-direction: column;
}

.banner__form-title {
  font-weight: 600;
  font-size: 28px;
  line-height: 100%;
  text-align: center;

  color: rgba(255, 255, 255, 1);
}

.banner__form .wpcf7 {
  flex: 1 1 auto;
}

.banner__form br {
  display: none;
}

.banner__form .wpcf7-form p {
  display: flex;
  gap: 16px;
}

.banner__form .wpcf7-form-control-wrap {
  flex: 1 1 auto;
}

.banner__form input:not([type="submit"]) {
  height: 48px;
  width: 100%;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(50px);
  padding: 15px;
  color: white;
}

.banner__form input::placeholder {
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.5);
}

.banner__form input[type="submit"] {
  min-width: 200px;
  flex-shrink: 0;
}

/* banner adaptive */

@media (max-width: 1000px) {
  .banner__content {
    margin-top: 60px;
    margin-bottom: 40px;
  }

  .banner__content h1 {
    font-size: 36px;
    line-height: 46px;
  }
}

@media (max-width: 768px) {
  .banner__body {
    flex-direction: column;
    gap: 0;
  }

  .banner__content {
    max-width: 100%;
    margin-top: 40px;
    margin-bottom: 0;
  }

  .banner__content h1 {
    font-size: 29px;
    line-height: 38px;
    margin-bottom: 20px;
  }

  .banner__content p {
    max-width: 100%;
    font-size: 14px;
    line-height: 22px;
  }

  .banner__img {
    max-width: 100%;
    margin-top: 30px;
  }

  .banner__img img {
    max-width: 100%;
  }

  .banner-content-dop {
    right: 0;
    bottom: 10px;
    padding: 16px;
  }

  .banner-content-dop__title {
    font-size: 16px;
    line-height: 24px;
  }

  .banner__form {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 24px 0px 40px;
  }

  .banner__form-title {
    text-align: center;
    font-size: 18px;
    line-height: 24px;
  }

  .banner__form .wpcf7-form p {
    flex-direction: column;
  }

  .banner__form input[type="submit"] {
    min-width: 100%;
  }
}

/* footer  */



.footer {
  padding: 100px 0px;
  background-color: #0A0E27;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 264px;
}

.footer-logo p {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #DFF6FFB2;
  opacity: 0.7;
}

.footer__body {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.footer__info-body {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}

.footer-maps a {
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  color: rgba(223, 246, 255, 0.7);
}

.footer-tel {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.footer-tel-img {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.footer-tel-img img {
  width: 18px;
  height: 18px;
}

.footer-tel a {
  font-weight: 600;
  font-size: 14px;
  line-height: 16px;
  color: rgba(223, 246, 255, 0.7);
}

.footer-mes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-inf-text {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: rgba(223, 246, 255, 0.7);
  text-align: right;
}

.footer-infos {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  width: 100%;
}

.footer-maps a,
.footer-tel a,
.footer-mes__body a {
  transition: .3s ease;
}

.footer-maps a:hover,
.footer-tel a:hover {
  text-decoration: underline;
}

.footer-mes__body a:hover {
  opacity: 0.6;
}

.footer-mes__body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.footer-mes__body a img {
  width: 24px;
  height: 24px;
}

@media(max-width: 900px) {
  .footer__body {
    flex-direction: column;
  }

  .footer-infos {
    max-width: 100%;
  }
}

@media(max-width: 700px) {
  .footer__info-body {
    flex-wrap: wrap;
  }

  .footer {
    padding: 50px 0px;
  }

  .footer-logo img {
    width: 70%;
  }
}

/* call  */

.call__body {
  border-radius: 8px;
  background-color: rgba(5, 19, 103, 1);
  padding: 100px 120px;
  position: relative;
  overflow: hidden;
}

.call__text-body h2 {
  color: white;
  margin-bottom: 0;
  font-size: 48px;
}

.call__text-body {
  max-width: 551px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 23px;
}

.call__text-body p {
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: white;
}

.over-call-img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
}

.call__text-body,
.call-form {
  z-index: 1;
  position: relative;
}

.call__body {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;

}

.call-form {
  max-width: 288px;
  position: relative;
}

.call-form br {
  display: none;
  height: 0;
}

.call-form input {
  height: 48px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(50px);
  padding: 15px;
  width: 100%;
  color: white;
  position: relative;
}

.call-form input::placeholder,
.call-form textarea::placeholder {
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.5);
}

.cn-fr-bd p {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.wpcf7-not-valid-tip {
  font-size: 8px;
  position: absolute;
  bottom: -3px;
  left: 15px;
}

.wpcf7-form-control-wrap {
  position: relative;
}

.wpcf7-form-control.wpcf7-submit {
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  color: rgba(6, 17, 80, 1);
  background-color: rgba(255, 199, 0, 1);
  transition: .3s ease;
  border: 1px solid rgba(255, 199, 0, 1);
}

.wpcf7-form-control.wpcf7-submit:hover {
  background-color: transparent;
  color: rgba(255, 199, 0, 1);
}

.wpcf7 .wpcf7-submit:disabled {
  opacity: 0.7;
  pointer-events: none;
}

.wpcf7-spinner {
  display: none;
}

.cn-fr-bd-acc .wpcf7-form-control-wrap .wpcf7-list-item {
  margin-left: 0;
}


.cn-fr-bd-acc .wpcf7-form-control-wrap .wpcf7-list-item label {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 15px;
}

.cn-fr-bd-acc .wpcf7-form-control-wrap .wpcf7-list-item label input {
  width: 14px;
  height: 14px;
}

.cn-fr-bd-acc .wpcf7-form-control-wrap .wpcf7-list-item label .wpcf7-list-item-label {
  color: white;
  font-size: 12px;
  line-height: 120%;
  width: 100%;
}

.cn-fr-bd-acc .wpcf7-form-control-wrap .wpcf7-list-item label .wpcf7-list-item-label a {
  color: rgba(255, 199, 0, 1);
}

.cn-fr-bd-acc .wpcf7-form-control-wrap .wpcf7-list-item label .wpcf7-list-item-label a:hover {
  text-decoration: underline;
}

@media(max-width: 1000px) {
  .call__body {
    padding: 50px;
  }
}

@media(max-width: 768px) {
  .call__body {
    padding: 20px;
    flex-direction: column;
  }

  .call__text-body {
    max-width: 100%;
    gap: 15px;
  }

  .call__text-body h2 {
    text-align: center;
    font-size: 29px;
  }

  .call__text-body p {
    font-size: 14px;
    text-align: center;
  }

  .call-form {
    max-width: 100%;
  }

  .call__text-body {
    margin-top: 0;
  }
}


/* faq  */

.faq-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 671px;
}

.faq-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: #fafbfc;
}

.faq-question span {
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: rgba(6, 17, 80, 1);
}

.faq-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s ease;
}

.faq-icon svg {
  width: 20px;
  height: 20px;
  stroke: rgba(77, 84, 116, 1);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  transition: all 0.3s ease;
}

.faq-item.active .faq-icon svg {
  transform: rotate(0deg);
}

.faq-item.active .faq-icon svg.plus-icon {
  display: none;
}

.faq-item.active .faq-icon svg.minus-icon {
  display: block;
}

.faq-item:not(.active) .faq-icon svg.minus-icon {
  display: none;
}

.faq-item:not(.active) .faq-icon svg.plus-icon {
  display: block;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0px 20px;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 20px;
  border-top: 1px solid rgba(240, 246, 252, 1);
}

.faq__acc-body {
  padding: 150px 0px;
  background-color: rgba(240, 246, 252, 1);
}

.faq__acc-body p {
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: rgba(77, 84, 116, 1);
  margin-bottom: 32px;
  max-width: 671px;
}

.faq__acc-body h2 {
  max-width: 671px;
}

.faq-answer p {
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: rgba(77, 84, 116, 1);
  margin-bottom: 0;
}

.faq__body {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  background-color: rgba(240, 246, 252, 1);
}

.form-faq {
  padding: 240px 0px 240px 118px;
  background-color: rgba(5, 21, 110, 1);
}

.faq-title-form {
  font-weight: 600;
  font-size: 28px;
  line-height: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 1);
  margin-bottom: 32px;
}

.form-faq .call-form {
  max-width: 293px;
}

.wpcf7-form-control-wrap textarea {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(50px);
  padding: 15px;
  border-radius: 4px;
  max-height: 112px;
  width: 100%;
  max-width: 100%;
}

.faq {
  position: relative;
  /* добавить */
  background-color: rgba(240, 246, 252, 1);
  /* левый цвет */
  overflow: hidden;
}

/* Тёмная полоса справа — продолжение фона формы до края экрана.
   Привязана к самой .form-faq, поэтому всегда совпадает с её правым краем
   при любой ширине окна (раньше была привязана к .faq и «плыла»). */
.form-faq::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 100vw;
  background-color: rgba(5, 21, 110, 1);
  /* тёмный цвет */
  z-index: 0;
}

/* Поднять содержимое над псевдоэлементом */
.faq__acc-body,
.form-faq {
  position: relative;
  z-index: 1;
}

@media(max-width: 1100px) {
  .form-faq {
    padding: 100px 0px 100px 20px;
  }

  .faq__acc-body {
    padding: 100px 0px;
  }
}

@media(max-width: 850px) {
  .faq__body {
    flex-direction: column;
  }

  .faq__acc-body {
    padding: 20px 0px;
  }

  .form-faq::before {
    display: none;
  }

  .form-faq {
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .form-faq .call-form {
    max-width: 100%;
  }
}

@media(max-width: 768px) {
  .faq-question {
    padding: 15px;
  }

  .faq-item.active .faq-answer {
    padding: 15px;
  }

  .faq-question span {
    font-size: 16px;
  }

  .faq__acc-body p {
    margin-bottom: 20px;
  }
}

/* step  */

.step__body h2 {
  text-align: center;
  margin-bottom: 16px;
}

.step__body p {
  text-align: center;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 20px;
  width: 100%;
  margin-top: 40px;
}

.step-item {
  border-radius: 8px;
  background-color: rgba(240, 246, 252, 1);
  padding: 16px;
  min-height: 132px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.step-item:before {
  content: '';
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  background: url(../img/cl.svg);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  border: 12px solid white;
  border-radius: 100%;
  width: 36px;
  height: 36px;
}

/* Стрелка между шагами (поток слева-направо внутри ряда) */
.step-item::after {
  content: '';
  position: absolute;
  right: -14px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid rgba(44, 30, 245, 1);
  border-right: 2px solid rgba(44, 30, 245, 1);
  transform: translateY(-50%) rotate(45deg);
  z-index: 1;
}

/* У последнего айтема в ряду стрелки нет */
.step-item:nth-child(3n)::after {
  display: none;
}

.step-num {
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 10%;
  text-align: center;
  text-transform: uppercase;
  color: rgba(44, 30, 245, 1);
}

.step-title {
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  text-align: center;
  color: rgba(6, 17, 80, 1);
}

@media(max-width: 900px) {
  .step-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }

  /* 2 колонки: стрелка у правого айтема ряда не нужна */
  .step-item:nth-child(3n)::after {
    display: block;
  }

  .step-item:nth-child(2n)::after {
    display: none;
  }
}

@media(max-width: 768px) {
  .step-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 50px;
  }

  .step-num {
    font-size: 10px;
  }

  .step-title {
    font-size: 14px;
  }

  /* 1 колонка: стрелки смотрят вниз */
  .step-item::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -20px;
    transform: translateX(-50%) rotate(135deg);
  }

  .step-item:nth-child(2n)::after,
  .step-item:nth-child(3n)::after {
    display: block;
  }

  /* кроме самого последнего шага */
  .step-item:last-child::after {
    display: none;
  }
}

/* ==========================================================================
   Страница «Отзывы» (page-rev) — перенесено из темы ioc
   ========================================================================== */

/* Кнопка */
.btn,
button,
input[type="submit"] {
  background-color: rgba(255, 199, 0, 1);
  border: 1px solid rgba(255, 199, 0, 1);
  height: 46px;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  color: rgba(6, 17, 80, 1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: .3s ease;
}

.btn:hover {
  background-color: transparent;
  color: rgba(255, 199, 0, 1);
}

/* Шапка страницы отзывов */
.page-body {
  margin-bottom: 60px;
}

.page-body h1 {
  color: #0F172B;
}

/* Текст обычной страницы (page.php) */
.page-content {
  margin-bottom: 150px;
}

@media(max-width: 768px) {
  .page-content {
    margin-bottom: 80px;
  }
}

.page-rev-up {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.page-rev-star {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

/* Рейтинги площадок (Яндекс / Google) */
.rev-ms {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 19px;
}

.rev-ms-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  border-radius: 44px;
  border: 1px solid #E3E5E9;
  padding: 13px 12px;
}

.rev-ms-item p {
  font-weight: 500;
  font-size: 16px;
  line-height: 140%;
  color: #16162F;
  margin: 0px 10px 0px 8px;
}

.rev-star {
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* Сетка карточек текстовых отзывов */
.comm-main-bd__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.comm-main-bd h2 {
  margin-bottom: 40px;
}

.comm-main-bd__body .slider-rev {
  min-height: auto;
}

/* Карточка отзыва */
.slider-rev {
  border-radius: 24px;
  background-color: #FAFAFA;
  padding: 30px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

.slider-rev-text {
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  color: #0F172B;
}

.sldier-rev-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.sldier-rev-info img {
  width: 42px;
  height: 42px;
  border-radius: 100%;
  object-fit: cover;
  min-width: 42px;
}

.sldier-rev-info-cn p {
  font-weight: 500;
  font-size: 14px;
  line-height: 140%;
  color: #0F172B;
}

.sldier-rev-info-cn span {
  font-weight: 400;
  font-size: 14px;
  line-height: 140%;
  color: #1856F9;
}

/* Кнопка «Показать ещё» */
.load-more-wrap {
  margin-top: 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.load-more-wrap button {
  margin: 0 auto;
  max-width: 285px;
  width: 100%;
}

/* ===== Форма отзыва ===== */
.body-form-comi {
  border-radius: 10px;
  padding: 60px 0px;
  text-align: center;
}

.form-row {
  display: flex;
  flex-direction: row;
  gap: 19px;
  margin-bottom: 14px;
}

.form-field {
  width: 100%;
}

.form-field input,
.review-form__message {
  border-radius: 6px;
  border: 1px solid rgba(1, 46, 117, 1);
  padding: 20px 18px;
  width: 100%;
  font-weight: 500;
  font-size: 16px;
  line-height: 140%;
  color: #007aff;
}

.review-form__message {
  min-height: 120px;
  max-height: 300px;
  width: 100%;
  resize: vertical;
}

.form-down-sub {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 18px;
}

.review-form__group {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}

.review-form__rating {
  font-weight: 400;
  font-size: 16px;
  line-height: 18.78px;
  color: rgba(6, 17, 80, 1);
}

.rating__group {
  overflow: hidden;
  width: 115px;
  margin: 0 auto;
}

.rating__star {
  display: none;
}

.rating__label {
  float: right;
  width: 22px;
  padding: 0;
  cursor: pointer;
  font-size: 26px;
  line-height: 25px;
  color: lightgrey;
  text-shadow: 1px 1px #bbb;
}

.rating__label:before {
  content: "\2605";
}

.rating-area:not(:checked)>input:checked~label {
  color: rgba(241, 105, 30, 1);
  text-shadow: 1px 1px #c60;
}

.rating-area:not(:checked)>label:hover,
.rating-area:not(:checked)>label:hover~label {
  color: rgba(241, 105, 30, 1);
}

.rating-area>input:checked+label:hover,
.rating-area>input:checked+label:hover~label,
.rating-area>input:checked~label:hover,
.rating-area>input:checked~label:hover~label,
.rating-area>label:hover~input:checked~label {
  color: rgba(241, 105, 30, 1);
  text-shadow: 1px 1px rgba(241, 105, 30, 1);
}

.rate-area>label:active {
  position: relative;
}

#add_review-success {
  display: none;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  color: #091428;
  font-size: 16px;
}

#add_review-success.show {
  display: flex;
}

/* Хлебные крошки (Yoast) */
.text__page-body {
  margin: 24px 0px;
}

#breadcrumbs {
  font-size: 13px;
  line-height: 20px;
  /* этот цвет наследуют разделители «»» между пунктами */
  color: rgba(171, 188, 205, 1);
}

#breadcrumbs a {
  color: rgba(77, 84, 116, 1);
  transition: color 0.3s;
}

#breadcrumbs a:hover {
  color: rgba(44, 30, 245, 1);
}

#breadcrumbs .breadcrumb_last {
  color: rgba(6, 17, 80, 1);
  font-weight: 500;
}

/* ===== Адаптив страницы отзывов ===== */
@media (max-width: 1050px) {
  .comm-main-bd__body {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1000px) {
  .rev-ms-item {
    padding: 8px 12px;
  }

  .rev-ms-item p {
    font-size: 14px;
    margin: 0px 7px 0px 5px;
  }
}

@media (max-width: 800px) {

  .rev-ms,
  .page-rev-up .btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .comm-main-bd__body {
    grid-template-columns: repeat(1, 1fr);
  }

  .comm-main-bd h2 {
    margin-bottom: 30px;
  }

  .page-body {
    margin-bottom: 30px;
  }

  .slider-rev {
    min-height: 397px;
  }

  .rev-star img {
    width: 14px;
    height: 14px;
  }

  .rev-ms-item-img {
    max-width: 20px;
    height: 19px;
  }

  .body-form-comi {
    padding: 20px 0px;
  }

  .form-row,
  .form-down-sub {
    flex-direction: column;
    gap: 16px;
  }

  .form-row {
    margin-top: 16px;
  }

  .review-form__group {
    flex-direction: column;
    gap: 0;
  }

  .btn-color {
    max-width: 100%;
  }
}

/* usl  */

.usl {
  padding: 150px 0px;
  background-color: rgba(5, 21, 110, 1);
}

.usl-inf h2,
.usl-inf p {
  color: white;
}

.usl__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  margin-top: 56px;
}

.usl-item {
  /* якорь для over-link: без него ссылка растягивается по всей сетке */
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 40px 16px;
  background-color: rgba(22, 37, 120, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-height: 400px;
  transition: .3s ease;
  cursor: pointer;
}

.usl-item:hover .btn {
  background-color: transparent;
  color: rgba(255, 199, 0, 1);
}

.usl__item-title {
  font-weight: 600;
  font-size: 24px;
  line-height: 36px;
  text-align: center;
  color: white;
  margin-bottom: 20px;
}

.usl-btn .btn {
  max-width: 124px;
  width: 100%;
  margin-top: 48px;
}

.usl__item-img {
  display: grid;
  place-items: center;
  position: relative;
}

.usl__item-img img {
  grid-area: 1 / 1;
  max-width: 212px;
  height: 113px;
  object-fit: contain;
  transition: opacity .3s ease;
}

/* текст выведен из потока (absolute) — не растягивает карточку,
   проявляется поверх картинки при наведении */
.usl__item-img p {
  position: relative;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  color: white;
  opacity: 0;
  transition: opacity .3s ease;
  display: none;
}

/* при наведении на карточку: картинка плавно исчезает, текст проявляется */
.usl-item:hover .usl__item-img img {
  opacity: 0;
  display: none;
}

.usl-item:hover .usl__item-img p {
  opacity: 1;
  display: flex;
}

/* У услуги нет текста (banner-text) — картинку при ховере не прячем */
.usl-item--no-text:hover .usl__item-img img {
  opacity: 1;
  display: block;
}

@media(max-width: 1100px) {
  .usl__content {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 30px;
  }
}

@media(max-width: 768px) {
  .usl__content {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 30px;
  }

  .usl-item {
    padding: 20px;
    min-height: 330px;
  }

  .usl {
    padding: 30px 0px;
    background-color: rgba(5, 21, 110, 1);
  }
}

@media(max-width: 650px) {
  .usl__content {
    grid-template-columns: repeat(1, 1fr);
    margin-top: 20px;
  }
}

/* adv */

.adv-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 56px;
}

.adv-info p,
.adv-info h2 {
  text-align: center;
}

.adv__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  width: 100%;
}

.adv__item {
  border-radius: 8px;
  padding: 24px;
  background-color: rgba(240, 246, 252, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  position: relative;
  cursor: pointer;
}

.adv__item-title {
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  text-align: center;
  color: rgba(6, 17, 80, 1);
}

.adv__item-img img {
  width: 76px;
  height: 87px;
  min-width: 76px;
  object-fit: contain;
}

.adv-over {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  /* иконка остаётся поверх всплывающей плашки */
  width: 20px;
  height: 20px;
  /* иконка рисуется маской, чтобы можно было задать точный цвет */
  background-color: #ABBCCD;
  -webkit-mask: url(../img/circle-information.svg) no-repeat center / contain;
  mask: url(../img/circle-information.svg) no-repeat center / contain;
  transition: background-color .3s ease;
  pointer-events: none;
}

/* исходную картинку прячем — цвет даёт маска выше */
.adv-over img {
  display: none;
}

/* Всплывающая плашка с текстом (поверх карточки) */
.adv__item-text {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background-color: rgba(5, 21, 110, 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 1;
  max-width: 100%;
  padding: 24px;
  top: 10px;
  height: fit-content;
  left: 10px;
  right: 35px;
}

.adv__item-text p {
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: #fff;
  text-align: left;
}

/* Показ плашки при наведении на всю карточку */
.adv__item:hover .adv__item-text {
  opacity: 1;
  pointer-events: auto;
}

/* Иконка «i» меняет цвет при наведении на карточку */
.adv__item:hover .adv-over {
  background-color: rgba(5, 19, 103, 1);
}

@media(max-width: 1000px) {
  .adv__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media(max-width: 768px) {
  .adv__grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .adv__item-text {
    padding: 10px;
  }

  .adv__item-text p {
    font-size: 12px;
  }

  .adv__item-title {
    font-size: 14px;
  }

  .adv__item-img img {
    width: 60px;
    height: 65px;
    min-width: 60px;
    object-fit: contain;
  }

  .adv-info {
    margin-bottom: 30px;
  }
}

/* call2  */

.call2 {
  background-color: rgba(5, 19, 103, 1);
  padding: 100px 0px;
  position: relative;
  overflow: hidden;
}

.call2 .call__body {
  background-color: transparent;
  padding: 0;
}

@media(max-width: 768px) {
  .call2 {
    padding: 20px 0px;
  }
}

/* ==========================================================================
   Страница записи (single.php)
   ========================================================================== */

.single-head {
  margin-bottom: 40px;
}

.single-head h1 {
  color: #0F172B;
  margin-bottom: 16px;
}

/* Мета-строка под h1: автор, время прочтения, просмотры */
.single-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}

.single-meta__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: rgba(77, 84, 116, 1);
}

.single-meta__item svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: rgba(44, 30, 245, 1);
}

.single-meta__author span {
  font-weight: 500;
  color: rgba(6, 17, 80, 1);
}

.single-content p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 28px;
}

.single-content h2 {
  font-size: 32px;
  line-height: 42px;
  margin: 40px 0px 16px 0px;
}

.single-content h3 {
  font-weight: 600;
  font-size: 24px;
  line-height: 34px;
  color: rgba(6, 17, 80, 1);
  margin: 32px 0px 12px 0px;
}

.single-content a {
  color: rgba(44, 30, 245, 1);
  text-decoration: underline;
  transition: .3s ease;
}

.single-content a:hover {
  text-decoration: none;
}

.single-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px auto;
}

/* Выравнивание картинок из редактора WP */
.single-content .alignleft {
  float: left;
  margin: 8px 24px 16px 0px;
}

.single-content .alignright {
  float: right;
  margin: 8px 0px 16px 24px;
}

.single-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Картинка с подписью (figure из редактора) */
.single-content figure {
  margin: 24px auto;
}

.single-content figure img {
  margin: 0px auto;
}

.single-content figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
  color: rgba(77, 84, 116, 1);
}

/* Строка кода в тексте */
.single-content code {
  padding: 2px 8px;
  border-radius: 4px;
  background-color: rgba(240, 246, 252, 1);
  border: 1px solid rgba(227, 229, 233, 1);
  font-family: Consolas, Menlo, monospace;
  font-size: 14px;
  color: rgba(6, 17, 80, 1);
}

.single-content blockquote {
  border-left: 4px solid rgba(255, 199, 0, 1);
  background-color: rgba(240, 246, 252, 1);
  border-radius: 0px 8px 8px 0px;
  padding: 20px 24px;
  margin: 24px 0px;
}

.single-content blockquote p {
  margin-bottom: 0;
}

.single-content ol {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0px;
  counter-reset: single-ol;
  list-style: none;
}

.single-content ol li {
  position: relative;
  font-size: 16px;
  line-height: 26px;
  padding-left: 32px;
  color: rgba(77, 84, 116, 1);
}

.single-content ol li::before {
  counter-increment: single-ol;
  content: counter(single-ol);
  position: absolute;
  top: 1px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 100%;
  background-color: rgba(5, 19, 103, 1);
  color: white;
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Вложенные списки */
.content ul ul,
.content ul ol,
.single-content ol ol,
.single-content ol ul {
  margin: 12px 0px 0px 0px;
  gap: 10px;
}

.content ul ul li,
.single-content ol ol li {
  font-size: 14px;
  line-height: 24px;
}

/* Маркер вложенного ul поменьше */
.content ul ul li::after {
  width: 14px;
  height: 14px;
  top: 4px;
}

/* Подпись автора в цитате */
.single-content blockquote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  line-height: 20px;
  color: rgba(6, 17, 80, 1);
}

.single-content blockquote a {
  color: rgba(44, 30, 245, 1);
}

/* Таблицы в контенте */
.single-content .wp-block-table {
  margin: 24px 0px;
  overflow-x: auto;
}

.single-content .wp-block-table table {
  margin: 0;
}

.single-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0px;
  font-size: 14px;
  line-height: 22px;
  color: rgba(77, 84, 116, 1);
}

.single-content table th {
  background-color: rgba(5, 19, 103, 1);
  color: white;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid rgba(5, 19, 103, 1);
}

.single-content table thead tr:first-child th:first-child {
  border-radius: 8px 0px 0px 0px;
}

.single-content table thead tr:first-child th:last-child {
  border-radius: 0px 8px 0px 0px;
}

.single-content table td {
  padding: 12px 16px;
  border: 1px solid rgba(227, 229, 233, 1);
  border-top: none;
  vertical-align: top;
}

.single-content table td+td,
.single-content table th+th {
  border-left: none;
}

.single-content table tbody tr:nth-child(even) td {
  background-color: rgba(240, 246, 252, 1);
}

.single-content table tbody tr:last-child td:first-child {
  border-radius: 0px 0px 0px 8px;
}

.single-content table tbody tr:last-child td:last-child {
  border-radius: 0px 0px 8px 0px;
}

@media(max-width: 768px) {
  .single-head {
    margin-bottom: 24px;
  }

  .single-head h1 {
    font-size: 30px;
    line-height: 38px;
  }

  .single-meta {
    gap: 8px 16px;
  }

  .single-meta__item {
    font-size: 12px;
  }

  .single-content p {
    font-size: 14px;
    line-height: 24px;
  }

  .single-content h2 {
    font-size: 24px;
    line-height: 30px;
    margin: 24px 0px 12px 0px;
  }

  .single-content h3 {
    font-size: 18px;
    line-height: 26px;
    margin: 20px 0px 10px 0px;
  }

  /* Таблица скроллится по горизонтали, не ломая страницу */
  .single-content table {
    display: block;
    overflow-x: auto;
  }

  .single-content table th,
  .single-content table td {
    padding: 10px 12px;
    font-size: 12px;
    line-height: 18px;
  }

  .single-content blockquote {
    padding: 15px 16px;
  }
}

/* Похожие статьи (слайдер swiper) */

.related h2 {
  margin-bottom: 40px;
}

.related__slider-wrap {
  position: relative;
}

.related-slider {
  overflow: hidden;
}

.related-slider .swiper-slide {
  height: auto;
}

.related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 8px;
  background-color: rgba(240, 246, 252, 1);
  overflow: hidden;
  transition: box-shadow .3s ease;
}

.related-card:hover {
  box-shadow: 0px 4px 16px rgba(2, 6, 27, 0.12);
}

.related-card:hover .btn {
  background-color: transparent;
  color: rgba(255, 199, 0, 1);
}

.related-card__img {
  width: 100%;
  height: 200px;
  background-color: rgba(5, 19, 103, 1);
}

.related-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Чтобы при драге слайдера мышкой браузер не начинал «тащить» ссылку/картинку */
.related-card .over-link,
.related-card__img img {
  -webkit-user-drag: none;
  user-select: none;
}

.related-card__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  gap: 24px;
  padding: 24px;
}

.related-card__title {
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  color: rgba(6, 17, 80, 1);
}

.related-card .btn {
  max-width: 140px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Стрелки слайдера */
.related-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 100%;
  background-color: white;
  border: 1px solid rgba(227, 229, 233, 1);
  box-shadow: 0px 4px 16px rgba(2, 6, 27, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  color: rgba(6, 17, 80, 1);
  transition: .3s ease;
}

.related-nav:hover {
  background-color: rgba(5, 19, 103, 1);
  color: white;
  border-color: rgba(5, 19, 103, 1);
}

.related-nav svg {
  width: 20px;
  height: 20px;
}

.related-prev,
.rev-prev,
.shots-prev {
  left: -16px;
}

.related-next,
.rev-next,
.shots-next {
  right: -16px;
}

.related-nav.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}

/* Точки пагинации */
.related-pagination.swiper-pagination,
.shots-pagination.swiper-pagination {
  position: static;
  margin-top: 32px;
}

.shots-pagination .swiper-pagination-bullet,
.related-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background-color: rgba(171, 188, 205, 1);
  opacity: 1;
  transition: .3s ease;
}

.shots-pagination .swiper-pagination-bullet-active,
.related-pagination .swiper-pagination-bullet-active {
  background-color: rgba(255, 199, 0, 1);
  width: 24px;
  border-radius: 4px;
}

@media(max-width: 768px) {
  .related h2 {
    margin-bottom: 24px;
  }

  .related-nav {
    display: none;
  }

  .related-card__img {
    height: 180px;
  }

  .related-card__content {
    padding: 16px;
    gap: 16px;
  }

  .related-card__title {
    font-size: 16px;
    line-height: 22px;
  }

  .related-pagination.swiper-pagination {
    margin-top: 20px;
  }
}

/* ==========================================================================
   Рубрика (archive.php): сетка статей 3 в ряд + текст рубрики снизу
   ========================================================================== */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Текст рубрики под сеткой */
.archive-desc {
  margin: 60px 0px 150px 0px;
}

@media(max-width: 1000px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 768px) {
  .archive-desc {
    margin: 40px 0px 80px 0px;
  }
}

@media(max-width: 650px) {
  .posts-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* ==========================================================================
   Страница «Контакты» (page-contacts): инфо слева + карта Яндекса справа
   ========================================================================== */

.contacts__body {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 150px;
}

/* Левый блок: контактная информация */
.contacts-info {
  max-width: 380px;
  width: 100%;
  flex-shrink: 0;
  border-radius: 8px;
  background-color: rgba(5, 19, 103, 1);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contacts-info__item {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

.contacts-info__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 199, 0, 1);
}

.contacts-info__icon svg {
  width: 20px;
  height: 20px;
}

.contacts-info__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contacts-info__label {
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(223, 246, 255, 0.7);
}

.contacts-info__content a,
.contacts-info__content p {
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: rgba(255, 255, 255, 1);
}

.contacts-info__content a {
  transition: .3s ease;
}

.contacts-info__content a:hover {
  color: rgba(255, 199, 0, 1);
}

/* Правый блок: карта */
.contacts-map {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(240, 246, 252, 1);
}

.contacts-map iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: block;
  border: 0;
}

@media(max-width: 900px) {
  .contacts__body {
    flex-direction: column;
    margin-bottom: 80px;
  }

  .contacts-info {
    max-width: 100%;
    padding: 24px 20px;
    gap: 20px;
  }

  .contacts-map iframe {
    min-height: 360px;
  }
}

/* ==========================================================================
   Страница кейса (single-cases.php)
   ========================================================================== */

/* Выжимка по кейсу: картинка слева, описание справа (без общей рамки) */
.case-sum {
  display: flex;
  flex-direction: row;
  gap: 40px;
  margin-bottom: 60px;
}

.case-sum__img {
  width: 440px;
  height: 440px;
  flex-shrink: 0;
  border-radius: 8px;
  background-color: #F0F6FC;
  overflow: hidden;
}

.case-sum__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-sum__info {
  width: 100%;
}

.case-sum__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
  margin-bottom: 32px;
}

.case-sum-item__label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  line-height: 24px;
  color: #051367;
  margin-bottom: 4px;
}

.case-sum-item p {
  font-size: 14px;
  line-height: 24px;
}

.case-sum-item a {
  font-size: 14px;
  line-height: 24px;
  color: rgba(44, 30, 245, 1);
  text-decoration: underline;
  transition: .3s ease;
}

.case-sum-item a:hover {
  text-decoration: none;
}

/* Стек технологий (кейсы по разработке): плашки */
.case-stack {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.case-stack span {
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: rgba(6, 17, 80, 1);
  border: 1px solid rgba(227, 229, 233, 1);
  border-radius: 4px;
  padding: 5px 10px;
  background-color: white;
}

/* ==========================================================================
   Блок «Тарифы»: 3 карточки, средняя выделена и крупнее остальных
   ========================================================================== */

.tarif-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tarif-info h2,
.tarif-info p {
  text-align: center;
}

/* Вертикальный паддинг даёт средней карточке место «выпирать» вверх и вниз.
   Средняя колонка фиксированные 448px — иначе 1fr (~390px) не даст
   .tarif-item--main дорасти до своего max-width */
.tarif__grid {
  display: grid;
  grid-template-columns: 376px 448px 376px;
  padding: 48px 0px;
  align-items: center;
  gap: 20px 0px;
}

.tarif-item {
  background-color: white;
  border: 1px solid rgba(227, 229, 233, 1);
  padding: 40px;
  display: flex;
  flex-direction: column;
  text-align: center;
  max-width: 376px;
  width: 100%;
  height: max-content;
  min-height: 500px;
  border-radius: 8px;
}

.tarif-item__title {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: rgba(6, 17, 80, 1);
  margin-bottom: 12px;
}

.tarif-item__text {
  font-size: 14px;
  line-height: 22px;
  max-width: 280px;
  margin: 0 auto 24px auto;
}

.tarif-item__price {
  font-weight: 700;
  font-size: 36px;
  line-height: 44px;
  color: rgba(255, 199, 0, 1);
  margin-bottom: 24px;
}

.tarif-item__price span {
  font-size: 22px;
}

.tarif-item .btn {
  width: 100%;
  margin-bottom: 32px;
}

/* Список возможностей: галочка — входит, крестик — не входит */
.tarif-feats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.tarif-feats li {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  line-height: 22px;
  color: rgba(77, 84, 116, 1);
}

.tarif-feats li::before {
  content: '\2713';
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  font-weight: 600;
  font-size: 14px;
  color: #27AE60;
  text-align: center;
}

.tarif-feats li.no {
  color: rgba(171, 188, 205, 1);
}

.tarif-feats li.no::before {
  content: '\2715';
  color: rgba(171, 188, 205, 1);
}

/* Средняя (выделенная) карточка */
.tarif-item--main {
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding: 58px 76px;
  border: none;
  border-radius: 8px;
  background-color: rgba(5, 19, 103, 1);
  box-shadow: 0px 4px 50px 0px rgba(2, 6, 27, 0.2);
  max-width: 448px;
  min-height: 520px;
}

.tarif-item__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  object-fit: cover;
  pointer-events: none;
}

.tarif-item--main>*:not(.tarif-item__bg) {
  position: relative;
  z-index: 1;
}

.tarif-item--main .tarif-item__title {
  color: white;
}

.tarif-item--main .tarif-item__text {
  color: rgba(223, 246, 255, 1);
}

.tarif-item--main .tarif-feats li {
  color: white;
}

.tarif-item--main .tarif-feats li.no {
  color: rgba(255, 255, 255, 0.5);
}

.tarif-item--main .tarif-feats li.no::before {
  color: rgba(255, 255, 255, 0.5);
}

@media(max-width: 1200px) {
  .tarif__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: flex-start;
  }

  .tarif-item {
    min-height: auto;
    height: 100%;
    max-width: 100%;
    padding: 30px;
  }
}

@media(max-width: 1000px) {
  .tarif__grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    padding: 20px 0px 0px 0px;
  }

  .tarif-item,
  .tarif-item:first-child,
  .tarif-item:last-child {
    border: 1px solid rgba(227, 229, 233, 1);
    border-radius: 8px;
  }

  .tarif-item--main {
    margin: 0;
    border: none;
    padding: 48px 40px;
  }
}

@media(max-width: 768px) {

  .tarif-item,
  .tarif-item--main {
    padding: 24px 20px;
  }

  .tarif-item__title {
    font-size: 20px;
    line-height: 26px;
  }

  .tarif-item__price {
    font-size: 30px;
    line-height: 38px;
    margin-bottom: 20px;
  }

  .tarif-item .btn {
    margin-bottom: 24px;
  }
}

/* ==========================================================================
   Блок «Отзывы» (block-rev): заголовок + кнопка, снизу слайдер карточек
   ========================================================================== */

.rev-block__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.rev-block__head h2 {
  margin-bottom: 0;
}

.rev-block__btn {
  max-width: 160px;
  width: 100%;
}

/* Длинные отзывы в слайдере обрезаем, полная версия — на странице отзывов */
.rev-slider .slider-rev-text {
  display: -webkit-box;
  -webkit-line-clamp: 10;
  line-clamp: 10;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media(max-width: 768px) {
  .rev-block__head {
    margin-bottom: 24px;
  }

  .rev-block__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .rev-block__btn {
    max-width: 100%;
  }
}

/* ==========================================================================
   Блок «Кейсы» (block-case): слайдер-витрина, один кейс на слайд
   ========================================================================== */

.case-block__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.case-block__head h2 {
  margin-bottom: 0;
}

/* Кнопка «Все услуги» с шевроном */
.case-block__all {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: white;
  background-color: rgba(5, 19, 103, 1);
  border-radius: 4px;
  padding: 12px 16px;
  transition: .3s ease;
  white-space: nowrap;
}

.case-block__all svg {
  width: 16px;
  height: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: 8px;
  box-sizing: content-box;
}

.case-block__all:hover {
  background-color: rgba(6, 17, 80, 1);
}

.case-slider {
  overflow: hidden;
}

.case-slider .swiper-slide {
  height: auto;
}

/* Панель кейса */
.case-slide {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 48px;
  height: 100%;
  border-radius: 8px;
  background-color: rgba(240, 246, 252, 1);
  padding: 48px;
}

/* Плашка с доменом в правом верхнем углу панели */
.case-slide__site {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 199, 0, 1);
  background-color: rgba(5, 19, 103, 1);
  border-radius: 4px;
  padding: 8px 16px;
  transition: .3s ease;
}

.case-slide__site:hover {
  background-color: rgba(6, 17, 80, 1);
}

.case-slide__img {
  max-width: 551px;
  width: 100%;
  flex-shrink: 0;
}

.case-slide__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  -webkit-user-drag: none;
  user-select: none;
}

.case-slide__content {
  width: 100%;
  padding-top: 32px;
}

.case-slide__title {
  font-weight: 600;
  font-size: 28px;
  line-height: 36px;
  color: rgba(6, 17, 80, 1);
  margin-bottom: 20px;
}

.case-slide__sub {
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  color: rgba(6, 17, 80, 1);
  margin-bottom: 8px;
}

.case-slide__content p {
  margin-bottom: 20px;
}

.case-slide__content .btn {
  max-width: 160px;
  margin-top: 8px;
}

/* Навигация под слайдером: «Предыдущий кейс  1/16  Следующий кейс» */
.case-slider__nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.case-slider__prev,
.case-slider__next {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  height: auto;
  padding: 0;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(6, 17, 80, 1);
  cursor: pointer;
  transition: .3s ease;
}

.case-slider__prev svg,
.case-slider__next svg {
  width: 18px;
  height: 18px;
}

.case-slider__prev:hover,
.case-slider__next:hover {
  color: rgba(44, 30, 245, 1);
  background: none;
}

.case-slider__prev.swiper-button-disabled,
.case-slider__next.swiper-button-disabled {
  color: rgba(171, 188, 205, 1);
  pointer-events: none;
}

/* Дробная пагинация: текущий слайд жёлтым */
.case-slider__pag {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: rgba(6, 17, 80, 1);
  width: auto;
  white-space: nowrap;
}

.case-slider__pag .swiper-pagination-current {
  font-weight: 700;
  font-size: 24px;
  color: rgba(255, 199, 0, 1);
}

@media(max-width: 900px) {
  .case-slide {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  /* Плашка встаёт в поток над картинкой */
  .case-slide__site {
    position: static;
    align-self: flex-start;
    order: -1;
  }

  .case-slide__img {
    max-width: 100%;
  }

  .case-slide__content {
    padding-top: 0;
  }

  .case-slide__title {
    font-size: 22px;
    line-height: 28px;
    margin-bottom: 12px;
  }

  .case-slide__sub {
    font-size: 16px;
    line-height: 24px;
  }

  .case-slide__content .btn {
    max-width: 100%;
  }

  .case-slider__nav {
    gap: 20px;
    margin-top: 24px;
  }

  .case-slider__prev span,
  .case-slider__next span {
    display: none;
  }
}

@media(max-width: 768px) {
  .case-block__all {
    max-width: 100%;
    text-align: center;
    width: 100%;
    justify-content: center;
  }
}

@media(max-width: 480px) {
  .case-block__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .case-slider__prev,
  .case-slider__next {
    font-size: 10px;
    gap: 6px;
  }
}

/* Фильтр на общей странице «Кейсы» */
.cases-filter {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-bottom: 40px;
}

.cases-filter a {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: rgba(77, 84, 116, 1);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: .3s ease;
}

.cases-filter a:hover {
  color: rgba(6, 17, 80, 1);
}

.cases-filter a.active {
  font-weight: 600;
  color: rgba(6, 17, 80, 1);
  border-bottom-color: rgba(255, 199, 0, 1);
}

@media(max-width: 768px) {
  .cases-filter {
    gap: 8px 20px;
    margin-bottom: 24px;
  }

  .cases-filter a {
    font-size: 14px;
  }
}

/* Карточка кейса в ленте «Другие проекты»:
   скриншот сайта приглушается и тонируется в гамме сайта,
   поверх — логотип и цифры-метрики */
.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.case-card__img {
  position: relative;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: rgba(5, 19, 103, 1);
}

/* Скриншот: блеклый + цветовой тон поверх (::after) */
.case-card__shot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) brightness(0.75);
  transition: .3s ease;
}

.case-card__img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, rgba(5, 19, 103, 0.65) 0%, rgba(5, 19, 103, 0.35) 50%, rgba(5, 19, 103, 0.75) 100%);
}

.case-card:hover .case-card__shot {
  filter: saturate(0.8) brightness(0.9);
  transform: scale(1.04);
}

.case-card__logo,
.case-card__stats {
  position: relative;
  z-index: 1;
}

.case-card__logo img {
  height: 26px;
  width: auto;
  max-width: 150px;
}

.case-card__stats {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.case-card-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-card-stat__label {
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: rgba(223, 246, 255, 0.9);
}

.case-card-stat__value {
  font-weight: 700;
  font-size: 26px;
  line-height: 32px;
  color: white;
}

.case-card__title {
  margin-top: 16px;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: rgba(6, 17, 80, 1);
  transition: .3s ease;
}

.case-card:hover .case-card__title {
  color: rgba(44, 30, 245, 1);
}

.case-card__date {
  margin-top: 6px;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: rgba(77, 84, 116, 1);
}

/* Не даём браузеру «тащить» ссылку/картинку при драге слайдера */
.case-card .over-link,
.case-card__shot,
.case-card__logo img {
  -webkit-user-drag: none;
  user-select: none;
}

@media(max-width: 768px) {
  .case-card__img {
    height: 180px;
  }

  .case-card-stat__value {
    font-size: 22px;
    line-height: 28px;
  }
}

/* Результат: 3 крупные цифры */
.case-nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.case-num__value {
  font-weight: 700;
  font-size: 44px;
  line-height: 52px;
  color: #051367;
  margin-bottom: 8px;
}

/* По ТЗ пробовали #F0F6FC — на белом фоне текст нечитаем,
   поэтому оставлен стандартный серый цвет текста сайта */
.case-num__text {
  font-size: 14px;
  line-height: 24px;
  color: rgba(77, 84, 116, 1);
}

.case-content h2:first-child {
  margin-top: 0;
}

/* Основные работы по сайту: пронумерованные карточки */
.case-works-section {
  margin: 40px 0px 60px 0px;
}

.case-works-section h2 {
  margin-bottom: 24px;
}

.case-works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 40px 0px 60px 0px;
}

.case-works-section .case-works {
  margin: 0;
}

.case-work {
  border-radius: 8px;
  background-color: rgba(240, 246, 252, 1);
  padding: 32px 24px;
}

.case-work__num {
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  color: rgba(255, 199, 0, 1);
  margin-bottom: 12px;
}

.case-work__title {
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  color: rgba(6, 17, 80, 1);
  margin-bottom: 8px;
}

.case-work p {
  margin-bottom: 0;
}

/* Результаты: слайдер графиков и скриншотов (по 3 на десктопе), клик — fancybox */
.case-shots {
  margin-top: 24px;
}

.shots-slider {
  overflow: hidden;
}

.case-shot {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(240, 246, 252, 1);
}

.case-shot img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: .3s ease;
}

.case-shot:hover img {
  transform: scale(1.04);
}

/* Не даём браузеру «тащить» картинку при драге слайдера */
.case-shot,
.case-shot img {
  -webkit-user-drag: none;
  user-select: none;
}

@media(max-width: 900px) {
  .case-sum {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
  }

  /* на всю ширину; выше 440px не растёт — на планшете широкий прямоугольник,
     на мобилке квадрат */
  .case-sum__img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 440px;
  }
}

@media(max-width: 768px) {
  .case-sum__grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    margin-bottom: 24px;
  }

  .case-nums {
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
  }

  .case-num__value {
    font-size: 32px;
    line-height: 38px;
    margin-bottom: 4px;
  }

  .case-works-section {
    margin: 24px 0px 40px 0px;
  }

  .case-works-section h2 {
    margin-bottom: 16px;
  }

  .case-works {
    grid-template-columns: repeat(1, 1fr);
    margin: 24px 0px 40px 0px;
  }

  .case-works-section .case-works {
    margin: 0;
  }

  .case-work {
    padding: 20px;
  }

  .case-work__num {
    font-size: 30px;
    line-height: 36px;
    margin-bottom: 8px;
  }

  .case-shot img {
    height: 200px;
  }
}

/* ==========================================================================
   Страница 404
   ========================================================================== */

.error-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 0px 150px 0px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-page__num {
  font-weight: 700;
  font-size: 160px;
  line-height: 1;
  color: rgba(5, 19, 103, 1);
  position: relative;
  margin-bottom: 24px;
}

/* Жёлтый акцент-подчёркивание под цифрами */
.error-page__num::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 6px;
  border-radius: 3px;
  background-color: rgba(255, 199, 0, 1);
}

.error-page h1 {
  font-size: 32px;
  line-height: 42px;
  color: #0F172B;
  margin-bottom: 12px;
}

.error-page p {
  max-width: 440px;
  margin-bottom: 32px;
}

.error-page__btn .btn {
  min-width: 180px;
}

@media(max-width: 768px) {
  .error-page {
    padding: 30px 0px 80px 0px;
  }

  .error-page__num {
    font-size: 96px;
    margin-bottom: 20px;
  }

  .error-page h1 {
    font-size: 24px;
    line-height: 30px;
  }

  .error-page p {
    margin-bottom: 24px;
  }
}

/* Комментарии */

.comments {
  margin-bottom: 150px;
}

.comments__title,
.comment-reply-title {
  font-size: 32px;
  line-height: 42px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.comment-list ol.children {
  margin-top: 16px;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-body {
  border-radius: 8px;
  background-color: #FAFAFA;
  padding: 24px;
}

.comment-meta {
  margin-bottom: 12px;
}

.comment-author {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.comment-author .avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 100%;
  object-fit: cover;
}

.comment-author .fn {
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 140%;
  color: #0F172B;
}

.comment-author .says {
  display: none;
}

.comment-metadata {
  margin-top: 4px;
}

.comment-metadata a {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: rgba(77, 84, 116, 1);
}

.comment-metadata .edit-link {
  margin-left: 8px;
}

.comment-content p {
  margin-bottom: 0;
}

.comment-content p+p {
  margin-top: 8px;
}

.reply {
  margin-top: 12px;
}

.comment-reply-link {
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  color: rgba(44, 30, 245, 1);
  transition: .3s ease;
}

.comment-reply-link:hover {
  text-decoration: underline;
}

.comment-awaiting-moderation {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(241, 105, 30, 1);
}

/* Пагинация комментариев */
.comments .pagination {
  margin-bottom: 40px;
}

.comments .nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.comments .nav-links .page-numbers {
  font-size: 14px;
  color: rgba(77, 84, 116, 1);
  padding: 4px 10px;
  border-radius: 4px;
  transition: .3s ease;
}

.comments .nav-links .page-numbers.current,
.comments .nav-links a.page-numbers:hover {
  background-color: rgba(5, 19, 103, 1);
  color: white;
}

/* Форма комментария */
.comment-respond {
  border-radius: 8px;
  background-color: rgba(240, 246, 252, 1);
  padding: 32px;
}

.comment-respond .logged-in-as {
  font-size: 12px;
  margin-bottom: 16px;
}

.comment-respond .logged-in-as a {
  color: rgba(44, 30, 245, 1);
}

.comment-form-row {
  display: flex;
  flex-direction: row;
  gap: 19px;
  margin-bottom: 14px;
}

.comment-form-field {
  width: 100%;
}

.comment-form-field input,
.comment-form-field textarea {
  border-radius: 6px;
  border: 1px solid rgba(1, 46, 117, 1);
  background-color: white;
  padding: 16px 18px;
  width: 100%;
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  color: #0F172B;
}

.comment-form-field input::placeholder,
.comment-form-field textarea::placeholder {
  color: rgba(77, 84, 116, 0.6);
}

.comment-form-field textarea {
  min-height: 120px;
  max-height: 300px;
  resize: vertical;
}

.comment-form .form-submit {
  margin-top: 18px;
  margin-bottom: 0;
}

.comment-form__btn {
  max-width: 200px;
  width: 100%;
}

#cancel-comment-reply-link {
  margin-left: 12px;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  color: rgba(241, 105, 30, 1);
}

#cancel-comment-reply-link:hover {
  text-decoration: underline;
}

.comments__closed {
  margin-top: 24px;
}

@media(max-width: 768px) {
  .comments {
    margin-bottom: 80px;
  }

  .comments__title,
  .comment-reply-title {
    font-size: 24px;
    line-height: 30px;
  }

  .comment-list ol.children {
    padding-left: 16px;
  }

  .comment-body {
    padding: 16px;
  }

  .comment-respond {
    padding: 20px;
  }

  .comment-form-row {
    flex-direction: column;
    gap: 14px;
  }

  .comment-form__btn {
    max-width: 100%;
  }

  .contacts-info__content a,
  .contacts-info__content p {
    font-size: 14px;
  }
}

/* header */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 19, 103, 1);
}

.header--scrolled {
  box-shadow: 0 10px 30px rgba(6, 17, 80, 0.25);
}

/* на десктопе обёртка header-nav не участвует в раскладке,
   кнопка и меню остаются флекс-детьми header__body */
.header-nav {
  display: contents;
}

.header-contacts {
  order: 1;
}

.header-btn {
  order: 2;
}

body.lock {
  overflow: hidden;
}

.header__body {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 16px;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.header-logo__name {
  font-weight: 700;
  font-size: 24px;
  line-height: 26px;
  color: rgba(255, 255, 255, 1);
}

.header-logo__desc {
  font-weight: 400;
  font-size: 11px;
  line-height: 14px;
  color: rgba(157, 165, 200, 1);
  white-space: nowrap;
}

.header-menu {
  height: 100%;
}

.header-menu__list {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 20px;
}

.header-menu__item {
  display: flex;
  align-items: center;
}

.header-menu__item>a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 1);
  white-space: nowrap;
  transition: color 0.3s;
}

.header-menu__item>a:hover {
  color: rgba(255, 199, 0, 1);
}

.header-menu__plus {
  font-weight: 400;
  font-size: 16px;
  transition: transform 0.3s;
}

/* пункт текущей страницы */
.header-menu__item.current > a {
  color: rgba(255, 199, 0, 1);
}

.mega-menu__list a.current {
  color: rgba(5, 19, 103, 1);
  font-weight: 600;
}

.header-menu__item--mega:hover .header-menu__plus {
  transform: rotate(45deg);
}

/* mega menu */

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 30px 40px rgba(6, 17, 80, 0.15);
  border-top: 1px solid rgba(229, 232, 245, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.header-menu__item--mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu__body {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 0px;
}

.mega-menu__title {
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  color: rgba(6, 17, 80, 1);
  margin-bottom: 18px;
}

.mega-menu__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mega-menu__list a {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: rgba(77, 84, 116, 1);
  transition: color 0.3s;
}

.mega-menu__list a:hover {
  color: rgba(5, 19, 103, 1);
}

.mega-menu__promo {
  max-width: 280px;
  padding: 24px;
  border-radius: 12px;
  background: rgba(244, 246, 252, 1);
}

.mega-menu__promo-title {
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  color: rgba(6, 17, 80, 1);
  margin-bottom: 10px;
}

.mega-menu__promo p {
  margin-bottom: 18px;
}

/* как кнопка в хедере, но в инверсии — на светлой подложке промо-блока */
.mega-menu__promo-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 36px;
  max-width: 100%;
  padding: 5px 16px;
  border-radius: 4px;
  border: 1px solid rgba(5, 19, 103, 1);
  background-color: rgba(5, 19, 103, 1);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 1);
  transition: background 0.3s, color 0.3s;
}

.mega-menu__promo-btn:hover {
  background-color: transparent;
  color: rgba(5, 19, 103, 1);
}

/* header contacts */

.header-contacts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-mes {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-mes a {
  display: flex;
  transition: opacity 0.3s;
}

.header-mes a:hover {
  opacity: 0.7;
}

.header-mes img {
  width: 18px;
  height: 18px;
}

.header-tel {
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  color: rgba(255, 255, 255, 1);
  white-space: nowrap;
  transition: color 0.3s;
}

.header-tel:hover {
  color: rgba(255, 199, 0, 1);
}

.header-btn {



  flex-shrink: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 1);
  white-space: nowrap;
  transition: background 0.3s, border-color 0.3s, color 0.3s;


  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(255, 255, 255, 0.08);
  max-width: 183px;
  width: 100%;

font-weight: 600;
font-size: 12px;
line-height: 16px;
letter-spacing: 10%;
height: 36px;
display: flex;
justify-content: center;
align-items: center;
padding: 5px 10px;
}

.header-btn:hover {
  background-color: transparent;
}

/* toc — якорное меню */

.toc {
  position: sticky;
  top: 72px;
  z-index: 90;
  background: rgba(247, 248, 251, 1);
  border-bottom: 1px solid rgba(229, 232, 245, 1);
}

.toc__body {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
}

.toc__nav {
  position: relative;
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.toc__nav::-webkit-scrollbar {
  display: none;
}

.toc__list {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
}

.toc__list a {
  display: inline-block;
  padding: 6px 0px 4px;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(77, 84, 116, 1);
  transition: color 0.3s, border-color 0.3s;
}

.toc__list a:hover {
  color: rgba(6, 17, 80, 1);
}

.toc__list a.active {
  color: rgba(6, 17, 80, 1);
  border-bottom-color: rgba(255, 199, 0, 1);
}

/* стрелки прокрутки: видны, только когда якоря не влазят (класс toc--scrollable) */
.toc__arrow {
  display: none;
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(229, 232, 245, 1);
  border-radius: 100%;
  background: rgba(255, 255, 255, 1);
  cursor: pointer;
  transition: border-color 0.3s;
}

.toc--scrollable .toc__arrow {
  display: block;
}

.toc__arrow:hover {
  border-color: rgba(6, 17, 80, 1);
}

.toc__arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(6, 17, 80, 1);
  border-bottom: 2px solid rgba(6, 17, 80, 1);
}

.toc__arrow--prev::before {
  transform: translate(-30%, -50%) rotate(135deg);
}

.toc__arrow--next::before {
  transform: translate(-70%, -50%) rotate(-45deg);
}

.toc__btn {
  flex-shrink: 0;
  height: 40px;
  padding: 10px 24px;
}

.toc__top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 100%;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  color: rgba(6, 17, 80, 1);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

/* шапка ниже 1300 уменьшается до 56px — двигаем липкий toc следом */
@media (max-width: 1300px) {
  .toc {
    top: 56px;
  }
}

@media (max-width: 768px) {
  .toc__body {
    height: 48px;
    gap: 12px;
  }

  /* на тач-устройствах листается свайпом, стрелки и «наверх» прячем */
  .toc--scrollable .toc__arrow {
    display: none;
  }

  .toc__top {
    display: none;
  }

  .toc__list {
    gap: 20px;
  }

  .toc__btn {
    height: 36px;
    padding: 8px 16px;
    font-size: 11px;
  }
}

@media (max-width: 500px) {
  .toc__btn {
    display: none;
  }
}

/* Плашка cookie (плагин LuckyWP Cookie Notice) — фирменные цвета.
   !important перебивает встроенные стили плагина; display не трогаем,
   им плагин управляет при показе/скрытии */
.lwpcngNotice.lwpcngNoticeBar {
  background: rgba(5, 19, 103, 0.9) !important;
  border: 1px solid rgba(5, 19, 103, 0.9);
  box-shadow: 0px -10px 40px rgba(2, 6, 27, 0.3);
  padding: 20px 15px;
  text-align: center;
  z-index: 150;
  margin: 20px;
  border-radius: 8px;
}

.lwpcngNotice.lwpcngNoticeBar .lwpcngNotice_message {
  max-width: 800px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 22px;
  color: rgba(223, 246, 255, 1) !important;
}

.lwpcngNotice.lwpcngNoticeBar .lwpcngNotice_buttons {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

/* кнопка «Принять» — как жёлтые кнопки сайта */
.lwpcngNotice.lwpcngNoticeBar .lwpcngNotice_accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 40px;
  padding: 10px 24px;
  border-radius: 4px;
  border: 1px solid rgba(255, 199, 0, 1);
  background-color: rgba(255, 199, 0, 1) !important;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  color: rgba(6, 17, 80, 1) !important;
  cursor: pointer;
  transition: .3s ease;
}

.lwpcngNotice.lwpcngNoticeBar .lwpcngNotice_accept:hover {
  background-color: transparent !important;
  color: rgba(255, 199, 0, 1) !important;
}

@media (max-width: 768px) {
  .lwpcngNotice.lwpcngNoticeBar {
    padding: 16px 15px;
  }

  .lwpcngNotice.lwpcngNoticeBar .lwpcngNotice_message {
    font-size: 13px;
    line-height: 20px;
  }

  .lwpcngNotice.lwpcngNoticeBar .lwpcngNotice_accept {
    width: 100%;
  }
}

/* Появление блоков при скролле: класс .reveal вешает JS,
   .revealed добавляется, когда блок входит во вьюпорт */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* popup заказа */

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.popup.open {
  opacity: 1;
  visibility: visible;
}

.popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 27, 0.6);
  backdrop-filter: blur(4px);
}

.popup__window {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 40px;
  border-radius: 8px;
  background-color: rgba(5, 19, 103, 1);
  box-shadow: 0px 4px 50px 0px rgba(2, 6, 27, 0.4);
  overflow: hidden;
  transform: translateY(24px);
  transition: transform 0.3s;
}

.popup.open .popup__window {
  transform: translateY(0);
}

/* фирменный узор на фоне окна */
.popup__window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(../img/LooperGroup.svg) no-repeat top right;
  background-size: cover;
  pointer-events: none;
}

.popup__window>* {
  position: relative;
  z-index: 1;
}

.popup__title {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: rgba(255, 255, 255, 1);
  margin-bottom: 8px;
  padding-right: 30px;
}

.popup__text {
  font-size: 14px;
  line-height: 22px;
  color: rgba(223, 246, 255, 1);
  margin-bottom: 24px;
}

.popup__form.call-form {
  max-width: 100%;
}

.popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 100%;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.popup__close::before,
.popup__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 1);
}

.popup__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.popup__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.popup__close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .popup__window {
    padding: 24px 20px;
  }

  .popup__title {
    font-size: 20px;
    line-height: 26px;
  }
}

/* header burger */

.header-burger {
  display: none;
  position: relative;
  width: 24px;
  height: 18px;
  flex-shrink: 0;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.header-burger span,
.header-burger::before,
.header-burger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 1);
  transition: transform 0.3s, opacity 0.3s, top 0.3s, bottom 0.3s;
}

.header-burger::before {
  top: 0;
}

.header-burger span {
  top: 50%;
  transform: translateY(-50%);
}

.header-burger::after {
  bottom: 0;
}

.header.menu-open .header-burger::before {
  top: 8px;
  transform: rotate(45deg);
}

.header.menu-open .header-burger span {
  opacity: 0;
}

.header.menu-open .header-burger::after {
  bottom: 8px;
  transform: rotate(-45deg);
}

/* header mobile: контент хедера не влазит в контейнер раньше,
   чем классические 768/1100, поэтому бургер включается с 1300 */

@media (max-width: 1300px) {
  .header__body {
    height: 56px;
    gap: 16px;
  }

  .header-logo__desc {
    display: none;
  }

  /* контакты живут в выпадающей панели, под меню */
  .header-contacts {
    margin-top: 24px;
    gap: 16px;
  }

  .header-tel {
    font-size: 16px;
  }

  .header-burger {
    display: block;
  }

  /* выпадающая панель меню: фиксируемся к вьюпорту — top под шапкой,
     bottom: 0 ровно до низа экрана (100vh на мобильных включает
     адресную строку браузера и врёт, из-за чего низ меню обрезался) */
  .header-nav {
    display: block;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 20px 15px 40px;
    background: rgba(5, 19, 103, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  }

  .header.menu-open .header-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header-btn {
    display: flex;
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
    max-width: 100%;
  }

  .header-menu {
    height: auto;
  }

  .header-menu__list {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 0;
  }

  .header-menu__item {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .header-menu__item>a {
    padding: 18px 0px;
    font-size: 14px;
  }

  /* мега-меню превращается в аккордеон, открывается по клику (класс .open) */
  .mega-menu {
    display: none;
    position: static;
    background: transparent;
    border-top: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .header-menu__item--mega.open .mega-menu {
    display: block;
  }

  .header-menu__item--mega.open .header-menu__plus {
    transform: rotate(45deg);
  }

  .mega-menu ._container {
    padding: 0;
  }

  .mega-menu__body {
    flex-direction: column;
    gap: 24px;
    padding: 4px 0px 24px;
  }

  .mega-menu__title {
    color: rgba(255, 255, 255, 1);
    font-size: 14px;
    margin-bottom: 12px;
  }

  .mega-menu__list a {
    color: rgba(157, 165, 200, 1);
  }

  .mega-menu__list a:hover {
    color: rgba(255, 255, 255, 1);
  }

  /* текущая страница в мобильной панели — жёлтым, синий на синем не виден */
  .mega-menu__list a.current {
    color: rgba(255, 199, 0, 1);
  }

  .mega-menu__promo {
    display: none;
  }
}

/* форма  */

.cn-fr__name p {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.cn-fr__btn {
  max-width: 200px;
  width: 100%;
  margin: 0 auto;
  margin-top: 36px;
}

.banner .cn-fr-bd-acc {
  display: flex;
  justify-content: center;
}

@media(max-width: 768px) {
  .banner__form .wpcf7-form-control-wrap {
    flex: 1 1 auto;
    width: 100%;
  }

  .cn-fr__btn {
    max-width: 100%;
    margin-top: 20px;
  }

  .banner-content-dop {
    display: none;
  }
}