.ym-articles-page,
.ym-article-single-page,
.ym-articles-page *,
.ym-article-single-page * {
  box-sizing: border-box;
}

.ym-articles-page,
.ym-article-single-page {
  --ym-articles-container-max: 1920px;
  --ym-articles-blue: var(--ym-color-blue);
  --ym-articles-text: var(--ym-color-ink);
  --ym-articles-muted: var(--ym-color-muted);
  --ym-articles-border: var(--ym-color-border);
  --ym-articles-bg: #f3f6fb;
  --ym-articles-card: var(--ym-color-white);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: visible;
  background:
    radial-gradient(circle at 84% 10%, rgba(32, 56, 102, 0.08) 0, rgba(32, 56, 102, 0) 28%),
    radial-gradient(circle at 12% 74%, rgba(32, 56, 102, 0.045) 0, rgba(32, 56, 102, 0) 26%),
    linear-gradient(180deg, #fbfdff 0%, #f3f6fb 48%, #ffffff 100%);
  color: var(--ym-articles-text);
  font-family: var(--ym-font-main);
}

.ym-articles-container {
  width: min(100%, 1920px);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 108px;
  padding-right: 108px;
  box-sizing: border-box;
}

.ym-articles-hero {
  position: relative;
  min-height: clamp(220px, 42vw, 460px);
  padding-top: clamp(96px, 7.6vw, 150px);
  padding-bottom: clamp(70px, 5vw, 110px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.58) 52%, rgba(255, 255, 255, 0.24) 100%),
    var(--ym-articles-hero-image, none) center center / cover no-repeat,
    var(--ym-articles-bg);
}

.ym-articles-hero::before,
.ym-articles-hero::after {
  content: none;
  display: none;
}

.ym-articles-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 2px minmax(0, 760px);
  column-gap: clamp(24px, 1.8vw, 36px);
  align-items: start;
}

.ym-articles-hero__line {
  width: 2px;
  height: clamp(160px, 13.2vw, 254px);
  margin-top: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(32, 56, 102, 0.95), rgba(32, 56, 102, 0.16));
}

.ym-articles-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: var(--ym-hero-title-size);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.ym-articles-list-section {
  padding: clamp(58px, 6vw, 116px) 0 clamp(78px, 7vw, 140px);
  background:
    radial-gradient(circle at 12% 12%, rgba(32, 56, 102, 0.06) 0, rgba(32, 56, 102, 0) 28%),
    linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
}

.ym-articles-list-title {
  margin: 0 0 clamp(22px, 2vw, 36px);
  color: #000000;
  font-size: var(--ym-section-title-size);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.ym-articles-list {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  display: grid;
  gap: clamp(14px, 1.4vw, 24px);
}

.ym-article-row__link {
  min-height: clamp(70px, 4.4vw, 86px);
  padding: clamp(12px, 1.1vw, 18px) clamp(22px, 1.7vw, 32px) clamp(12px, 1.1vw, 18px) clamp(16px, 1.3vw, 24px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(18px, 1.5vw, 28px);
  align-items: center;
  color: var(--ym-articles-text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(29, 49, 91, 0.12);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(20, 37, 73, 0.065);
  backdrop-filter: blur(8px);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.ym-article-row__link:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 49, 91, 0.20);
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(20, 37, 73, 0.105);
}

.ym-article-row__number {
  width: clamp(40px, 2.75vw, 54px);
  height: clamp(40px, 2.75vw, 54px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ym-color-white);
  background: var(--ym-articles-blue);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(32, 56, 102, 0.16);
  font-size: var(--ym-section-label-size-adaptive);
  line-height: 1;
  font-weight: 500;
}

.ym-article-row__title {
  font-size: var(--ym-section-description-size-adaptive);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.ym-article-row__arrow {
  width: clamp(20px, 1.5vw, 28px);
  height: clamp(20px, 1.5vw, 28px);
  border-top: 3px solid var(--ym-articles-blue);
  border-right: 3px solid var(--ym-articles-blue);
  transform: rotate(45deg);
  justify-self: end;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.ym-article-row__link:hover .ym-article-row__arrow {
  transform: translateX(3px) rotate(45deg);
}

.ym-articles-empty {
  margin: 0;
  color: var(--ym-articles-muted);
  font-size: var(--ym-section-description-size-tablet);
}

.ym-articles-pagination {
  margin-top: clamp(36px, 3vw, 58px);
  display: flex;
  justify-content: center;
}

.ym-articles-pagination ul {
  margin: 0;
  padding: 8px 12px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ym-color-white);
  border: 1px solid rgba(29, 49, 91, 0.12);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(20, 37, 73, 0.055);
}

.ym-articles-pagination a,
.ym-articles-pagination span {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ym-articles-blue);
  text-decoration: none;
  border-radius: 3px;
  font-size: var(--ym-font-size-card);
  line-height: 1;
}

.ym-articles-pagination .current {
  background: var(--ym-articles-blue);
  color: var(--ym-color-white);
}

.ym-article-single-page {
  padding: clamp(88px, 7vw, 134px) 0 clamp(70px, 7vw, 132px);
}

.ym-article-single {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: clamp(36px, 3.6vw, 70px) clamp(32px, 4vw, 86px);
  background: var(--ym-articles-card);
  border: 1px solid rgba(29, 49, 91, 0.10);
  border-radius: 16px;
  box-shadow: 0 22px 54px rgba(20, 37, 73, 0.075);
}

.ym-article-single__header {
  margin-bottom: clamp(26px, 2.4vw, 46px);
}

.ym-article-single h1 {
  margin: 0 0 16px;
  max-width: 860px;
  font-size: var(--ym-hero-title-size);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.ym-article-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ym-articles-muted);
  font-size: var(--ym-font-size-card);
  line-height: 1.4;
}

.ym-article-single__content {
  max-width: none;
  font-size: var(--ym-section-description-size);
  line-height: 1.48;
  letter-spacing: -0.018em;
}

.ym-article-single__content > *:first-child {
  margin-top: 0;
}

.ym-article-single__content > *:last-child {
  margin-bottom: 0;
}

.ym-article-single__content p {
  margin: 0 0 1.3em;
}

.ym-article-single__content h2,
.ym-article-single__content h3,
.ym-article-single__content h4 {
  margin: 1.5em 0 0.65em;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.ym-article-single__content h2 {
  font-size: var(--ym-section-title-size);
}

.ym-article-single__content h3 {
  font-size: var(--ym-section-title-size-tablet);
}

.ym-article-single__content ul,
.ym-article-single__content ol {
  margin: 0 0 1.35em 1.25em;
  padding: 0;
}

.ym-article-single__content li {
  margin-bottom: 0.55em;
}

.ym-article-single__content a {
  color: var(--ym-articles-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.ym-article-single__content blockquote {
  margin: 1.7em 0;
  padding: 22px 28px;
  color: var(--ym-articles-text);
  background: rgba(30, 55, 104, 0.055);
  border-left: 3px solid var(--ym-articles-blue);
  border-radius: 12px;
}

.ym-article-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(20, 37, 73, 0.08);
}

@media (max-width: 1800px) {
  .ym-articles-container {
    padding-left: 96px;
    padding-right: 96px;
  }
}

@media (max-width: 1650px) {
  .ym-articles-container {
    padding-left: 84px;
    padding-right: 84px;
  }
}

@media (max-width: 1450px) {
  .ym-articles-container {
    padding-left: 72px;
    padding-right: 72px;
  }
}

@media (max-width: 1280px) {
  .ym-articles-container {
    padding-left: 64px;
    padding-right: 64px;
  }
}

@media (max-width: 1180px) {
  .ym-articles-hero {
    min-height: 620px;
  }
}

@media (max-width: 1100px) {
  .ym-articles-container {
    padding-left: 52px;
    padding-right: 52px;
  }
}

@media (max-width: 900px) {
  .ym-articles-container {
    padding-left: 38px;
    padding-right: 38px;
  }
}

@media (max-width: 767px) {
  .ym-articles-container {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 760px) {
  .ym-articles-hero {
    min-height: 520px;
    padding-top: 82px;
    padding-bottom: 42px;
    background:
      var(--ym-articles-hero-image-mobile, var(--ym-articles-hero-image, none)) center top / cover no-repeat,
      var(--ym-articles-bg);
  }

  .ym-articles-hero::after {
    display: none;
  }

  .ym-articles-hero__content {
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
    display: block;
    text-align: center;
  }

  .ym-articles-hero__line {
    display: none;
  }

  .ym-articles-hero h1 {
    max-width: 285px;
    margin: 0 auto;
    font-size: var(--ym-hero-title-size-mobile);
    line-height: 1.02;
    text-align: center;
  }

  .ym-articles-list-section {
    padding-top: 46px;
  }

  .ym-articles-list {
    width: 100%;
    gap: 13px;
  }

  .ym-article-row__link {
    min-height: 62px;
    padding: 10px 14px;
    grid-template-columns: auto 1fr auto;
    gap: 13px;
    border-radius: 12px;
    backdrop-filter: none;
  }

  .ym-article-row__number {
    width: 38px;
    height: 38px;
  }

  .ym-article-row__arrow {
    width: 17px;
    height: 17px;
    border-width: 2px;
  }

  .ym-article-single-page {
    padding-top: 86px;
  }

  .ym-article-single {
    padding: 28px 20px 34px;
    border-radius: 12px;
  }

  .ym-article-single__meta {
    gap: 6px;
  }

  .ym-article-single__content {
    font-size: var(--ym-section-description-size-tablet);
  }
}

@media (max-width: 480px) {
  .ym-articles-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 440px) {
  .ym-article-row__link {
    grid-template-columns: auto 1fr;
  }

  .ym-article-row__number {
    border-radius: 10px;
  }

  .ym-article-row__arrow {
    display: none;
  }
}

@media (max-width: 390px) {
  .ym-articles-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ym-articles-hero {
    min-height: 490px;
    padding-top: 76px;
    padding-bottom: 34px;
  }

  .ym-articles-hero h1,
  .ym-article-single h1 {
    font-size: var(--ym-hero-title-size-mobile-sm);
  }

  .ym-articles-hero h1 {
    max-width: 270px;
  }

  .ym-articles-list-title {
    font-size: var(--ym-section-title-size-mobile-sm);
  }
}
