.hero__bg {
  --art-left: min(0px, calc(50% - 936px));
  left: var(--art-left);
  width: max(1730px, calc(100% - var(--art-left)));
}

.hero__lead span { white-space: nowrap; }

.crow__qr {
  --qr-ink: 72px;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  background: #fff;
}

.crow__qr img { width: var(--qr-ink); height: var(--qr-ink); }
.crow--vk .crow__qr img { width: calc(var(--qr-ink) * 1.16); height: calc(var(--qr-ink) * 1.16); }

@media (min-width: 900px) and (max-width: 1199px) {
  :root { --gutter: 40px; }

  .header__inner {
    height: 81px;
    justify-content: flex-start;
    padding-inline: var(--gutter);
  }
  .header__logo { width: 125px; height: 81px; flex: none; }
  .header__nav {
    position: static;
    display: grid;
    grid-template-columns: 65fr 74fr 74fr 115fr 67fr;
    width: min(455px, 46vw);
    gap: clamp(4px, calc(9vw - 77px), 15px);
    margin-left: clamp(14px, calc(17vw - 139px), 35px);
    padding: 0;
    box-shadow: none;
    text-align: center;
    font-size: clamp(12px, 1.37vw, 14px);
  }
  .header__nav a { padding: 0; font-size: inherit; white-space: nowrap; }
  .header__actions { display: flex; gap: 10px; margin-left: 10px; }
  .btn-tg, .btn-mail { gap: 5px; }
  .btn-tg { width: clamp(92px, 11.92vw, 122px); }
  .btn-mail { width: clamp(144px, 18.26vw, 187px); }
  .burger { display: none; }

  .hero { height: 526px; background: #fff; }
  .hero__bg { top: -77.53px; left: calc(50% - 1096px); }
  .hero__bg::before { left: 362px; }
  .hero__bg::after { left: 881px; }
  .hero > .container { display: flex; height: 100%; padding: 0; }
  .hero__content { z-index: 1; width: min(582px, 65vw); gap: 20px; margin-left: 44px; padding: 0; }
  .hero__title { font-size: clamp(49px, 5.57vw, 61px); line-height: 66.95px; transform: scaleX(.93); transform-origin: left; }
  .hero__title span { white-space: nowrap; }
  .hero__lead { max-width: 535px; font-size: 20px; line-height: 27px; }
  .hero__lead br { display: initial; }
  .hero__lead span { display: block; }
  .hero__row { width: auto; flex-wrap: nowrap; }
  .hero__buttons { width: auto; flex-direction: column; align-items: flex-start; }
  .hero__portrait {
    position: absolute;
    top: -121px;
    right: auto;
    left: calc(50% + 61px);
    width: 471px;
    height: 935px;
    aspect-ratio: auto;
  }
  .hero__portrait img { top: -.02%; height: 100.04%; }

  .about { padding-bottom: 64px; }
  .about__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; min-height: 337px; }
  .edu { align-content: center; padding-inline: clamp(20px, 3.52vw, 36px); }
  .edu__list { grid-auto-rows: auto; row-gap: 15px; margin-top: 15px; }
  .facts { min-height: 295px; margin-top: 31px; }
  .fact { padding: 36px clamp(20px, 3.52vw, 36px); }
  .fact__head { flex-direction: column; }
  .fact + .fact::before { inset: calc(50% - 48px) auto auto 0; height: 96px; }

  .center > .container { grid-template-columns: minmax(0, 620fr) minmax(0, 304fr); gap: 20px; }
  .center__desc { min-height: 120px; }
  .center__cards { grid-template-columns: 272fr 328fr; gap: 20px; margin-top: 44px; }
  .center__photo { aspect-ratio: auto; height: 416px; }
  .center__photo img:first-child { width: 608px; max-width: none; }
  .center__photo img + img { left: calc(50% - 674px); width: 978px; height: 489px; }

  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .service { min-height: 132px; gap: 10px; }

  .collab__card {
    grid-template-columns: minmax(0, 571fr) minmax(0, 289fr);
    align-items: center;
    min-height: 240px;
    padding: 28px;
    gap: 28px;
  }
  .collab__photo { height: 184px; border-radius: 20px; }
  .collab__photo img { left: calc(50% - 962.48px); width: 1201.16px; }
  .collab__text { font-size: 15px; line-height: 20px; }

  .contacts > .container {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 0;
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .contacts__title { padding-left: 40px; }
  .contacts__rows {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: 60px minmax(132px, 1fr) 114px 114px 129px;
    gap: 32px;
    margin: 31px 54px 0 40px;
  }
  .crow--social b { font-size: 13px; white-space: nowrap; }
  .cta {
    grid-column: 1;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
    min-height: 96px;
    margin-top: 31px;
    padding: 24px 28px;
  }
  .cta__text { margin: 0; }
  .footer__waves { height: 101px; margin-top: 0; }
}

@media (max-width: 699px) {
  :root { --gutter: 20px; }

  .header__inner { height: 58px; }
  .header__logo { width: 81px; height: 53px; }
  .burger { width: 36px; height: 36px; padding: 0; background: url(menu.png) center / contain no-repeat; }
  .burger span { display: none; }

  .hero { height: 640px; background: #fff; }
  .hero > .container { display: flex; height: 100%; padding: 0; }
  .hero__bg { top: -77.53px; left: calc(50% - 764px); }
  .hero__bg::before, .hero__bg::after { display: none; }
  .hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 9px;
    left: calc(50% - 260px);
    width: 306px;
    height: 595px;
    background: url(mobile-light.png) center / cover no-repeat;
    filter: blur(50px);
    pointer-events: none;
  }
  .hero__content { z-index: 2; gap: 20px; width: 217px; margin-left: 5px; }
  .hero__title { width: 245px; font-size: 36px; line-height: 41.2px; transform: scaleX(.93); transform-origin: left; }
  .hero__lead { width: 204px; font-size: 15px; line-height: 19.2px; }
  .hero__row { flex-direction: column; gap: 20px; }
  .hero__qr { width: 197px; height: 198px; }
  .hero__buttons { flex: none; flex-direction: column; align-items: flex-start; gap: 9.844px; }
  .btn-hero { height: 56px; font-size: 15px; }
  .btn-hero--fill { width: 201px; }
  .btn-hero--outline { width: 179px; }
  .hero__portrait {
    position: absolute;
    top: -66px;
    left: calc(50% - 46px);
    width: 410px;
    height: 814px;
    aspect-ratio: auto;
  }
  .hero__portrait img { top: -.02%; height: 100.04%; }

  .about { padding-block: 44px 0; }
  .about h2 { font-size: 32px; line-height: 42px; }
  .about__top { gap: 20px; padding-bottom: 44px; }
  .about__bio { min-height: 328px; }
  .about__bio-list { margin-top: 20px; font-size: 14.5px; }
  .edu { min-height: 447px; display: grid; align-content: center; padding: 20px; }
  .edu__icon { float: none; margin: 0 0 8px; }
  .edu__title { margin: 0; max-width: 230px; font-size: 20px; }
  .edu__list { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 5px; margin-top: 15px; }
  .edu__desc + .edu__row { margin-top: 10px; }
  .facts {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% + 2 * var(--gutter));
    margin: 0 calc(-1 * var(--gutter));
  }
  .fact { min-height: 188px; padding: 24px max(20px, calc((100% - 320px) / 2)); }
  .fact + .fact { padding-inline: max(20px, calc((100% - 243px) / 2)); }
  .fact + .fact::before { display: none; }
  .fact__head { flex-direction: column; }

  .center, .services, .collab { padding-block: 40px; }
  .center > .container { gap: 24px; }
  .center__cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .center__stat, .center__proof { min-height: 0; }
  .center__stat-num { font-size: 64px; line-height: 74px; }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
  .service { min-height: 132px; padding: 12px; gap: 8px; }
  .service__title, .service__text { font-size: 13px; line-height: 18px; }
  .collab__card { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 20px; }

  .contacts > .container { gap: 24px; padding-top: 32px; }
  .contacts__rows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 7px; }
  .crow { font-size: 12px; line-height: 17px; overflow-wrap: anywhere; }
  .crow--social b { font-size: 11.5px; white-space: nowrap; }
  .crow--social span { font-size: 10.5px; white-space: nowrap; }
  .crow--phone { grid-column: 2 / -1; }
  .crow__qr { margin-top: 8px; }
  .cta { min-height: 0; }
}

@media (max-width: 339px) {
  .contacts__rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
