/* YANTAR SERVICES V2 — intentionally scoped; no Hero/header/global overrides. */
.yantar-services-v2 {
  --ys2-ink: #101a32;
  --ys2-body: #455575;
  --ys2-orange: #b44704;
  --ys2-accent: #ff7409;
  --ys2-red: #b11632;
  --ys2-font: 'Manrope', 'Inter', system-ui, sans-serif;
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0;
  padding: var(--section-space) 0;
  color: var(--ys2-ink);
  background: radial-gradient(ellipse at 100% 40%, #f2f2ff 0, transparent 56%), linear-gradient(135deg, #fcfdff 0, #f7f8fe 100%);
  font-family: var(--ys2-font);
  font-size:16px;
  text-align: left;
  scroll-margin-top: 24px;
}
.yantar-services-v2 *, .yantar-services-v2 *::before, .yantar-services-v2 *::after { box-sizing: border-box; }
.yantar-services-v2 .ys2-wrap { width: min(1464px, calc(100% - 64px)); margin-inline: auto; }
.yantar-services-v2 .ys2-intro { margin: 0 0 23px; padding: 0 28px; }
.yantar-services-v2 .ys2-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 19px; font-size:16px; line-height: 1.4; font-weight: 800; }
.yantar-services-v2 .ys2-kicker > span { width: 25px; height: 4px; border-radius: 4px; background: var(--ys2-accent); }
.yantar-services-v2 .ys2-intro h2 { margin: 0;     color: var(--ys2-ink); }
.yantar-services-v2 .ys2-intro-copy { max-width: 1110px; margin: 13px 0 0; font-size:16px; font-weight: 400; line-height: 1.6; color: var(--ys2-body); }
.yantar-services-v2 .ys2-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px 20px; align-items: stretch; }
.yantar-services-v2 .ys2-card { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 24px 26px 20px; border: 1px solid #e2e6f1; border-radius: 25px; background: linear-gradient(145deg, #fff 0%, #fdfdff 50%, #f7f7fe 100%); box-shadow: 0 10px 25px -12px rgba(27,40,82,.19), inset 0 1px 0 rgba(255,255,255,.9); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.yantar-services-v2 .ys2-featured { grid-column: span 6; min-height: 324px; padding: 20px 28px; }
.yantar-services-v2 .ys2-medium { grid-column: span 4; min-height: 276px; padding: 18px 22px 16px; }
.yantar-services-v2 .ys2-compact { grid-column: span 3; min-height: 216px; padding: 15px 20px 16px; }
.yantar-services-v2 .ys2-label { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.yantar-services-v2 .ys2-label p { margin: 0; font-size:16px; line-height: 1.3; letter-spacing: -.025em; font-weight: 800; color: var(--ys2-ink); }
.yantar-services-v2 .ys2-label-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 34px; border-radius: 12px; color: #f46304; background: linear-gradient(130deg, #fff0e0, #fff5ee); }
.yantar-services-v2 .ys2-icon { width: 24px; height: 24px; display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.85; }
.yantar-services-v2 .ys2-copy { position: relative; z-index: 2; width: 54%; }
.yantar-services-v2 .ys2-copy h3 { margin: 0; font-size: 25px; line-height: 1.1; font-weight: 800; letter-spacing: -.045em; color: var(--ys2-ink); }
.yantar-services-v2 .ys2-description { margin: 9px 0 0; color: var(--ys2-body); font-size:16px; line-height: 1.45; font-weight: 400; }
.yantar-services-v2 .ys2-art { position: absolute; z-index: 1; display: block; width: 48%; height: auto; max-width: 100%; object-fit: contain; right: 12px; top: 14px; pointer-events: none; user-select: none; }
.yantar-services-v2 .ys2-medium .ys2-copy { width: 59%; }
.yantar-services-v2 .ys2-integrations .ys2-copy { width: 64%; }
.yantar-services-v2 .ys2-medium .ys2-copy h3 { font-size: 20px; line-height: 1.14; letter-spacing: -.04em; }
.yantar-services-v2 .ys2-medium .ys2-description { font-size:16px; line-height: 1.38; margin-top: 7px; }
.yantar-services-v2 .ys2-medium .ys2-art { width: 39%; top: 28px; right: 12px; }
.yantar-services-v2 .ys2-medium.ys2-integrations .ys2-art { width: 34%; top: 28px; }
.yantar-services-v2 .ys2-compact .ys2-label { gap: 9px; margin-bottom: 10px; }
.yantar-services-v2 .ys2-compact .ys2-label-icon { width: 32px; height: 29px; flex-basis: 32px; border-radius: 10px; }
.yantar-services-v2 .ys2-compact .ys2-icon { width: 21px; height: 21px; }
.yantar-services-v2 .ys2-compact .ys2-label p { font-size:16px; }
.yantar-services-v2 .ys2-compact .ys2-copy { width: 68%; }
.yantar-services-v2 .ys2-compact .ys2-copy h3 { font-size: 18px; line-height: 1.15; letter-spacing: -.035em; }
.yantar-services-v2 .ys2-compact .ys2-description { font-size:16px; line-height: 1.45; margin-top: 8px; }
.yantar-services-v2 .ys2-compact .ys2-art { top: 38px; right: 12px; width: 33%; }
.yantar-services-v2 .ys2-compact.ys2-mobile .ys2-art { top: 26px; width: 33%; right: 10px; }
.yantar-services-v2 .ys2-compact.ys2-ai .ys2-art { width: 29%; top: 39px; }
.yantar-services-v2 .ys2-response { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 21px; }
.yantar-services-v2 .ys2-featured .ys2-response { width: 65%; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin-top: 22px; padding-right: 10px; border-radius: 0 20px 0 0; background: linear-gradient(90deg, rgba(255,255,255,.94) 50%, rgba(252,252,255,.93) 85%, rgba(252,252,255,0)); }
.yantar-services-v2 .ys2-problem-group { min-width: 0; }
.yantar-services-v2 .ys2-problem-lead { margin: 0 0 7px; font-size:16px; line-height: 1.4; font-weight: 800; color: var(--ys2-red); }
.yantar-services-v2 .ys2-problems { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin: 0; padding: 0; list-style: none; }
.yantar-services-v2 .ys2-problems li { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; margin: 0; padding: 4px 8px; font-size:16px; font-weight: 500; line-height: 1.35; color: var(--ys2-red); border-radius: 12px; background: linear-gradient(100deg, #fff0f2, #ffe6ed); }
.yantar-services-v2 .ys2-problems li span { min-width: 0; overflow-wrap: break-word; }
.yantar-services-v2 .ys2-problem-icon { width: 14px; height: 14px; display: block; flex: 0 0 14px; stroke: currentColor; fill: none; stroke-width: 1.85; }
.yantar-services-v2 .ys2-solution { display: block; min-width: 0; border-left: 1px solid #d6dae6; padding-left: 16px; }
.yantar-services-v2 .ys2-featured .ys2-solution { border-color: #ffd5b4; }
.yantar-services-v2 .ys2-check { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; margin: 0 4px 0 0; color: #ee7f00; }
.yantar-services-v2 .ys2-featured .ys2-solution-title { display: block; margin-bottom: 5px; }
.yantar-services-v2 .ys2-solution p { margin: 0; font-size:16px; line-height: 1.43; color: var(--ys2-body); }
.yantar-services-v2 .ys2-solution strong { color: var(--ys2-ink); font-weight: 800; }
.yantar-services-v2 .ys2-solution strong::after { content: ' '; }
.yantar-services-v2 .ys2-featured .ys2-solution strong { white-space: nowrap; color: var(--ys2-orange); font-size:16px; }
.yantar-services-v2 .ys2-cta { position: relative; z-index: 3; display: inline-flex; justify-content: center; align-items: center; align-self: center; gap: 9px; max-width: 100%; min-height: 34px; margin: 13px auto 0; padding: 7px 14px; border: 1px solid #fb8e39; border-radius: 999px; background: #fffdfb; color: var(--ys2-orange); font-family: var(--ys2-font); font-size:16px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; text-decoration: none; text-align: center; box-shadow: inset 0 1px 0 #fff; transition: background .2s, border-color .2s, box-shadow .2s; }
.yantar-services-v2 .ys2-cta span { min-width: 0; }
.yantar-services-v2 .ys2-cta .ys2-send { width: 16px; height: 16px; display: block; flex: 0 0 16px; fill: var(--ys2-accent); stroke: var(--ys2-accent); stroke-width: 1.4; }
.yantar-services-v2 .ys2-cta .ys2-arrow { width: 15px; height: 15px; display: block; flex: 0 0 15px; fill: none; stroke: currentColor; transition: transform .2s; }
.yantar-services-v2 .ys2-featured .ys2-cta { position: absolute; right: 22px; bottom: 20px; margin: 0; }
.yantar-services-v2 .ys2-medium .ys2-cta { margin-top: auto; }
.yantar-services-v2 .ys2-medium .ys2-label-icon { height: 30px; width: 34px; flex-basis: 34px; }
.yantar-services-v2 .ys2-medium .ys2-response { margin-top: 17px; margin-bottom: 12px; gap: 14px; }
.yantar-services-v2 .ys2-medium .ys2-solution { padding-left: 12px; }
.yantar-services-v2 .ys2-compact .ys2-cta { margin-top: auto; width: 100%; }
.yantar-services-v2 .ys2-compact .ys2-copy { margin-bottom: 16px; }
.yantar-services-v2 .ys2-cta:focus-visible { outline: 3px solid #164b96; outline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .yantar-services-v2 .ys2-card:hover { transform: translateY(-3px); border-color: #edc8aa; box-shadow: 0 16px 30px -15px rgba(27,40,82,.24), inset 0 1px 0 #fff; }
  .yantar-services-v2 .ys2-cta:hover { background: #fff1e5; border-color: #e76b04; }
  .yantar-services-v2 .ys2-cta:hover .ys2-arrow { transform: translateX(2px); }
}
@media (max-width: 1399px) {
  .yantar-services-v2 .ys2-card { grid-column: span 6; }
  .yantar-services-v2 .ys2-featured { min-height: 355px; }
  .yantar-services-v2 .ys2-featured .ys2-response { width: 100%; margin-bottom: 12px; margin-top: 25px; }
  .yantar-services-v2 .ys2-featured .ys2-solution strong { white-space: normal; }
  .yantar-services-v2 .ys2-featured .ys2-cta { position: relative; right: auto; bottom: auto; align-self: flex-end; margin: auto 0 0; }
  .yantar-services-v2 .ys2-featured .ys2-art { width: 44%; }
  .yantar-services-v2 .ys2-copy { width: 57%; }
  .yantar-services-v2 .ys2-compact { min-height: 235px; }
  .yantar-services-v2 .ys2-compact .ys2-copy h3 { font-size: 21px; }
  .yantar-services-v2 .ys2-compact .ys2-description { font-size:16px; }
  .yantar-services-v2 .ys2-compact .ys2-art { width: 132px; right: 23px; }
  .yantar-services-v2 .ys2-compact.ys2-mobile .ys2-art { width: 116px; right: 23px; }
  .yantar-services-v2 .ys2-compact.ys2-ai .ys2-art { width: 110px; }
  .yantar-services-v2 .ys2-compact .ys2-cta { width: auto; }
  .yantar-services-v2 .ys2-card:last-child { grid-column: span 12; min-height: 210px; }
  .yantar-services-v2 .ys2-card:last-child .ys2-copy { max-width: 65%; }
}
@media (max-width: 1040px) {
  .yantar-services-v2 { padding: var(--section-space) 0; }
  .yantar-services-v2 .ys2-wrap { width: calc(100% - 40px); }
  .yantar-services-v2 .ys2-intro { padding: 0 5px; margin-bottom: 24px; }
  .yantar-services-v2 .ys2-grid { gap: 16px; }
  .yantar-services-v2 .ys2-featured { padding: 20px; }
  .yantar-services-v2 .ys2-featured .ys2-copy h3 { font-size: 22px; }
  .yantar-services-v2 .ys2-copy { width: 58%; }
  .yantar-services-v2 .ys2-medium .ys2-copy { width: 61%; }
  .yantar-services-v2 .ys2-medium .ys2-copy h3 { font-size: 20px; }
  .yantar-services-v2 .ys2-problems li { font-size:16px; }
  .yantar-services-v2 .ys2-solution p { font-size:16px; }
  .yantar-services-v2 .ys2-cta { min-height: 40px; }
}
@media (min-width: 701px) and (max-width: 1040px) {
  .yantar-services-v2 .ys2-copy,
  .yantar-services-v2 .ys2-medium .ys2-copy,
  .yantar-services-v2 .ys2-compact .ys2-copy { width: 100%; }
  .yantar-services-v2 .ys2-art,
  .yantar-services-v2 .ys2-featured .ys2-art,
  .yantar-services-v2 .ys2-medium .ys2-art,
  .yantar-services-v2 .ys2-medium.ys2-integrations .ys2-art,
  .yantar-services-v2 .ys2-compact .ys2-art,
  .yantar-services-v2 .ys2-compact.ys2-mobile .ys2-art,
  .yantar-services-v2 .ys2-compact.ys2-ai .ys2-art {
    position: relative; top: auto; right: auto; width: auto;
    max-height: 165px; max-width: 100%; align-self: center; margin: 14px auto;
  }
  .yantar-services-v2 .ys2-featured .ys2-response { margin-top: 8px; }
  .yantar-services-v2 .ys2-medium .ys2-response { margin-top: 8px; }
}
@media (max-width: 700px) {
  .yantar-services-v2 { padding: var(--section-space) 0; }
  .yantar-services-v2 .ys2-wrap { width: calc(100% - 32px); }
  .yantar-services-v2 .ys2-intro { padding: 0; }
  .yantar-services-v2 .ys2-kicker { font-size:16px; margin-bottom: 16px; }
  .yantar-services-v2 .ys2-intro h2 br { display: none; }
  .yantar-services-v2 .ys2-intro-copy { font-size:16px; line-height: 1.6; }
  .yantar-services-v2 .ys2-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .yantar-services-v2 .ys2-card, .yantar-services-v2 .ys2-card:last-child { grid-column: 1; min-height: 0; padding: 22px; border-radius: 23px; }
  .yantar-services-v2 .ys2-label p { font-size:16px; }
  .yantar-services-v2 .ys2-label { margin-bottom: 12px; }
  .yantar-services-v2 .ys2-copy, .yantar-services-v2 .ys2-medium .ys2-copy, .yantar-services-v2 .ys2-compact .ys2-copy, .yantar-services-v2 .ys2-card:last-child .ys2-copy { width: 100%; max-width: 100%; }
  .yantar-services-v2 .ys2-copy h3, .yantar-services-v2 .ys2-featured .ys2-copy h3, .yantar-services-v2 .ys2-medium .ys2-copy h3, .yantar-services-v2 .ys2-compact .ys2-copy h3 { font-size: 25px; line-height: 1.14; letter-spacing: -.035em; }
  .yantar-services-v2 .ys2-description, .yantar-services-v2 .ys2-medium .ys2-description, .yantar-services-v2 .ys2-compact .ys2-description { font-size:16px; line-height: 1.5; }
  .yantar-services-v2 .ys2-art, .yantar-services-v2 .ys2-featured .ys2-art, .yantar-services-v2 .ys2-medium .ys2-art, .yantar-services-v2 .ys2-medium.ys2-integrations .ys2-art, .yantar-services-v2 .ys2-compact .ys2-art, .yantar-services-v2 .ys2-compact.ys2-mobile .ys2-art, .yantar-services-v2 .ys2-compact.ys2-ai .ys2-art { position: relative; right: auto; top: auto; width: auto; max-width: 100%; max-height: 192px; height: auto; align-self: center; margin: 15px auto 2px; object-fit: contain; }
  .yantar-services-v2 .ys2-medium .ys2-art { max-height: 129px; }
  .yantar-services-v2 .ys2-response, .yantar-services-v2 .ys2-featured .ys2-response, .yantar-services-v2 .ys2-medium .ys2-response { width: 100%; grid-template-columns: minmax(0, 1fr); gap: 15px; margin: 18px 0; padding: 0; background: none; }
  .yantar-services-v2 .ys2-problem-lead { font-size:16px; }
  .yantar-services-v2 .ys2-problems { gap: 7px; }
  .yantar-services-v2 .ys2-problems li { font-size:16px; padding: 6px 9px; border-radius: 12px; }
  .yantar-services-v2 .ys2-solution, .yantar-services-v2 .ys2-medium .ys2-solution { padding: 12px 0 0; border-left: 0; border-top: 1px solid #e7d8ca; gap: 7px; }
  .yantar-services-v2 .ys2-solution p, .yantar-services-v2 .ys2-featured .ys2-solution strong { font-size:16px; line-height: 1.5; }
  .yantar-services-v2 .ys2-featured .ys2-solution strong { display: inline; margin: 0; }
  .yantar-services-v2 .ys2-featured .ys2-solution strong::after { content: ': '; }
  .yantar-services-v2 .ys2-cta, .yantar-services-v2 .ys2-featured .ys2-cta, .yantar-services-v2 .ys2-compact .ys2-cta { position: relative; right: auto; bottom: auto; align-self: center; width: 100%; min-height: 44px; margin: 5px 0 0; font-size:16px; gap: 8px; padding: 10px 10px; }
  .yantar-services-v2 .ys2-compact .ys2-copy { margin-bottom: 0; }
  .yantar-services-v2 .ys2-compact .ys2-art { max-height: 132px; margin: 17px auto; }
}
@media (max-width: 359px) {
  .yantar-services-v2 .ys2-wrap { width: calc(100% - 24px); }
  .yantar-services-v2 .ys2-card { padding: 18px; }
  .yantar-services-v2 .ys2-copy h3, .yantar-services-v2 .ys2-featured .ys2-copy h3, .yantar-services-v2 .ys2-medium .ys2-copy h3, .yantar-services-v2 .ys2-compact .ys2-copy h3 { font-size: 23px; }
  .yantar-services-v2 .ys2-cta { gap: 6px; font-size:16px; }
}
@media (prefers-reduced-motion: reduce) {
  .yantar-services-v2 .ys2-card, .yantar-services-v2 .ys2-cta, .yantar-services-v2 .ys2-arrow { transition: none; transform: none; }
}

/* YANTAR SERVICES V2 — TYPOGRAPHY >=16PX — BEGIN */

/* SERVICES SECTION */

.yantar-services-v2 {
    font-size: 16px;
    padding: var(--section-space) 0;
}

.yantar-services-v2 .ys2-wrap {
    width: min(1464px, calc(100% - 64px));
}

.yantar-services-v2 .ys2-intro {
    margin-bottom: 34px;
    padding-inline: 24px;
}

.yantar-services-v2 .ys2-kicker {
    font-size: 17px;
    margin-bottom: 20px;
    gap: 12px;
}

.yantar-services-v2 .ys2-kicker > span {
    width: 30px;
}


.yantar-services-v2 .ys2-intro-copy {
    font-size: 18px;
    line-height: 1.6;
    margin-top: 20px;
}

.yantar-services-v2 .ys2-grid {
    gap: 24px;
}

/* CARDS */

.yantar-services-v2 .ys2-card {
    min-height: 0;
    height: auto;
    padding: 28px;
    border-radius: 28px;
    gap: 0;
}

.yantar-services-v2 .ys2-label {
    margin-bottom: 16px;
    gap: 13px;
}

.yantar-services-v2 .ys2-label p,
.yantar-services-v2 .ys2-compact .ys2-label p {
    font-size: 16px;
    line-height: 1.4;
}

.yantar-services-v2 .ys2-label-icon,
.yantar-services-v2 .ys2-compact .ys2-label-icon,
.yantar-services-v2 .ys2-medium .ys2-label-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

.yantar-services-v2 .ys2-icon,
.yantar-services-v2 .ys2-compact .ys2-icon {
    width: 25px;
    height: 25px;
}

.yantar-services-v2 .ys2-copy,
.yantar-services-v2 .ys2-medium .ys2-copy,
.yantar-services-v2 .ys2-integrations .ys2-copy,
.yantar-services-v2 .ys2-compact .ys2-copy {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

/* HEADLINES */

.yantar-services-v2 .ys2-copy h3 {
    font-size: clamp(28px, 2.3vw, 33px);
    line-height: 1.17;
    letter-spacing: -.035em;
}

.yantar-services-v2 .ys2-medium .ys2-copy h3 {
    font-size: 26px;
    line-height: 1.2;
}

.yantar-services-v2 .ys2-compact .ys2-copy h3 {
    font-size: 23px;
    line-height: 1.2;
}

/* DESCRIPTIONS */

.yantar-services-v2 .ys2-description,
.yantar-services-v2 .ys2-medium .ys2-description,
.yantar-services-v2 .ys2-compact .ys2-description {
    font-size: 17px;
    line-height: 1.55;
    margin-top: 12px;
}

/* PROBLEMS AND SOLUTIONS */

.yantar-services-v2 .ys2-response,
.yantar-services-v2 .ys2-medium .ys2-response,
.yantar-services-v2 .ys2-featured .ys2-response {
    width: 100%;
    gap: 20px;
    margin: 26px 0 0;
    padding: 0;
    background: none;
    border-radius: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.yantar-services-v2 .ys2-problem-lead {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 12px;
}

.yantar-services-v2 .ys2-problems {
    gap: 9px;
}

.yantar-services-v2 .ys2-problems li {
    font-size: 16px;
    line-height: 1.45;
    padding: 9px 12px;
    gap: 9px;
    border-radius: 13px;
}

.yantar-services-v2 .ys2-problem-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
}

.yantar-services-v2 .ys2-solution,
.yantar-services-v2 .ys2-medium .ys2-solution {
    padding-left: 19px;
}

.yantar-services-v2 .ys2-solution p,
.yantar-services-v2 .ys2-featured .ys2-solution strong {
    font-size: 16px;
    line-height: 1.55;
    white-space: normal;
}

.yantar-services-v2 .ys2-check {
    width: 20px;
    height: 20px;
    vertical-align: -5px;
    margin-right: 7px;
}

/* TELEGRAM CTA */

.yantar-services-v2 .ys2-cta,
.yantar-services-v2 .ys2-featured .ys2-cta,
.yantar-services-v2 .ys2-compact .ys2-cta {
    position: relative;
    right: auto;
    bottom: auto;

    min-height: 54px;
    width: fit-content;
    max-width: 100%;

    margin: auto 0 0;
    padding: 13px 18px;

    font-size: 16px;
    font-weight: 750;
    line-height: 1.35;

    white-space: normal;
    text-align: center;
    gap: 8px;

    align-self: flex-end;
}

.yantar-services-v2 .ys2-cta .ys2-send,
.yantar-services-v2 .ys2-cta .ys2-arrow {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
}

/* FEATURED AND MEDIUM CARD LAYOUT */

.yantar-services-v2 .ys2-featured,
.yantar-services-v2 .ys2-medium {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, .92fr);

    grid-template-rows: auto auto auto;

    column-gap: 18px;
    align-content: start;
    min-height: 0;
}

.yantar-services-v2 .ys2-featured {
    padding: 30px;
}

.yantar-services-v2 .ys2-medium {
    padding: 26px;
}

.yantar-services-v2 .ys2-featured .ys2-label,
.yantar-services-v2 .ys2-medium .ys2-label {
    grid-column: 1;
    grid-row: 1;
}

.yantar-services-v2 .ys2-featured .ys2-copy,
.yantar-services-v2 .ys2-medium .ys2-copy {
    grid-column: 1;
    grid-row: 2;
}

.yantar-services-v2 .ys2-featured .ys2-art,
.yantar-services-v2 .ys2-medium .ys2-art,
.yantar-services-v2 .ys2-medium.ys2-integrations .ys2-art {
    position: relative;
    top: auto;
    right: auto;

    grid-column: 2;
    grid-row: 1 / 3;

    width: 100%;
    max-width: 100%;
    max-height: 225px;

    justify-self: center;
    align-self: center;

    margin: 0;
    object-fit: contain;
}

.yantar-services-v2 .ys2-featured .ys2-response,
.yantar-services-v2 .ys2-medium .ys2-response {
    grid-column: 1 / -1;
    grid-row: 3;
}

.yantar-services-v2 .ys2-featured .ys2-cta,
.yantar-services-v2 .ys2-medium .ys2-cta {
    grid-column: 1 / -1;
    grid-row: 4;

    justify-self: end;
    align-self: end;

    margin: 0;
    min-height: 54px;
}

/* COMPACT CARDS */

.yantar-services-v2 .ys2-compact {
    min-height: 0;
    padding: 25px;
}

.yantar-services-v2 .ys2-compact .ys2-copy {
    margin-bottom: 14px;
}

.yantar-services-v2 .ys2-compact .ys2-art,
.yantar-services-v2 .ys2-compact.ys2-mobile .ys2-art,
.yantar-services-v2 .ys2-compact.ys2-ai .ys2-art {
    position: relative;
    top: auto;
    right: auto;

    width: min(66%, 195px);
    max-width: 100%;
    max-height: 140px;

    align-self: flex-end;
    margin: 0;

    object-fit: contain;
}

.yantar-services-v2 .ys2-compact .ys2-cta {
    align-self: stretch;
    width: 100%;
}

/* SMALL DESKTOP */

@media (max-width: 1399px) {

    .yantar-services-v2 .ys2-grid {
        gap: 22px;
    }

    .yantar-services-v2 .ys2-card {
        grid-column: span 6;
    }

    .yantar-services-v2 .ys2-featured .ys2-response {
        width: 100%;
    }

    .yantar-services-v2 .ys2-card:last-child {
        grid-column: span 12;
    }

    .yantar-services-v2 .ys2-compact .ys2-copy h3 {
        font-size: 25px;
    }
}

/* TABLET */

@media (max-width: 1040px) {

    .yantar-services-v2 {
        padding: var(--section-space) 0;
    }

    .yantar-services-v2 .ys2-wrap {
        width: calc(100% - 40px);
    }

    .yantar-services-v2 .ys2-intro {
        padding-inline: 0;
    }

    .yantar-services-v2 .ys2-featured,
    .yantar-services-v2 .ys2-medium {
        display: flex;
        flex-direction: column;
    }

    .yantar-services-v2 .ys2-featured .ys2-art,
    .yantar-services-v2 .ys2-medium .ys2-art,
    .yantar-services-v2 .ys2-medium.ys2-integrations .ys2-art {
        position: relative;
        top: auto;
        right: auto;

        width: min(70%, 300px);
        max-height: 180px;

        align-self: center;
        margin: 18px auto;
    }

    .yantar-services-v2 .ys2-response,
    .yantar-services-v2 .ys2-medium .ys2-response,
    .yantar-services-v2 .ys2-featured .ys2-response {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        margin: 18px 0 0;
    }

    .yantar-services-v2 .ys2-solution,
    .yantar-services-v2 .ys2-medium .ys2-solution {
        border-left: 0;
        border-top: 1px solid #e7d8ca;
        padding: 15px 0 0;
    }
}

/* MOBILE */

@media (max-width: 700px) {

    .yantar-services-v2 {
        padding: var(--section-space) 0;
    }

    .yantar-services-v2 .ys2-wrap {
        width: calc(100% - 32px);
    }


    .yantar-services-v2 .ys2-intro-copy {
        font-size: 17px;
    }

    .yantar-services-v2 .ys2-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .yantar-services-v2 .ys2-card,
    .yantar-services-v2 .ys2-card:last-child {
        grid-column: 1;
        min-height: 0;
        padding: 24px;
    }

    .yantar-services-v2 .ys2-copy h3,
    .yantar-services-v2 .ys2-medium .ys2-copy h3,
    .yantar-services-v2 .ys2-compact .ys2-copy h3 {
        font-size: 27px;
    }

    .yantar-services-v2 .ys2-description,
    .yantar-services-v2 .ys2-medium .ys2-description,
    .yantar-services-v2 .ys2-compact .ys2-description {
        font-size: 17px;
    }

    .yantar-services-v2 .ys2-featured .ys2-art,
    .yantar-services-v2 .ys2-medium .ys2-art,
    .yantar-services-v2 .ys2-compact .ys2-art {
        max-width: 75%;
        max-height: 200px;
        margin: 16px auto;
    }

    .yantar-services-v2 .ys2-cta,
    .yantar-services-v2 .ys2-featured .ys2-cta,
    .yantar-services-v2 .ys2-compact .ys2-cta {
        width: 100%;
        min-height: 56px;
        margin-top: 6px;

        align-self: stretch;
        padding: 12px 13px;
        font-size: 16px;
    }
}

/* VERY SMALL MOBILE */

@media (max-width: 359px) {

    .yantar-services-v2 .ys2-wrap {
        width: calc(100% - 24px);
    }

    .yantar-services-v2 .ys2-card,
    .yantar-services-v2 .ys2-card:last-child {
        padding: 20px;
    }

    .yantar-services-v2 .ys2-copy h3,
    .yantar-services-v2 .ys2-medium .ys2-copy h3,
    .yantar-services-v2 .ys2-compact .ys2-copy h3 {
        font-size: 24px;
    }

    .yantar-services-v2 .ys2-cta,
    .yantar-services-v2 .ys2-featured .ys2-cta,
    .yantar-services-v2 .ys2-compact .ys2-cta {
        font-size: 16px;
        padding-inline: 8px;
        gap: 5px;
    }
}

/* YANTAR SERVICES V2 — TYPOGRAPHY >=16PX — END */

/* One shared action after the complete services grid. */
.yantar-services-v2 .ys2-section-cta { display:flex; justify-content:center; margin-top:32px; }
.yantar-services-v2 .ys2-section-cta .ys2-cta { margin:0; align-self:center; }
