/* главня: блок о компании в цифрах */

.st { padding: clamp(55px, 40px + 2.4vw, 105px) 0; background: #fff; }

.st__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px 40px;
  margin-bottom: clamp(25px, 18px + 1vw, 40px);
}

.st__title {
  margin: 0;
  font-family: GothamPro-Bold;
  font-size: clamp(26px, 18px + 1.6vw, 44px);
  line-height: 1.1;
  text-align: left;
  text-transform: none;
  color: #14243f;
}

.st__lead {
  max-width: 520px;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #46556b;
}

/* сетка */
.st__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(190px, auto);
  gap: clamp(12px, 8px + .6vw, 18px);
}

.st__grid_6 {
  grid-template-columns: 1.12fr 1fr 1fr 1.12fr;
  grid-template-areas:
    "a b c f"
    "a d e f";
}

.st__grid_6 > .st__tile:nth-child(1) { grid-area: a; }
.st__grid_6 > .st__tile:nth-child(2) { grid-area: b; }
.st__grid_6 > .st__tile:nth-child(3) { grid-area: c; }
.st__grid_6 > .st__tile:nth-child(4) { grid-area: d; }
.st__grid_6 > .st__tile:nth-child(5) { grid-area: e; }
.st__grid_6 > .st__tile:nth-child(6) { grid-area: f; }

/* плитка */
.st__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 16px + 1vw, 34px);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s;
}

.st__tile:hover { transform: translateY(-4px); }

.st__tile_light {
  background: #f2f5f9;
  color: #14243f;
}

.st__tile_light:hover { box-shadow: 0 20px 44px rgba(12, 28, 52, .12); }

.st__tile_blue {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, .16), transparent 60%),
    linear-gradient(150deg, #3f74c4 0%, #2b559a 55%, #24497f 100%);
  color: #fff;
  box-shadow: 0 16px 44px rgba(48, 96, 168, .28);
}

.st__tile_blue:hover { box-shadow: 0 26px 58px rgba(48, 96, 168, .38); }

.st__tile_wine {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(216, 189, 136, .18), transparent 60%),
    linear-gradient(150deg, #4a0616 0%, #36020f 60%, #24010a 100%);
  color: #d8bd88;
  box-shadow: 0 16px 44px rgba(54, 2, 15, .32);
}

.st__tile_wine:hover { box-shadow: 0 26px 58px rgba(54, 2, 15, .42); }

.st__img {
  position: absolute;
  right: -6%;
  bottom: -6%;
  z-index: 1;
  width: 58%;
  max-height: 62%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}

.st__value {
  position: relative;
  z-index: 2;
  font-family: GothamPro-Bold;
  font-size: clamp(26px, 18px + 1.7vw, 46px);
  line-height: 1.06;
  letter-spacing: -.01em;
  overflow-wrap: normal;
  word-break: keep-all;
  font-variant-numeric: tabular-nums;
}

.st__grid_6 > .st__tile:nth-child(1) .st__value,
.st__grid_6 > .st__tile:nth-child(6) .st__value {
  font-size: clamp(30px, 20px + 2vw, 54px);
}

/* свг иконки */
.st__ico {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin: 10px 0;
}

.st__ico svg {
  width: clamp(64px, 34px + 5vw, 118px);
  height: auto;
  opacity: .3;
}

.st__tile_light .st__ico svg { color: #3060a8; opacity: .22; }

.st__cap {
  position: relative;
  z-index: 2;
  margin: auto 0 0;
  max-width: 36ch;
  font-size: clamp(15px, 14px + .2vw, 16.5px);
  line-height: 1.5;
}

.st__tile_light .st__cap { color: #46556b; }
.st__tile_blue .st__cap  { color: rgba(255, 255, 255, .88); }
.st__tile_wine .st__cap  { color: rgba(216, 189, 136, .85); }


/* медюха */
@media (max-width: 991px) {
  .st__grid,
  .st__grid_6 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: none;
    grid-auto-rows: minmax(168px, auto);
  }

  .st__grid_6 > .st__tile:nth-child(n) { grid-area: auto; }
  .st__head { flex-direction: column; align-items: flex-start; }
  .st__ico svg { width: clamp(56px, 30px + 5vw, 84px); }
  .st__title { padding: 22px 20px; }
  .st__viz { min-height: 96px; margin: 8px 0 2px; }
  .st__chart { max-width: 260px; }
  .st__cap { max-width: none; }
}

@media (max-width: 575px) {
  .st__grid { grid-template-columns: 1fr; }
  .st__tile_wide { grid-column: span 1; }
  .st__img { width: 46%; }
}

@media (prefers-reduced-motion: reduce) {
  .st__tile { transition: none; }
}

/* диаграммка */
.st__viz {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin: 14px 0 4px;
}

.st__chart {
  width: 100%;
  max-width: 330px;
  height: auto;
  font-family: GothamPro-Medium, Arial, sans-serif;
}

.st__chart rect {
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(0);
}

.st__chart-line {
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
}

.st__chart-dot,
.st__chart text { opacity: 0; }

.st__chart.is-in rect { animation: stGrow .85s cubic-bezier(.2, .8, .3, 1) forwards; }
.st__chart.is-in rect:nth-of-type(2) { animation-delay: .1s; }
.st__chart.is-in rect:nth-of-type(3) { animation-delay: .2s; }
.st__chart.is-in rect:nth-of-type(4) { animation-delay: .3s; }
.st__chart.is-in rect:nth-of-type(5) { animation-delay: .4s; }

.st__chart.is-in .st__chart-line { animation: stDraw 1.5s .45s cubic-bezier(.4, 0, .2, 1) forwards; }
.st__chart.is-in .st__chart-dot  { animation: stFade .5s 1.75s ease forwards; }
.st__chart.is-in text            { animation: stFade .5s ease forwards; }
.st__chart.is-in text:nth-of-type(2) { animation-delay: .1s; }
.st__chart.is-in text:nth-of-type(3) { animation-delay: .2s; }
.st__chart.is-in text:nth-of-type(4) { animation-delay: .3s; }
.st__chart.is-in text:nth-of-type(5) { animation-delay: .4s; }

@keyframes stGrow { to { transform: scaleY(1); } }
@keyframes stDraw { to { stroke-dashoffset: 0; } }
@keyframes stFade { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .st__chart rect { transform: scaleY(1); animation: none; }
  .st__chart-line { stroke-dashoffset: 0; animation: none; }
  .st__chart-dot, .st__chart text { opacity: 1; animation: none; }
}

/* вторая диаграмма */
.st__area-fill {
  transform: scaleX(0);
  transform-box: fill-box;
  transform-origin: left center;
}

.st__area-dot { opacity: 0; }

.st__chart_area.is-in .st__area-fill { animation: stWipe 1.25s cubic-bezier(.35, 0, .2, 1) forwards; }
.st__chart_area.is-in .st__chart-line { animation: stDraw 1.35s cubic-bezier(.35, 0, .2, 1) forwards; }

.st__chart_area.is-in .st__area-dot { animation: stPop .5s cubic-bezier(.2, .9, .3, 1.4) forwards; }
.st__chart_area.is-in .st__area-dot:nth-of-type(1) { animation-delay: .35s; }
.st__chart_area.is-in .st__area-dot:nth-of-type(2) { animation-delay: .55s; }
.st__chart_area.is-in .st__area-dot:nth-of-type(3) { animation-delay: .75s; }
.st__chart_area.is-in .st__area-dot:nth-of-type(4) { animation-delay: .95s; }
.st__chart_area.is-in .st__area-dot:nth-of-type(5) { animation-delay: 1.15s; }

@keyframes stWipe { to { transform: scaleX(1); } }

@keyframes stPop {
  0%   { opacity: 0; transform: scale(0); }
  70%  { opacity: 1; transform: scale(1.35); }
  100% { opacity: 1; transform: scale(1); }
}

.st__area-dot {
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: reduce) {
  .st__area-fill { transform: scaleX(1); animation: none; }
  .st__area-dot { opacity: 1; animation: none; }
}