/* Top City v14 — About and concept cases. */
.about-page,
.cases-page {
  --story-paper: #f2efe7;
  --story-ink: #0b0d0c;
  --story-muted: #666861;
}

.story-hero {
  min-height: 760px;
  display: flex;
  align-items: center;
}

.story-hero .page-hero-copy {
  max-width: min(770px, 48%);
}

.story-hero-art {
  z-index: 2;
  position: absolute;
  inset: 28px 26px 28px 48%;
  pointer-events: none;
}

.story-hero-art figure {
  margin: 0;
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  background: #181a19;
  box-shadow: 0 34px 86px rgba(0, 0, 0, .42);
}

.story-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.76) contrast(1.08) brightness(.74);
}

.story-hero-main {
  inset: 4% 2% 4% 4%;
  border-radius: 24px;
}

.story-hero-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 9, .74), transparent 35%), linear-gradient(0deg, rgba(8, 10, 9, .58), transparent 52%);
}

.story-hero-main::before {
  content: "";
  z-index: 2;
  position: absolute;
  top: -30%;
  left: -28%;
  width: 20%;
  height: 160%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 178, .32), transparent);
  transform: skewX(-18deg);
  animation: story-glint 7.6s 1.2s ease-in-out infinite;
}

.story-hero-label {
  z-index: 5;
  position: absolute;
  right: 4%;
  bottom: 8%;
  max-width: 285px;
  padding: 18px 21px;
  color: rgba(255, 255, 255, .68);
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 14px;
  background: rgba(8, 10, 9, .72);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .3);
  font-size: 10px;
  line-height: 1.5;
  backdrop-filter: blur(15px);
}

.story-hero-label strong {
  display: block;
  margin-bottom: 7px;
  color: var(--lime);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 9px;
}

.story-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 690px;
  margin-top: 42px;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.story-hero-facts div {
  min-height: 52px;
  padding-right: 17px;
}

.story-hero-facts div + div {
  padding-left: 17px;
  border-left: 1px solid rgba(255, 255, 255, .13);
}

.story-hero-facts strong {
  display: block;
  color: var(--lime);
  font-size: 22px;
  line-height: 1;
}

.story-hero-facts span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, .49);
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .08em;
}

.company-manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(350px, .8fr);
  align-items: end;
  gap: clamp(48px, 8vw, 130px);
  background: var(--story-paper);
}

.company-manifesto .page-kicker,
.company-values .page-kicker {
  color: #666861;
}

.company-manifesto h2 {
  max-width: 1050px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -.055em;
  font-size: clamp(48px, 6.3vw, 104px);
  line-height: .91;
}

.company-manifesto h2 em {
  color: #b3490f;
  font-style: normal;
}

.manifesto-copy {
  padding-bottom: 8px;
}

.manifesto-copy > p {
  margin: 0;
  color: var(--story-muted);
  font-size: 15px;
  line-height: 1.75;
}

.manifesto-copy dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 35px 0 0;
  padding-top: 26px;
  border-top: 1px solid rgba(16, 18, 17, .17);
}

.manifesto-copy dt {
  color: #a4410c;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.manifesto-copy dd {
  margin: 7px 0 0;
  color: #656760;
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .09em;
}

.company-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, .8fr);
  align-items: stretch;
  gap: 16px;
  color: #f6f3ec;
  background: #090b0a;
}

.company-feature-visual {
  min-height: 650px;
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.company-feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.77) contrast(1.08) brightness(.79);
}

.company-feature-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 10, 9, .82), transparent 60%);
}

.company-feature-visual figcaption {
  z-index: 2;
  position: absolute;
  right: 30px;
  bottom: 28px;
  left: 30px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, .27);
}

.company-feature-visual figcaption span {
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 8px;
  font-weight: 850;
}

.company-feature-visual figcaption strong {
  display: block;
  max-width: 530px;
  margin-top: 9px;
  font-size: 20px;
  line-height: 1.25;
}

.company-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 78px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: radial-gradient(circle at 100% 0, rgba(237, 124, 36, .1), transparent 20rem), #121513;
}

.company-feature-copy h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -.052em;
  font-size: clamp(42px, 4.8vw, 76px);
  line-height: .95;
}

.company-feature-copy h2 em {
  color: var(--lime);
  font-style: normal;
}

.company-feature-copy > p:not(.page-kicker) {
  margin: 27px 0 31px;
  color: rgba(255, 255, 255, .57);
  font-size: 14px;
  line-height: 1.72;
}

.company-feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.company-feature-list div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.company-feature-list span {
  color: var(--lime);
  font-size: 10px;
  font-weight: 850;
}

.company-feature-list strong {
  font-size: 13px;
  line-height: 1.35;
}

.company-system {
  background: #eeebe3;
}

.company-system-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(17, 19, 18, .16);
  border-left: 1px solid rgba(17, 19, 18, .16);
}

.company-system-grid article {
  min-height: 250px;
  padding: clamp(24px, 2.7vw, 42px);
  border-right: 1px solid rgba(17, 19, 18, .16);
  border-bottom: 1px solid rgba(17, 19, 18, .16);
}

.company-system-grid span {
  color: #a4410c;
  font-size: 10px;
  font-weight: 850;
}

.company-system-grid h3 {
  margin: 55px 0 14px;
  letter-spacing: -.03em;
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: 1;
}

.company-system-grid p {
  margin: 0;
  color: #656760;
  font-size: 12px;
  line-height: 1.6;
}

.company-values {
  background: #f7f5ef;
}

.company-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.company-values-grid article {
  min-height: 330px;
  padding: clamp(30px, 3.8vw, 58px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 18, 17, .13);
  border-radius: 18px;
  background: linear-gradient(145deg, #fffef9, #e9e6de);
}

.company-values-grid article::before {
  content: attr(data-number);
  position: absolute;
  right: -6px;
  bottom: -26px;
  color: rgba(14, 16, 15, .035);
  font-size: 170px;
  font-weight: 900;
  line-height: 1;
}

.company-values-grid span {
  color: #a4410c;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 9px;
  font-weight: 850;
}

.company-values-grid h3 {
  max-width: 430px;
  margin: 65px 0 17px;
  letter-spacing: -.04em;
  font-size: clamp(28px, 2.8vw, 45px);
  line-height: .98;
}

.company-values-grid p {
  max-width: 430px;
  margin: 0;
  color: #62645e;
  font-size: 13px;
  line-height: 1.65;
}

/* Cases */
.cases-hero .story-hero-art {
  left: 50%;
}

.cases-hero .story-hero-main {
  inset: 3% 7% 13% 2%;
  transform: rotate(-1.2deg);
}

.cases-hero-secondary {
  z-index: 4;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 35%;
  border-radius: 16px;
  transform: rotate(2.4deg);
}

.concept-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  margin: 0 18px;
  padding: 20px clamp(22px, 4vw, 62px);
  color: #f5f2ea;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: #0c0e0d;
}

.concept-note strong {
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 9px;
}

.concept-note p {
  margin: 0;
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
  line-height: 1.55;
}

.concept-note span {
  color: rgba(255, 255, 255, .34);
  font-size: 10px;
}

.cases-catalog {
  background: #f1eee6;
}

.case-concepts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.concept-case {
  min-height: 600px;
  position: relative;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(17, 19, 18, .14);
  border-radius: 19px;
  background: #141615;
  box-shadow: 0 16px 46px rgba(18, 20, 19, .08);
}

.concept-case figure {
  height: 365px;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.concept-case figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 9, 8, .84), transparent 52%);
}

.concept-case img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .75s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
}

.concept-case:hover img {
  transform: scale(1.045);
  filter: saturate(1.07) contrast(1.03);
}

.concept-case:nth-child(2) img,
.concept-case:nth-child(5) img {
  object-position: 70% center;
}

.concept-case:nth-child(3) img,
.concept-case:nth-child(6) img {
  object-position: 100% center;
}

.case-brand {
  z-index: 2;
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 12px;
  color: var(--case-ink, #0b0d0b);
  border-radius: 999px;
  background: var(--case-accent, var(--lime));
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 9px;
  font-weight: 900;
}

.concept-case-copy {
  min-height: 235px;
  padding: 27px 28px 31px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .055), transparent), #111412;
}

.concept-case-copy > span {
  color: var(--case-accent, var(--lime));
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 8px;
  font-weight: 850;
}

.concept-case-copy h3 {
  margin: 14px 0 12px;
  letter-spacing: -.035em;
  font-size: clamp(25px, 2.15vw, 36px);
  line-height: 1;
}

.concept-case-copy p {
  margin: 0;
  color: rgba(255, 255, 255, .54);
  font-size: 12px;
  line-height: 1.6;
}

.concept-case-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.concept-case-copy li {
  padding: 6px 9px;
  color: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 750;
}

.case-yandex { --case-accent: #ffd633; --case-ink: #151515; }
.case-sber { --case-accent: #e56f1d; --case-ink: #07140c; }
.case-aeroflot { --case-accent: #ed2d3c; --case-ink: #fff; }
.case-vk { --case-accent: #8d72ff; --case-ink: #fff; }
.case-vkusvill { --case-accent: #d26317; --case-ink: #0b1508; }
.case-rzd { --case-accent: #e62b32; --case-ink: #fff; }

.cases-method {
  color: #f5f2ea;
  background: radial-gradient(circle at 80% 10%, rgba(237, 124, 36, .1), transparent 28rem), #0a0c0b;
}

.cases-method .inner-heading > p:last-child,
.cases-method .inner-heading p:first-child {
  color: rgba(255, 255, 255, .52);
}

.cases-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr);
  gap: 16px;
}

.cases-showcase figure {
  min-height: 610px;
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
}

.cases-showcase figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.06) brightness(.82);
}

.cases-showcase figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 9, 8, .85), transparent 54%);
}

.cases-showcase figcaption {
  z-index: 2;
  position: absolute;
  right: 30px;
  bottom: 28px;
  left: 30px;
}

.cases-showcase figcaption span {
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 8px;
  font-weight: 850;
}

.cases-showcase figcaption strong {
  display: block;
  max-width: 560px;
  margin-top: 11px;
  font-size: 21px;
  line-height: 1.25;
}

.case-method-steps {
  display: grid;
  gap: 10px;
}

.case-method-steps article {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 20px;
  min-height: 141px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}

.case-method-steps span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #0b0d0b;
  border-radius: 50%;
  background: var(--lime);
  font-size: 11px;
  font-weight: 900;
}

.case-method-steps h3 {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 13px;
}

.case-method-steps p {
  margin: 0;
  color: rgba(255, 255, 255, .5);
  font-size: 11px;
  line-height: 1.55;
}

@keyframes story-glint {
  0%, 20% { left: -28%; opacity: 0; }
  31% { opacity: .85; }
  58% { left: 120%; opacity: .36; }
  69%, 100% { left: 120%; opacity: 0; }
}

@media (width <= 1260px) {
  .story-hero .page-hero-copy {
    max-width: 53%;
  }

  .story-hero-art {
    left: 52%;
  }

  .company-system-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .case-concepts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width <= 980px) {
  .story-hero {
    min-height: 1080px;
    align-items: flex-start;
    padding-bottom: 480px;
  }

  .story-hero .page-hero-copy {
    max-width: 820px;
  }

  .story-hero-art {
    inset: auto 20px 24px 20px;
    height: 440px;
  }

  .company-manifesto,
  .company-feature,
  .cases-showcase {
    grid-template-columns: 1fr;
  }

  .company-feature-visual,
  .cases-showcase figure {
    min-height: 540px;
  }

  .company-values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width <= 680px) {
  .story-hero {
    min-height: 970px;
    padding: 46px 18px 390px;
  }

  .story-hero-art {
    right: 8px;
    bottom: 12px;
    left: 8px;
    height: 350px;
  }

  .story-hero-main {
    inset: 7% 2% 5% 2%;
    border-radius: 16px;
  }

  .story-hero-label {
    right: 5%;
    bottom: 7%;
    max-width: 250px;
  }

  .story-hero-facts {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .story-hero-facts div {
    min-height: 48px;
    padding: 9px 0;
  }

  .story-hero-facts div + div {
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-left: 0;
  }

  .company-manifesto,
  .company-feature,
  .cases-showcase {
    gap: 28px;
  }

  .manifesto-copy dl,
  .company-system-grid,
  .company-values-grid,
  .case-concepts-grid {
    grid-template-columns: 1fr;
  }

  .company-feature-visual,
  .cases-showcase figure {
    min-height: 410px;
    border-radius: 14px;
  }

  .company-system-grid article {
    min-height: 205px;
  }

  .concept-note {
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 0 6px;
  }

  .concept-note span {
    display: none;
  }

  .concept-case {
    min-height: 0;
  }

  .concept-case figure {
    height: 320px;
  }

  .cases-hero-secondary {
    width: 45%;
    height: 28%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-hero-main::before,
  .concept-case img {
    animation: none;
    transition: none;
  }
}
