@media (max-width: 560px) {
  .article {
    overflow: hidden;
  }
}
.article-content {
  display: flex;
  align-items: flex-start;
}
.calculatorWrapper {
    max-width: 850px;
}
.article-main {
  max-width: 890px;
  width: 100%;
  margin-right: 20px;
}
@media (max-width: 1600px) {
  .article-main {
    max-width: 100%;
    margin: 0 0 48px 0;
  }
  .article-content {
    flex-direction: column;
  }
}
@media (max-width: 1199px) {
  .article-main {
    margin-bottom: 32px;
  }
}
@media (max-width: 767px) {
  .article-main {
    margin-bottom: 40px;
  }
}
.article__img {
  margin-bottom: 16px;
}
.article__img img {
  border-radius: 24px;
  width: 100%;
}
@media (max-width: 767px) {
  .article__img img {
    border-radius: 8px;
  }
}
@media (max-width: 767px) {
  .article__img {
    width: calc(100% + 32px);
    margin: 0 -16px;
    margin-bottom: 16px;
  }
}
.article__tag {
  display: flex;
  align-items: center;
  padding: 8px;
  gap: 8px;
}
.article__text {
  margin-top: 32px;
}
.article__text p {
  color: #393c4a;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
}
.article__text p + p {
  margin-top: 24px;
}
@media (max-width: 1600px) {
  .article__text p {
    font-size: 16px;
    line-height: 1.5;
  }
}
@media (max-width: 767px) {
  .article__text {
    margin-top: 8px;
  }
  .article__text p {
    font-size: 14px;
    line-height: 1.57;
  }
  .article__text p + p {
    margin-top: 8px;
  }
}
.article__back {
  display: flex;
  align-items: center;
  margin-top: 32px;
  gap: 4px;
  padding: 10px 16px;
  cursor: pointer;
  color: #000;
}
.article__back span {
  font-size: 14px;
  font-weight: 600;
}
@media (max-width: 767px) {
  .article__back {
    display: none;
  }
}

.articles-other {
  width: 100%;
}
.articles-other-list .swiper-wrapper {
  display: block;
}
@media (max-width: 560px) {
  .articles-other-list .swiper-wrapper {
    display: flex;
  }
}
.articles-other__title {
  font-size: 20px;
  color: #151F6D;
  margin-bottom: 16px;
  font-weight: 600;
}

.product-categories {
    max-width: 400px;
}

.calculator {
    display: flex;
    width: 100%;
    gap: 20px;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 50%;
}

.data {
    margin-bottom: 16px;
}

.result {
    margin-bottom: 2px;
    padding: 14px 20px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.title {
    margin: 0;
    padding: 0;
    font-weight: 700;
    font-size: 18px;
    color: #052148;
    margin-bottom: 10px;
    text-align: center;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #d7e9ff;
    padding: 10px 10px 16px;
    border: #bdc5d0 solid 1px;
    height: 216px;
}

.data {
    padding-top: 5px;
}

.desk {
    margin: 0;
    text-align: center;
    margin-bottom: 16px;
    color: #24262f;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    max-width: 490px;
}

.inputs {
    width: 100%;
    background: #e8f0f9;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    gap: 6px;
    box-sizing: border-box;
    margin-top: auto;
}
.inputs label {
    color: #889094;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 14px;
    line-height: 19px;
}

.room {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input {
    position: relative;
    width: 100%;
}

.input input {
    width: 100%;
    padding: 10px 20px 10px 10px;
    background-color: #ffffff;
    border: none;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.input span {
    position: absolute;
    right: 6px;
    top: 13px;
    font-weight: 400;
    font-size: 12px;
    color: #889094;
}

.button {
    margin-top: auto;
    margin-bottom: 14px !important;
    color: #fff !important;
}

.calculatorWrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.priceCalc {
    margin: 0;
    font-weight: 500;
    color: #020202;
    margin-bottom: 3px;
    font-size: 0.8em;
    line-height: 1.4em;
}

.resultItem {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    width: 48%;
}

.resultContent {
    display: flex;
    justify-content: flex-start;
    flex-direction: column-reverse;
    align-items: flex-end;
}

.resultContent p {
    margin: 0;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
    color: #010715;
    line-height: 19px;
}

.resultItem span {
    font-weight: 600;
    font-size: 18px;
    color: #151f6d;
    line-height: 24px;
}

.resultIcon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
}

.btn:hover {
    color: #fff !important;
}

@media (max-width: 1760px) {
    .calculator {
        flex-wrap: wrap;
    }
    .content {
        width: 100%;
    }
    .button {
        margin-top: 14px !important;
        margin-bottom: 0 !important;
    }

    .data {
        margin-bottom: 4px;
    }
}
.swiper-slide {
    cursor: pointer;
}
.swiper-slide.slide-selected {
    border-style: solid;
    border-color: gray;
}
/* TOC — оглавление статьи */
.article-toc {
    margin: 32px 0;
    padding: 20px 24px;
    background: #f7f9fc;
    border-left: 4px solid #1a0dab;
    border-radius: 6px;
}

/* Заголовок TOC */
.article-toc__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
}

/* Список */
.article-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-toc li {
    margin: 6px 0;
    line-height: 1.45;
}

/* Базовый стиль пунктов содержания */
.article-toc a {
    color: #1a0dab;
    text-decoration: none;
    border-bottom: 1px dotted #1a0dab;
    padding-bottom: 1px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

/* Активный пункт (опционально) */
.article-toc a.is-active {
    font-weight: 600;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .article-toc {
        padding: 16px 18px;
    }

    .article-toc__title {
        font-size: 15px;
    }

    .article-toc a {
        font-size: 13.5px;
    }
}

/* Метаблок дат публикации и обновления */
.article-meta-dates {
    margin: 24px 0;          /* отступ сверху и снизу */
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

/* Строка дат */
.article-meta-dates .meta-item {
    display: inline;
}

/* Разделитель • между датами */
.article-meta-dates .meta-item + .meta-item::before {
    content: " • ";
    margin: 0 4px;
    color: #999;
}

/* Подписи */
.article-meta-dates .label {
    font-weight: 500;
    color: #333;
}

