/* «О компании»: the same tokens, type scale and glass motifs as the home page */
.about-page {
  --violet: #742cf5;
  --violet-deep: #6425ce;
  --line: #e2daf1;
  --soft: #ededf8;
  background: var(--paper);
}
.about-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #645d78;
  font-size: 14px;
  font-weight: 550;
}
.about-kicker::before { content: ""; width: 7px; aspect-ratio: 1; border-radius: 50%; background: var(--violet); }
.about-page h2 {
  font-size: clamp(30px, 3.6vw, 56px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.055em;
}
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--violet-deep);
  font-size: 15px;
  font-weight: 600;
}
.about-link span { display: inline-block; transition: transform .2s var(--ease-out); }

/* Photos: fixed proportions per place, the picture fills the frame */
.about-photo { position: relative; margin: 0; overflow: hidden; border-radius: clamp(18px, 2vw, 30px); background: #e7defa; }
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-photo-hero, .about-photo-classic { aspect-ratio: 4 / 3; }
.about-photo-portrait { aspect-ratio: 4 / 5; }
.about-photo-wide { aspect-ratio: 16 / 9; }
.about-photo-landscape { aspect-ratio: 3 / 2; }
.about-photo-panorama { aspect-ratio: 21 / 9; }
.about-photo-panorama img { object-position: 24% center; }

/* Hero */
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding-top: clamp(120px, 11vw, 170px);
  padding-bottom: clamp(28px, 4vw, 56px);
  background: radial-gradient(ellipse at 85% 10%, #e3d6ff, transparent 55%), linear-gradient(180deg, #f1eefb, var(--paper));
}
.about-hero h1 {
  margin-top: 16px;
  font-size: clamp(44px, 5.4vw, 92px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.065em;
  text-wrap: initial;
}
.about-line { display: block; }
.about-accent { background: linear-gradient(100deg, #8f45ff, #6522ea); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-lead { max-width: 54ch; margin-top: clamp(16px, 1.6vw, 26px); color: #4e4865; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.5; }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: clamp(20px, 2.2vw, 34px); }
.about-actions .button { min-height: 48px; gap: 12px; padding: 12px 22px; }
.about-photo-hero { box-shadow: 0 30px 70px #4d2d6c26; }

/* Facts */
.about-facts dl {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--line);
}
.about-facts dl > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: clamp(18px, 2vw, 30px) clamp(12px, 1.4vw, 22px); }
.about-facts dl > div + div { border-left: 1px solid var(--line); }
.about-facts dd { margin: 0; font-size: clamp(34px, 3.6vw, 60px); font-weight: 600; line-height: 1; letter-spacing: -.06em; }
.about-facts dd small { font-size: .5em; letter-spacing: -.02em; }
.about-facts dt { color: var(--muted); font-size: 14px; line-height: 1.3; }
.about-facts-award dd { color: var(--violet); }

/* Intro */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 96px);
  padding-block: clamp(56px, 7vw, 120px);
}
.about-intro-copy h2 { margin-top: 14px; }
.about-intro-copy > p:not(.about-kicker) { max-width: 62ch; margin-top: 18px; color: #4a4460; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; }
.about-points { display: grid; gap: 14px; margin: clamp(22px, 2.4vw, 36px) 0 0; padding: 0; list-style: none; }
.about-points li { display: grid; gap: 2px; padding-left: 18px; border-left: 2px solid var(--violet); }
.about-points strong { font-size: 17px; font-weight: 650; }
.about-points span { color: var(--muted); font-size: 15px; line-height: 1.45; }

/* Team */
.about-team { padding-block: clamp(56px, 7vw, 110px); background: linear-gradient(180deg, var(--soft), var(--paper)); }
.about-team-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 24px 48px; }
.about-team-head h2 { margin-top: 14px; }
.about-team-head > p { color: #4a4460; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; }
.about-photo-wrap { margin-top: clamp(28px, 3.5vw, 52px); }
.about-roles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
  padding-top: 0;
  list-style: none;
}
.about-roles li { padding: clamp(18px, 1.8vw, 26px); border: 1px solid #ebe5f6; border-radius: 20px; background: white; }
.about-roles span { color: var(--violet); font-size: 13px; font-weight: 700; }
.about-roles h3 { margin-top: 12px; font-size: clamp(18px, 1.5vw, 22px); font-weight: 650; line-height: 1.15; letter-spacing: -.03em; }
.about-roles p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* Services */
.about-services { padding-block: clamp(56px, 7vw, 110px); }
.about-section-head h2 { max-width: 18ch; margin-top: 14px; }
.about-service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); margin: clamp(26px, 3vw, 44px) 0 0; padding: 0; list-style: none; }
.about-service-list a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 14px;
  padding: 22px 16px;
  border-top: 1px solid var(--line);
  border-radius: 4px;
  transition: background-color .2s ease;
}
.about-service-list span { grid-row: span 2; color: var(--violet); font-size: 13px; font-weight: 700; }
.about-service-list strong { font-size: clamp(19px, 1.6vw, 24px); font-weight: 650; letter-spacing: -.03em; }
.about-service-list em { grid-column: 2; color: var(--muted); font-size: 15px; font-style: normal; }
.about-service-list b {
  grid-row: 1 / span 2;
  grid-column: 3;
  display: grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--violet);
  background: #efe6ff;
  font-weight: 400;
  transition: background-color .2s ease, color .2s ease, transform .25s var(--ease-out);
}
.about-service-list a:hover { background: white; }
.about-service-list a:hover b { color: white; background: var(--violet); }

/* Process */
.about-process {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 96px);
  padding-block: clamp(56px, 7vw, 110px);
  border-top: 1px solid var(--line);
}
.about-process-side { position: sticky; top: 28px; }
.about-process-side h2 { max-width: 15ch; margin-top: 14px; }
.about-process-side .about-photo { margin-top: clamp(22px, 2.6vw, 38px); }
.about-steps { margin: 0; padding: 0; list-style: none; }
.about-steps li { display: grid; grid-template-columns: clamp(60px, 7vw, 110px) minmax(0, 1fr); gap: 16px; padding-block: clamp(20px, 2.2vw, 32px); border-bottom: 1px solid var(--line); }
.about-steps li:first-child { padding-top: 6px; }
.about-steps > li > span { color: #cbb8ef; font-size: clamp(34px, 3.8vw, 62px); font-weight: 600; line-height: .9; letter-spacing: -.06em; }
.about-steps h3 { font-size: clamp(20px, 1.8vw, 28px); font-weight: 650; letter-spacing: -.035em; }
.about-steps p { max-width: 52ch; margin-top: 8px; color: #4f4964; font-size: 16px; line-height: 1.55; }

/* Stack: dark glass band, like the contact banner */
.about-stack {
  padding-block: clamp(60px, 7vw, 116px);
  color: white;
  background: radial-gradient(ellipse at 88% 12%, #6c33d8a6, transparent 48%), radial-gradient(ellipse at 6% 100%, #4d1fb066, transparent 55%), #100e21;
}
.about-stack .about-kicker { color: #cdbfee; }
.about-stack-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 90px); }
.about-stack-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.about-stack-groups > div { padding: 20px; border: 1px solid #ffffff1f; border-radius: 20px; background: #ffffff0d; }
.about-stack-groups h3 { color: #d9ccf7; font-size: 14px; font-weight: 600; }
.about-stack-groups ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.about-stack-groups li { padding: 5px 11px; border: 1px solid #ffffff26; border-radius: 99px; background: #ffffff12; font-size: 14px; }

/* After launch */
.about-after {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(24px, 4vw, 70px);
  padding-block: clamp(56px, 7vw, 110px);
}
.about-after-number {
  font-size: clamp(110px, 15vw, 250px);
  font-weight: 650;
  line-height: .8;
  letter-spacing: -.08em;
  background: linear-gradient(160deg, #b083ff, #6522ea 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-after-number span { font-size: .45em; }
.about-after-copy h2 { margin-top: 14px; font-size: clamp(26px, 2.6vw, 42px); }
.about-after-copy p:not(.about-kicker) { margin-top: 16px; color: #4a4460; font-size: 16px; line-height: 1.6; }

/* Works */
.about-works { padding-bottom: clamp(56px, 7vw, 110px); }
.about-works-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.about-works-head h2 { margin-top: 14px; }
.about-works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(22px, 2.6vw, 38px); }
.about-work { position: relative; display: block; overflow: hidden; border-radius: 22px; aspect-ratio: 1.18; background: #e7defa; }
.about-work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.about-work > span {
  position: absolute;
  inset: auto 12px 12px;
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--ink);
  background: #ffffffe6;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 650;
  letter-spacing: -.035em;
}
.about-work small { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; }

/* Clients */
.about-clients { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px clamp(24px, 4vw, 70px); padding-block: clamp(30px, 3.6vw, 52px); border-block: 1px solid var(--line); }
.about-page .about-clients h2 { font-size: clamp(22px, 2vw, 30px); }
.about-clients ul { display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(22px, 3.6vw, 60px); margin: 0; padding: 0; list-style: none; }
.about-clients li { color: #3a3354; font-size: clamp(19px, 1.9vw, 30px); font-weight: 700; letter-spacing: -.04em; opacity: .78; }

/* Office and career */
.about-office { padding-block: clamp(56px, 7vw, 110px); }
.about-office-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr);
  align-items: start;
  gap: clamp(18px, 2.6vw, 40px);
  margin-top: clamp(22px, 2.8vw, 42px);
}
.about-office-copy h2 { margin-top: 14px; font-size: clamp(28px, 2.8vw, 44px); }
.about-office-copy p:not(.about-kicker), .about-career p:not(.about-kicker) { margin-top: 14px; color: #4a4460; font-size: 16px; line-height: 1.6; }
.about-career { padding: clamp(20px, 2vw, 30px); border: 1px solid #ebe5f6; border-radius: 22px; background: white; }
.about-career h3 { margin-top: 12px; font-size: clamp(24px, 2.2vw, 34px); font-weight: 650; letter-spacing: -.05em; }
.about-career .about-link { margin-top: 10px; }

/* Contact banner */
.about-contact { padding-bottom: clamp(30px, 4vw, 60px); }
.about-contact .contact-banner { grid-template-columns: minmax(0, 1fr) auto; padding-block: clamp(30px, 3.6vw, 56px); }
.about-page .about-contact-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; }
.about-contact-links a { display: inline-flex; align-items: center; min-height: 32px; color: #e6dcff; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.about-contact-links a:hover { color: white; }

/* Motion: page transitions, one-time reveal and hover feedback */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .about-hero .about-line { animation: about-enter 560ms var(--ease-out) both; }
  .about-hero .about-line:nth-child(2) { animation-delay: 60ms; }
  .about-hero .about-line:nth-child(3) { animation-delay: 120ms; }
  .about-hero .about-line:nth-child(4) { animation-delay: 180ms; }
  .about-lead, .about-actions { animation: about-enter 560ms var(--ease-out) 220ms both; }
  .about-photo-hero { animation: about-photo-in 700ms var(--ease-out) 120ms both; }
  .about-wait { opacity: 0; }
  .about-page .motion-enter { animation: about-enter 600ms var(--ease-out) both; }
}
@keyframes about-enter { from { opacity: 0; transform: translateY(18px); } }
@keyframes about-photo-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .about-link:hover span, .about-service-list a:hover b { transform: translate(3px, -3px); }
  .about-work:hover img { transform: scale(1.04); }
  .about-roles li { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
  .about-roles li:hover { transform: translateY(-4px); box-shadow: 0 18px 40px #4d2d6c1f; }
}

/* Responsive */
@media (max-width: 1100px) {
  .about-facts dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-facts dl > div:nth-child(4) { border-left: 0; }
  .about-facts dl > div:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .about-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-stack-inner { grid-template-columns: minmax(0, 1fr); }
  .about-after { grid-template-columns: auto minmax(0, 1fr); }
  .about-after .about-photo { grid-column: 1 / -1; }
  .about-office-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .about-career { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .about-hero, .about-intro, .about-process, .about-team-head { grid-template-columns: minmax(0, 1fr); }
  .about-hero h1 { font-size: clamp(42px, 9vw, 72px); }
  .about-intro .about-photo { max-width: 520px; }
  .about-process-side { position: static; }
  .about-service-list { grid-template-columns: minmax(0, 1fr); }
  .about-stack-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-works-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .about-works-grid .about-work:last-child { grid-column: 1 / -1; aspect-ratio: 2; }
  .about-clients { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
  .about-hero { padding-top: 112px; }
  .about-facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-facts dl > div:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .about-facts dl > div:nth-child(-n + 2) { border-top: 0; }
  .about-facts dl > div:nth-child(even) { border-left: 1px solid var(--line); }
  .about-roles { grid-template-columns: minmax(0, 1fr); }
  .about-stack-groups { grid-template-columns: minmax(0, 1fr); }
  .about-after { grid-template-columns: minmax(0, 1fr); }
  .about-works-grid { grid-template-columns: minmax(0, 1fr); }
  .about-works-grid .about-work:last-child { grid-column: auto; aspect-ratio: 1.18; }
  .about-office-grid { grid-template-columns: minmax(0, 1fr); }
  .about-photo-panorama { aspect-ratio: 16 / 9; }
  .about-photo-panorama img { object-position: 6% center; }
  .about-contact .contact-banner { grid-template-columns: minmax(0, 1fr); }
}
