

/* Start:/local/templates/otevetto/styles.css?1772534302334*/
.exchange-and-refund-container .content-block {
    padding: 0;
}

.exchange-and-refund-container .content-block .exchange-content-block__title {
    display: flex;
    gap: 1rem;
}

.exchange-and-refund-container .content-block .exchange-and-refund-qustions .exchange-and-refund-qustions-title {
    display: flex;
    gap: 1rem;
}


/* End */


/* Start:/local/templates/otevetto/template_styles.css?177253430233775*/
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(41, 41, 41, 0.06);
}

::-webkit-scrollbar-thumb {
    background: rgba(41, 41, 41, 0.12);
    border-radius: 15px;
}

::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

body {
    overscroll-behavior: contain;
}


.bx-cstm-loader {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #fff;
    opacity: 0;
    top: 0;
    left: 0;
    transition: 0.4s opacity;
}

body.loaded-now .product-card {
    opacity: 0;
}

.bx-cstm-loader.animated {
    opacity: 0.7;
}

.loader {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(farthest-side, rgba(0, 85, 254, 1) 94%, #0000) top/4px 4px no-repeat,
    conic-gradient(#0000 30%, rgba(0, 85, 254, 1));
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 4px), #000 0);
    animation: spinner-ub 0.8s infinite linear;
}

@keyframes spinner-ub {
    100% {
        transform: rotate(1turn);
    }
}


.loader-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.accordion-content-buttons{
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.faq-section--page{
    padding-top: 90px;
}
.faq-section--page .faq-section-container__content{
    padding-top: 0;
}

@media(max-width: 640px){
    .accordion-content-buttons{
        flex-direction: column;
        gap: 10px;
        margin-top: 23px;
    }
    .accordion-content-buttons a,
    .accordion-content-buttons button{
        width: 100%;
        text-align: center;
    }
    .faq-section--page{
        padding-top: 2rem;
    }

    .tabs-container .tabs-item{
        text-align: center;
        font-size: 14px;
    }
}

.container--short{
    max-width: 47.875rem;
    margin: 0 auto;
}

.no-text-wrap .h3{
    text-wrap: wrap;
}

body{
    opacity: 1;
}

.news-detail-container-mt{
    margin-top: 40px !important;
}

.crumbs-link:last-child .breadcrumb-separator{
    display: none;
}

.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.breadcrumb-separator svg {
    display: block;
}

/* Хлебные крошки: горизонтальный скролл на мобильных */
@media (max-width: 768px) {
    .breadcrumb-container {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        white-space: nowrap;
        direction: ltr;

        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;

        scrollbar-width: none; /* Firefox */
    }

    .breadcrumb-container::-webkit-scrollbar { display: none; } /* WebKit */

    .crumbs-item,
    .breadcrumb-separator {
        flex: 0 0 auto;
    }
}

.swiper-button-prev svg{
    transform: rotate(180deg);
}

.header .header-mobile .header-mobile-container .header-mobile-profile{
    max-height: 44px;
}

@media (max-width: 850px) {
    .opportunities-container__content-item-big__img {
        bottom: -2rem;
        position: relative;
    }
    .opportunities-container__content-item-big__img img{
        position: relative;
        bottom: 0;
    }
}

@media (max-width: 480px) {
    .opportunities-container__content-item-big__img {
        bottom: -2.5rem;
    }
}

.companies-trust-carousel {
    margin: 0 auto;
    padding: 1.9375rem 0;
    overflow: hidden;
    display: flex;

    > * {
        flex: 0 0 100%;
    }

    &:hover .companies-trust-group {
        animation-play-state: paused;
    }
}

.companies-trust-group {
    display: flex;
    gap: 20px;
    padding-right: 20px;
    will-change: transform;
    animation: scrolling 20s linear infinite;
}

@media (max-width: 33.75rem) {
    .companies-trust-carousel {
        padding-top: 1.25rem;
    }

    .companies-trust-group {
        gap: .625rem;
        padding-right: .625rem;
    }
}

@keyframes scrolling {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
.partner-card__description {
flex-grow: 1;
margin-bottom: clamp(33px,8.46cqw,53px);
color: #060606;
}

.partner-card__discount {
margin-top: 4px;
font-family: inherit;
font-weight: 900;
font-size: 19px;
line-height: 1.15;
letter-spacing: -.0525rem;
}
.news-detail .news-detail-container h2 {
font-size: calc(20px + 26 * (100vw - 480px) / 1440);
font-weight: 500;
line-height: 1.55;
letter-spacing: -.03em;
padding-top: 3.125rem;
}

.news-detail .news-detail-container h3 {
font-size: calc(18px + 12 * (100vw - 480px) / 1440);
font-weight: 500;
line-height: 2.25;
letter-spacing: -.03em;
padding-top: 3.125rem;
}
figure {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background-color: #f9f9f9;
  border-left: 5px solid #6c63ff; /* акцентная полоса */
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

figure blockquote {
  margin: 0;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  color: #333;
}

figure figcaption {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #555;
  text-align: right;
}

figure figcaption span[itemprop="name"] {
  font-weight: 600;
  color: #222;
}

figure figcaption span[itemprop="jobTitle"] {
  font-style: normal;
  color: #777;
}
/* =========================
   FAQ — стилистика как .accordion-container
   ========================= */

.faq {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq details {
  border: none;
  border-radius: 3.125rem;
  padding: 2.625rem 4.4375rem 2.625rem 2.625rem;
  margin: 0;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
  cursor: pointer;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 0;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #292824;
  position: relative;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.3s;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23292824' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s;
  position: static;
  transform: none;
  font-size: inherit;
  opacity: 1;
}

@media (hover: hover) {
  .faq summary:hover {
    color: rgba(0, 85, 255, 1);
  }
  .faq summary:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%230055ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  }
}

.faq details[open] summary::after {
  transform: rotate(180deg);
  opacity: 1;
}

.faq .answer {
  max-width: 59.6875rem;
  padding: 0;
  padding-top: 1.25rem;
  color: #292824;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.65;
}

@media (max-width: 53.125rem) {
  .faq {
    gap: 0.625rem;
  }

  .faq details {
    border-radius: 1.5rem;
    padding: 1.875rem;
  }

  .faq summary {
    font-size: 1.25rem;
  }

  .faq .answer {
    font-size: 1rem;
    line-height: 1.45;
  }
}
.table-wrapper {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Segoe UI", Arial, sans-serif;
}

.table-wrapper thead {
  background: linear-gradient(97.95deg, #05f, #00a3f5);
  color: #fff;
}

.table-wrapper th,
.table-wrapper td {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.5;
}

.table-wrapper tbody tr:nth-child(odd) {
  background-color: #f0f7ff; /* светлый голубой */
}

.table-wrapper tbody tr:nth-child(even) {
  background-color: #e6f2fb; /* чуть темнее */
}

.table-wrapper tbody tr:hover {
  background-color: #d8ecfa; /* hover-эффект */
  transition: background 0.2s ease-in-out;
}

.table-wrapper th {
  font-weight: 600;
  font-size: 1rem;
}
.howto {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: #f9f9f9;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  font-family: "Segoe UI", Arial, sans-serif;
  counter-reset: step-counter;
}

.howto [itemprop="name"]:first-child {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #222;
}

.howto [itemprop="step"] {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.2rem 1rem 3.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  counter-increment: step-counter;
}

.howto [itemprop="step"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.howto [itemprop="step"]::before {
  content: counter(step-counter);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(97.95deg,#05f,#00a3f5);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.howto [itemprop="step"] span[itemprop="name"] {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #004aad;
}

.howto [itemprop="step"] div[itemprop="text"] {
  color: #374151;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* База для всех спанов-иконок */
.mp-icon{
  display:inline-block;
  width:1em;
  height:1em;
  vertical-align:-0.2em;      /* подстройте при необходимости */
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
}

/* ------ Avito: полноцветная версия (SVG как фон) ------ */
.mp-icon--avito{
  width:1.2em;
  height:1.2em;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='16' cy='16' r='12' fill='%233D8AFF'/%3E%3Ccircle cx='40' cy='14' r='8' fill='%23FF4E4E'/%3E%3Ccircle cx='44' cy='40' r='12' fill='%2300D28E'/%3E%3Ccircle cx='18' cy='44' r='10' fill='%237B60FF'/%3E%3C/svg%3E");
}

/* ------ Avito: монохром (наследует currentColor) ------ */
.mp-icon--avito-mono{
  width:1.2em;
  height:1.2em;
  background-color:currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='16' cy='16' r='12'/%3E%3Ccircle cx='40' cy='14' r='8'/%3E%3Ccircle cx='44' cy='40' r='12'/%3E%3Ccircle cx='18' cy='44' r='10'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='16' cy='16' r='12'/%3E%3Ccircle cx='40' cy='14' r='8'/%3E%3Ccircle cx='44' cy='40' r='12'/%3E%3Ccircle cx='18' cy='44' r='10'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Необязательные модификаторы размера */
.mp-icon--sm{ width:.9em; height:.9em; }
.mp-icon--lg{ width:1.4em; height:1.4em; }
.mp-inline{
  display:inline-flex;
  align-items:center;
  gap:.35em;
  white-space:nowrap;   /* не переносить внутри */
}

.post-card__authors {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.post-card__author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  font-size: 13px;
}

.post-card__author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.post-card__author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__author-avatar-placeholder {
  font-weight: 600;
  font-size: 13px;
}

.post-card__author-name {
  font-weight: 500;
}

.post-card__author-position {
  display: block;
  font-size: 11px;
  color: #9ca3af;
}

.item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  color: #6b7280; /* серый как дата */
  margin-bottom: 8px;
}

.item-meta__dot {
  font-weight: 700;
  color: #6b7280;
}

.blog-authors {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.blog-authors__title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
}

.blog-authors__list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
}

.blog-author__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f3f4f6; /* чтобы не было белой дырки, если картинка меньше */
}

.blog-author__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* заполняем круг без полос */
  object-position: center;/* центрируем логотип/фото */
}


.blog-author__info {
  display: flex;
  flex-direction: column;
}

.blog-author__name {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-author__icon {
  font-size: 16px;
  opacity: 0.8;
}

.blog-author__position {
  margin-top: 4px;
  font-size: 15px;
  color: #6b7280;
}

.author-page {
  padding: 40px 0 60px;
}

.author-page__header {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.author-page__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f4f6;
}

.author-page__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-page__info {
  max-width: 640px;
}

.author-page__name {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}

.author-page__position {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 16px;
}

.author-page__bio {
  font-size: 15px;
  color: #4b5563;
}

.author-page__posts {
  margin-top: 32px;
}

.author-page__posts-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
}

.authors-list {
  padding: 40px 0 60px;
}

.authors-list__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 32px;
}

.authors-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.author-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 24px 20px;
  border-radius: 24px;
  background: #f9fafb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease,
    background-color 0.15s ease;
}

.author-card:hover {
  background-color: #ffffff;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.11);
  transform: translateY(-1px);
}

.author-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-card__avatar-placeholder {
  font-size: 24px;
  font-weight: 600;
  color: #6b7280;
}

.author-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-card__name  {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-card__icon {
  font-size: 14px;
  opacity: 0.7;
}

.author-card__position {
  font-size: 14px;
  color: #6b7280;
}

.author-page {
  padding: 32px 0 64px;
}

/* HERO-карточка автора */

.author-hero {
  margin-bottom: 48px;
}

.author-hero__card {
  display: flex;
  gap: 32px;
  margin-top: 50px;
  align-items: flex-start;
  padding: 32px 32px 28px;
  border-radius: 24px;
  background: #f9fafb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
}

.author-hero__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-hero__content {
  max-width: 720px;
}

.author-hero__name {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 8px;
}

.author-hero__position {
  font-size: 16px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 16px;
}

.author-hero__bio {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
}

/* Блок статей */

.author-page__posts {
  margin-top: 8px;
}

.author-page__posts-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 24px;
}

/* Контейнер списка авторов */
.authors-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

/* Карточка-линк в списке авторов использует тот же стиль, что и hero */
.author-hero__card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 24px 20px;
  border-radius: 24px;
  background: #f9fafb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
}

.author-hero__card--list {
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease,
    background-color 0.15s ease;
}

.author-hero__card--list:hover {
  background-color: #ffffff;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.11);
  transform: translateY(-1px);
}

/* Аватар такой же, как в hero */
.author-hero__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Текстовая часть */
.author-hero__content {
  max-width: 720px;
}

.author-hero__name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-hero__name {
  font-size: 20px;
  font-weight: 600;
}

.author-hero__icon {
  font-size: 14px;
  opacity: 0.7;
}

.author-hero__position {
  font-size: 14px;
  color: #6b7280;
  margin-top: 4px;
}

/* ============================
   PAGINATION
   ============================ */

.pagination {
  margin: 48px 0 24px;
  display: flex;
  justify-content: center;
}

.pagination__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Элемент списка */
.pagination__item {
  display: flex;
}

/* Ссылка / span */
.pagination__link {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  line-height: 1;
  font-weight: 500;

  color: #1f2937; /* тёмно-серый */
  background-color: #ffffff;

  border: 1px solid #e5e7eb;
  border-radius: 8px;

  text-decoration: none;
  cursor: pointer;

  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

/* Hover */
.pagination__link:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
  color: #111827;
}

/* Active page */
.pagination__item--active .pagination__link {
  background-color: #2563eb; /* основной синий */
  border-color: #2563eb;
  color: #ffffff;
  cursor: default;
  pointer-events: none;
}

/* Prev / Next */
.pagination__item--prev .pagination__link,
.pagination__item--next .pagination__link {
  font-weight: 600;
}

/* Disabled (если понадобится) */
.pagination__item--disabled .pagination__link {
  opacity: 0.4;
  pointer-events: none;
}

/* Точки "..." */
.pagination__item--dots {
  padding: 0 4px;
  color: #9ca3af;
  font-size: 14px;
}

@media (max-width: 480px) {
  .pagination {
    margin: 32px 0 16px;
  }

  .pagination__link {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 13px;
    border-radius: 6px;
  }
}

.pagination__link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* =========================
   Article layout (2 columns)
   ========================= */
.news-detail .article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px; /* левый контент + правый сайдбар */
  grid-template-areas:
    "meta aside"
    "content aside";
  gap: 40px;
  align-items: start;
}

.news-detail .article-layout.article-layout--no-aside {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "meta"
    "content";
}

/*
  ВАЖНО:
  На мобильных нужно расположить оглавление (aside) ПЕРЕД статьей, но ПОСЛЕ meta-линии.
  Для этого делаем `.article-layout__main` "прозрачным" для grid,
  чтобы `.article-meta` и `.article-content` стали grid-items и могли быть переупорядочены через areas.
*/
.news-detail .article-layout__main {
  display: contents;
}

/* Важно для корректного поведения длинных блоков/картинок */
.news-detail .article-layout .article-meta {
  grid-area: meta;
  min-width: 0;
}

.news-detail .article-layout .article-content {
  grid-area: content;
  min-width: 0;
}

.news-detail .article-layout__aside {
  grid-area: aside;
  min-width: 0;
}

/* (Опционально) липкий сайдбар — включим позже, когда появятся блоки
.news-detail .article-layout__aside {
  position: sticky;
  top: 24px;
}
*/

/* Адаптив: на планшете/мобилке делаем 1 колонку */
@media (max-width: 1024px) {
  .news-detail .article-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "meta"
      "aside"
      "content";
    gap: 24px;
  }

  /* Чтобы фиксированный баннер снизу не перекрывал контент */
  .news-detail .news-detail-container {
    padding-bottom: 180px;
  }
}
/* =========================
   Blog article – wide layout
   ========================= */

/* Снимаем ограничения контейнера внутри статьи */
.news-detail .news-detail-container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* Широкая рабочая зона статьи */
.news-detail .article-layout {
  max-width: 85rem; /* 1360px */
  margin: 0 auto;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

/* Адаптив */
@media (max-width: 1440px) {
  .news-detail .article-layout {
    max-width: 78rem; /* ~1248px */
  }
}

@media (max-width: 1024px) {
  .news-detail .article-layout {
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Full-width hero image (no container math) */
.news-detail .article-hero {
  width: 100%;
  margin: 0 0 3.5rem 0;
}

.news-detail .article-hero img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
  display: block;
}

/* опционально: красивое скругление как у твоих карточек */
@media (min-width: 1024px) {
  .news-detail .article-hero img {
    border-radius: 3.125rem;
  }
}

@media (max-width: 768px) {
  .news-detail .article-hero {
    margin-bottom: 2rem;
  }
  .news-detail .article-hero img {
    max-height: 50vh;
    border-radius: 0;
  }
}
/* =========================
   Article meta (dates)
   ========================= */

.article-meta {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: #97a0ba;
  flex-wrap: wrap;
}

.article-meta__item {
  display: flex;
  gap: 0.375rem;
  align-items: center;
}

.article-meta__label {
  font-weight: 400;
}

.article-meta time {
  font-weight: 500;
  color: #292824;
}
.article-meta__item--author .article-meta__value {
  font-weight: 500;
  color: #292824;
}
/* Убираем лишние пробелы вокруг ":" */
.article-meta__byline-role {
  margin-right: 0;
}

.article-meta__byline-sep {
  margin: 0 0.25rem 0 0; /* только небольшой отступ справа */
}

/* Компетенция (жирная и чёрная) */
.article-meta__byline-role {
  color: #292824;
  font-weight: 500;
}

/* Имя автора — нейтральное */
.article-meta__byline-name {
  color: #97a0ba;
  font-weight: 400;
}

/* =========================
   TOC (dropdown + sticky + active)
   ========================= */

html { scroll-behavior: smooth; }

/* Sticky работает только если у родителей нет overflow hidden/auto */
.news-detail-container,
.article-layout,
.article-layout__aside {
  overflow: visible;
}

/* Сам блок оглавления */
.article-toc {
  position: sticky;
  top: 24px;
  z-index: 2;
}

/* Десктоп: фиксируем (sticky) весь сайдбар при скролле */
@media (min-width: 1025px) {
  .news-detail .article-layout__aside {
    position: sticky;
    top: 24px;
    align-self: start;
  }

  /* чтобы не было "двойного" sticky внутри sticky-контейнера */
  .article-toc {
    position: static;
    top: auto;
  }
}

/* Убираем стандартный маркер summary (крестик/треугольник) */
.article-toc__summary {
  list-style: none;
  cursor: pointer;
  user-select: none;

  display: flex;
  align-items: center;
  justify-content: space-between;

  /*
    Приводим к общей стилистике сайта:
    `.button` + `.button--accent` из `dist/assets/css/main.css`
  */
  padding: 1.375rem 2rem;
  border-radius: 1.375rem;
  background: #05f;
  color: #fff;
  font-weight: 500;
  font-size: 1.1875rem;
  line-height: 1.25;
  transition: box-shadow .3s, background .3s ease-in-out, transform .1s ease-in-out;
}

.article-toc__summary:hover {
  background: linear-gradient(97.95deg,#05f,#00a3f5);
}

.article-toc__summary:active {
  transform: translateY(1px);
}

.article-toc__summary:focus-visible {
  outline: 2px solid rgba(0, 85, 255, 0.35);
  outline-offset: 3px;
}

.article-toc__summary::-webkit-details-marker { display: none; }
.article-toc__summary::marker { content: ""; }

/* Заголовок */
.article-toc__title {
  color: inherit;
  margin: 0;
}

/* Выпадающая карточка */
.article-toc__nav {
  margin-top: 12px;
  padding: 18px 18px;

  border: 1.5px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);

  /* Скролл внутри выпадающего меню, если оглавление длинное */
  max-height: min(60vh, 520px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 1025px) {
  .article-toc__nav {
    max-height: min(70vh, 640px);
  }
}

/* Список */
.article-toc__list {
  margin: 0;
  padding-left: 0;
  list-style: none; /* убираем 1,2,3... */
  display: grid;
  gap: 14px;
}

/* Ссылки — стилизация как menu-links в шапке */
/* Перебиваем .news-detail .news-detail-container a{color:#05f} из main.css */
.news-detail .news-detail-container .article-toc__link {
  display: flex;
  align-items: center;
  color: #292824;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  transition: color .2s ease;
}

.news-detail .news-detail-container .article-toc__link:hover {
  color: #05f;
  text-decoration: none;
}

/* Активный пункт */
.news-detail .news-detail-container .article-toc__link.is-active {
  color: #292824;
  font-weight: 600;
  text-decoration: none;
}

/* Убираем маркер у активного пункта */
.article-toc__link.is-active::before { content: none; }

/* Чтобы якоря не прятались под шапкой */
.article-content h2 {
  scroll-margin-top: 90px;
}

/* Мобилка: sticky сохраняем, чтобы меню не "терялось" при скролле */
@media (max-width: 1024px) {
  .article-toc { top: 12px; }
}

/* Размеры summary — как у кнопок на сайте */
@media (max-width: 850px) {
  .article-toc__summary {
    font-size: 1rem;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
  }
}
/* ===== Стрелка ВНИЗ / ВВЕРХ (НЕ крестик) ===== */

.article-toc__chevron {
  position: relative;
  width: 18px;
  height: 12px;
  flex: 0 0 18px;
}

/* ДВА ЛУЧА СТРЕЛКИ */
.article-toc__chevron::before,
.article-toc__chevron::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 2px;
  background: #fff;
  transition: transform .2s ease, top .2s ease;
}

/* СТРЕЛКА ВНИЗ (V) */
.article-toc__chevron::before {
  left: 0;
  transform: translateY(-50%) rotate(45deg);
}
.article-toc__chevron::after {
  right: 0;
  transform: translateY(-50%) rotate(-45deg);
}

/* СТРЕЛКА ВВЕРХ (∧) */
.article-toc[open] .article-toc__chevron::before {
  transform: translateY(-50%) rotate(-45deg);
}
.article-toc[open] .article-toc__chevron::after {
  transform: translateY(-50%) rotate(45deg);
}

/* =========================
   Aside banner under TOC
   ========================= */

.article-aside-banner {
  margin-top: 12px;
  padding: 18px 18px;

  border-radius: 16px;
  background: #05f;
  color: #fff;
}

.article-aside-banner__text {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

.article-aside-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  margin-top: 14px;
  padding: 1rem 1.25rem;

  border-radius: 1rem;
  border: 1.5px solid rgba(255,255,255,.95);
  background: #fff;

  color: #05f;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;

  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}

.article-aside-banner__btn:visited {
  color: #05f;
}

.article-aside-banner__btn:hover,
.article-aside-banner__btn:visited:hover {
  background: linear-gradient(97.95deg,#05f,#00a3f5);
  color: #fff !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.article-aside-banner__btn:active,
.article-aside-banner__btn:visited:active {
  background: linear-gradient(97.95deg,#05f,#00a3f5);
  color: #fff !important;
}

.article-aside-banner__btn:focus-visible {
  outline: 2px solid rgba(255,255,255,.75);
  outline-offset: 3px;
}

.article-aside-banner__note {
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 1.25;
  color: rgba(255,255,255,.85);
  text-align: center;
}

/* =========================
   Article related links
   ========================= */
.article-related {
  margin: 2.5rem 0 0;
}

.article-related__heading {
  text-align: center;
  margin-bottom: 1.5rem;
}

.article-related .blog-container__content-small {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.article-related .blog-container__content-small-item {
  display: flex;
  flex-direction: column;
  background: #f6f7fa;
  border-radius: 1.875rem;
  padding: 2rem 2.5rem 2.5rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .25s ease;
  max-height: none;
  height: auto;
}

.article-related .blog-container__content-small-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .07);
}

.article-related .blog-container__content-small-item .blog-text {
  padding: 0;
}

.article-related .blog-container__content-small-item .date.body-m2 {
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0.625rem;
}

.article-related .blog-container__content-small-item .h3 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  color: #292824;
  padding-top: 0;
}

.article-related .blog-container__content-small-item .blog-description {
  display: none;
}

@media (max-width: 1024px) {
  .article-related__heading {
    margin-bottom: 1rem;
  }

  .article-related .blog-container__content-small {
    grid-template-columns: 1fr;
  }

  .article-related .blog-container__content-small-item {
    padding: 1.5rem 1.75rem 1.75rem;
    border-radius: 1.375rem;
  }

  .article-related .blog-container__content-small-item .h3 {
    font-size: 1.25rem;
  }
}

/* Mobile: banner fixed at the bottom of the screen */
@media (max-width: 1024px) {
  .article-aside-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;

    margin-top: 0;
    border-radius: 0;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  }
}

.page-title-container {
  padding-top: 24px;
}
.page-title-container {
  padding-top: 24px;
  padding-bottom: 32px;
}

.footer .footer__middle {
  margin-top: 0;
}

/* Ссылка внутри H1 (CUSTOM_H1 на /blog и /blog/news) */
.page-title-container h1.h1 a,
.page-title-container .h1 a {
  color: #004aad !important;
  text-decoration: underline !important;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 0.08em;
}

.page-title-container h1.h1 a:hover,
.page-title-container .h1 a:hover {
  text-decoration-thickness: 0.12em;
}
@media (max-width: 768px) {
  .page-title-container {
    padding-top: 16px;
    padding-bottom: 24px;
  }
}


/* End */
/* /local/templates/otevetto/styles.css?1772534302334 */
/* /local/templates/otevetto/template_styles.css?177253430233775 */
