/* ==========================================================================
   MaximaTelecom — главная страница. Чистый CSS без сборщиков.
   Брейкпоинты: 1440 / 1200 (планшет) / 1024 / 768 (мобильный) / 520 / 420 / 340
   ========================================================================== */

:root {
  --c-text: #0a1428;
  --c-navy: #042642;
  --c-navy-hover: #003b67;
  --c-black: #0a0a0a;
  --c-grey: #dce0e3;
  --c-line: #e5e9ec;
  --c-white: #fff;
  --font: Aeroport, Arial, sans-serif;
  --ease-out: cubic-bezier(.215, .61, .355, 1);
}

/* --- Fonts --------------------------------------------------------------- */

@font-face {
  font-family: Aeroport;
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/AeroportLight.woff2") format("woff2"), url("../fonts/AeroportLight.woff") format("woff");
}
@font-face {
  font-family: Aeroport;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Aeroport.woff2") format("woff2"), url("../fonts/Aeroport.woff") format("woff");
}
@font-face {
  font-family: Aeroport;
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/AeroportMedium.woff2") format("woff2"), url("../fonts/AeroportMedium.woff") format("woff");
}

/* --- Base ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  background-color: var(--c-white);
  overflow-x: hidden;
}

img,
svg { display: block; }

picture { overflow: hidden; }
picture img { transition: transform .4s; }

ul { margin: 0; padding: 0; list-style: none; }

button {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page__item { flex-shrink: 0; }
/* clip, а не hidden: обрезает так же, но не ломает position: sticky внутри */
.page__item--content { flex-grow: 1; overflow: hidden; overflow: clip; }

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}
.container--block { padding: 0; }

@media (max-width: 767px) {
  .page__item--content { position: relative; }
  .container { padding: 0 16px; }
  .container--block { padding: 0; }
}

/* --- Button -------------------------------------------------------------- */

.button {
  display: block;
  min-width: 216px;
  padding: 14px 9px 18px;
  font-family: inherit;
  font-size: 1.125rem;
  line-height: 1.5rem;
  color: var(--c-white);
  background-color: var(--c-navy);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .3s;
}
.button:hover,
.button:focus-visible { background-color: var(--c-navy-hover); }

@media (max-width: 1199px) {
  .button { min-width: 203px; }
}
@media (max-width: 767px) {
  .button { padding: 10px 14px 14px; font-size: 16px; }
}

/* --- Links & underline animations ---------------------------------------- */

.link { text-decoration: none; color: inherit; }
.link:hover,
.link:focus { outline: none; }
.link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Линия под ссылкой: «втягивается» при уходе курсора, «выезжает» при наведении */
.link--block { position: relative; }
.link--block::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  opacity: 0;
  animation: line-out .4s;
}
.link--block:hover::after,
.link--block:focus-visible::after {
  height: 2px;
  width: 100%;
  opacity: 1;
  animation: line-in .4s;
}

.link--underlined::after { width: 100%; opacity: .32; }

/* Пока курсор ни разу не уходил со ссылки меню — не проигрываем line-out при загрузке */
.link--menu::after { animation-name: none; }

.link--active-menu::after,
.link--active-menu:hover::after,
.link--active-menu:focus-visible::after {
  width: 100%;
  height: 2px;
  opacity: .32;
  animation: none;
}

/* Подчёркивание внутри текста (заголовок первого экрана) */
.link--text {
  background-image: linear-gradient(to right, rgba(10, 20, 40, .24), rgba(10, 20, 40, .24));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: left 0 bottom .1em;
  animation: line-out-text .4s;
}
.link--text:hover,
.link--text:focus-visible {
  background-image: linear-gradient(to right, var(--c-text), var(--c-text));
  background-size: 100% 2px;
  animation: line-in-text .4s;
}

.link--section-main {
  position: relative;
  display: flex;
  width: 100%;
}

@keyframes line-in {
  0% { height: 2px; width: 0; opacity: 1; }
  100% { height: 2px; width: 100%; opacity: 1; }
}
@keyframes line-out {
  0% { height: 2px; width: 100%; opacity: 1; }
  100% { height: 2px; width: 0; opacity: 1; }
}
@keyframes line-in-text {
  0% { background-image: linear-gradient(to right, var(--c-text), var(--c-text)); background-size: 0 2px; }
  100% { background-image: linear-gradient(to right, var(--c-text), var(--c-text)); background-size: 100% 2px; }
}
@keyframes line-out-text {
  0% { background-image: linear-gradient(to right, var(--c-text), var(--c-text)); background-size: 100% 2px; }
  100% { background-image: linear-gradient(to right, var(--c-text), var(--c-text)); background-size: 0 2px; }
}

/* --- Scroll reveal (замена WOW.js + animate.css) ------------------------- */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 100%, 0); }
  to { opacity: 1; transform: none; }
}

.js .reveal { visibility: hidden; }
.js .reveal.is-visible {
  visibility: visible;
  animation: fadeInUp 1s both;
  animation-delay: var(--reveal-delay, 0s);
}
.js .reveal--fade.is-visible { animation-name: fadeIn; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { visibility: visible; }
  .js .reveal.is-visible { animation: none; }
  html { scroll-behavior: auto; }
}

/* --- Overlay ------------------------------------------------------------- */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 110;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, .2);
  opacity: 0;
  pointer-events: none;
}
.overlay--show {
  opacity: 1;
  pointer-events: auto;
  animation: fadeIn .8s;
}
.overlay--hide { animation: fadeOut .8s; }

/* --- Header & menu ------------------------------------------------------- */

.header {
  display: flex;
  flex-wrap: nowrap;
  position: relative;
  z-index: 115;
  align-items: center;
  padding: 40px;
}
.page--main .header {
  position: absolute;
  top: 0;
  left: 0;
}

.header__logo {
  width: 22.7941%;
  min-width: 220px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 40px;
  margin-left: 3px;
}
.header__logo-image {
  width: auto;
  height: 37px;
  margin-right: 12px;
}

.header__menu {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.header__menu ul + ul { margin-left: 38px; }

.header__menu-btn {
  position: absolute;
  top: 16px;
  right: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  transition: opacity .2s;
}
.header__menu-btn:hover { opacity: .32; }
.header__menu-btn svg { fill: currentColor; pointer-events: none; }
.header__menu-open { width: 32px; }
.header__menu-close { display: none; width: 24px; }
.header__menu-btn--close .header__menu-open { display: none; }
.header__menu-btn--close .header__menu-close { display: block; }

.menu__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  margin: 0 0 0 -38px;
}
.menu__list li { margin-left: 38px; flex-shrink: 0; }
.menu__list a { display: inline-block; padding: 10px 0; }
.menu__list a::after { bottom: .3em; }

.menu__language {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  margin: 0 0 0 -20px;
}
.menu__language li { margin-left: 20px; }

@media (max-width: 1199px) {
  .header { padding: 0; align-items: flex-start; }
  .header__top { width: 100%; padding: 18px 24px; background-color: var(--c-white); }
  .header__logo { width: auto; min-width: 0; margin-top: 4px; margin-right: 0; }
  .header__picture { margin-left: -3px; margin-top: -4px; }
  .header__logo-image { width: 48px; height: 44px; margin-right: 18px; object-fit: contain; object-position: left center; }

  .header__menu {
    position: absolute;
    display: block;
    left: 0;
    top: 80px;
    z-index: -1;
    margin-left: 0;
    transition: opacity .3s;
  }
  .header__menu--closed { opacity: 0; pointer-events: none; visibility: hidden; }
  .header__menu ul + ul { margin-left: 0; }
  .header__menu-btn--visible { display: flex; }

  .menu { max-width: none; width: 100%; background-color: var(--c-white); }
  .menu__list {
    display: block;
    margin: 0;
    padding: 34px 40px;
    font-size: 2.5rem;
    line-height: 3.125rem;
  }
  .menu__list li { margin-left: 0; }
  .menu__list a { padding: 16px 0; }
  .menu__language { margin: 0; padding: 0 40px 40px; }
  .menu__language li { margin-left: 0; margin-right: 20px; }
}

@media (max-width: 767px) {
  .header__top { padding: 12px 16px; }
  .header__logo-image { width: 35px; height: 32px; margin-right: 13px; }
  .header__menu { top: 56px; }
  .header__menu-btn { top: 4px; right: 8px; }
  .menu__list { font-size: 1.75rem; line-height: 2rem; padding: 8px 16px 16px; }
  .menu__list a { padding: 11px 0 12px; }
  .menu__language { padding: 0 16px 16px; }
}

/* --- First screen -------------------------------------------------------- */

.first-screen {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 175vw;
  overflow: hidden;
}

.first-screen__info {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.first-screen__lead {
  font-weight: 300;
  font-size: 3.5rem;
  line-height: 4.125rem;
  letter-spacing: -.6px;
  max-width: 680px;
  margin: -28px 0 0;
}

.first-screen__scroll-arrow {
  position: absolute;
  z-index: 1;
  bottom: 8px;
  left: 50%;
  display: block;
  fill: none;
  transform: translateX(-50%);
  animation: up-down .6s ease infinite;
}
.first-screen__scroll-arrow svg {
  width: 28px;
  padding: 16px;
  stroke: var(--c-white);
  box-sizing: content-box;
}
.first-screen__scroll-arrow:focus { outline: none; }

@keyframes up-down {
  0%, 100% { bottom: 0; }
  50% { bottom: 16px; }
}

/* Видео «внутри» силуэта: PNG-маска поверх ролика */
.first-screen__video {
  position: absolute;
  bottom: -34px;
  left: 68%;
  z-index: -1;
  width: calc(50% + 990px);
  max-width: 145vh;
  height: 100%;
  transform: translateX(-50%);
}
.first-screen__video-mask {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}
.first-screen__video-wrapper {
  position: absolute;
  left: 9%;
  bottom: .5%;
  z-index: -1;
  width: 93%;
  height: 0;
  padding-bottom: 62%;
  overflow: hidden;
}
.first-screen__video-wrapper video,
.first-screen__video-wrapper img {
  position: absolute;
  top: -1px;
  left: 50%;
  width: auto;
  height: 100%;
  max-width: none;
  transform: translateX(-50%);
}
.first-screen__video-wrapper video { z-index: 1; display: none; }
.first-screen__video-wrapper video.is-playing { display: block; }

/* Пока маска не загрузилась — блок скрыт, чтобы видео не «торчало» без силуэта */
.first-screen__video--loading .first-screen__video-mask,
.first-screen__video--loading .first-screen__video-wrapper { display: none; }

@media (min-width: 1200px) {
  .first-screen__video--three { left: 72%; }
}

@media (max-width: 1439px) {
  .first-screen__video { max-width: 138vh; width: 90%; bottom: -10px; left: 70%; }
}

@media (max-width: 1199px) {
  .first-screen__info { align-items: flex-start; }
  .first-screen__lead { margin-top: 144px; }
  .first-screen__video {
    width: 150%;
    max-width: 110vh;
    bottom: -8px;
    left: auto;
    right: -8%;
    transform: translateX(6%);
  }
  .first-screen__video-mask { right: -30px; }
  .first-screen__video--three .first-screen__video-mask { left: 60px; }
}

@media (max-width: 1023px) {
  .first-screen { min-height: 1024px; }
  .first-screen__video {
    min-width: 950px;
    max-width: 97vh;
    bottom: -34px;
    right: 50%;
    transform: translateX(45%);
  }
}

@media (max-width: 767px) {
  .first-screen { max-height: 250vw; min-height: 400px; }
  .first-screen__info { align-items: center; }
  .first-screen__lead {
    font-size: 1.75rem;
    line-height: 2.4375rem;
    max-width: 335px;
    margin: 56px 0 28px;
    min-height: calc(50vw - 120px);
    max-height: 130vw;
    height: 75vh;
  }
  .first-screen__video {
    width: 140%;
    min-width: 450px;
    max-width: 95vh;
    bottom: -6px;
    right: -8%;
    transform: translateX(4%);
  }
  .first-screen__video--three .first-screen__video-mask { left: 20px; }
}

@media (max-width: 600px) {
  .first-screen { max-height: none; }
}
@media (max-width: 520px) {
  .first-screen__video { width: 160%; right: -15%; }
}
@media (max-width: 420px) {
  .first-screen { max-height: 180vw; }
}
@media (max-width: 340px) {
  .first-screen { max-height: 210vw; }
}

/* --- Внутренние страницы ------------------------------------------------- */

.inner {
  position: relative;
  padding-top: 96px;
  font-size: 1.125rem;
  line-height: 1.5rem;
}

.inner__title {
  margin: 0 0 24px;
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 3.125rem;
}

@media (max-width: 1199px) {
  .inner { padding-top: 80px; }
}
@media (max-width: 767px) {
  .inner { padding-top: 24px; }
  .inner__title { font-size: 1.75rem; line-height: 2.4375rem; margin-bottom: 16px; }
}

/* --- Видео с постером и кнопкой Play ------------------------------------- */

.video {
  position: relative;
  width: 100%;
  height: 0;
  background-color: var(--c-black);
}
.video video,
.video__poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video video { display: none; }
.video--playing video { display: block; }
.video--playing .video__poster,
.video--playing .video__overlay { display: none; }

.video__overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
.video__play {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .3s;
}
.video__play:hover { transform: scale(1.08); }
.video__play:focus { outline: none; }
.video__play:focus-visible { outline: 2px solid var(--c-white); outline-offset: 4px; }
.video__play svg { display: block; pointer-events: none; }

/* --- Cards --------------------------------------------------------------- */

.cards-wrapper { overflow: hidden; }
.cards-wrapper__inner { display: flex; }

.card {
  display: flex;
  position: relative;
  z-index: 1;
  width: 100%;
}
.card::before {
  content: "";
  display: block;
  width: 0;
  height: 640px;
}
.card:hover img { transform: scale(1.1); }

.card--picture { color: var(--c-white); background-color: var(--c-black); }

.card--small,
.card--medium { flex-shrink: 0; width: 33.33%; }
.card--medium { flex-grow: 1; }

.card--banner::before { height: 44.44vw; min-height: 640px; max-height: 840px; }
.card--banner-sm::before { max-height: 700px; }

.card__picture {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
}
.card__picture img {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__picture--overlay img { opacity: .5; }

.card__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding-top: 38px;
  padding-bottom: 40px;
}
.card__top { margin-bottom: 80px; }
.card__bottom { position: relative; z-index: 3; }

.card__title {
  position: relative;
  z-index: 3;
  margin: 0 0 16px;
  font-size: 1.625rem;
  line-height: 2rem;
  font-weight: 500;
}
.card__title br { display: none; }

.card__text {
  max-width: 400px;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5rem;
}

.card__link {
  display: inline-block;
  vertical-align: bottom;
  margin: 0;
  padding: .3em 0;
  font-size: 1.125rem;
  line-height: 1.5rem;
}

/* Наведение на всю карточку подчёркивает её ссылку */
.link--section-main:hover .card__link::after,
.link--section-main:focus-visible .card__link::after {
  height: 2px;
  opacity: 1;
  animation: line-in .4s;
}

@media (max-width: 1439px) {
  .card__title br { display: inline; }
}

@media (max-width: 1199px) {
  .card__title { margin-top: 1px; margin-bottom: 17px; }
  .card--short.card--small,
  .card--short.card--medium { width: 100%; }
  .card--short::before { height: 512px; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .card--small,
  .card--medium { width: 50%; }
}

@media (max-width: 767px) {
  .cards-wrapper__inner { display: block; }
  .card::before { height: 375px; }
  .card--small,
  .card--medium { width: 100%; }
  .card--short::before { height: 250px; }
  .card--banner::before { min-height: 375px; }
  .card__inner { padding-top: 16px; padding-bottom: 23px; }
  .card__top { margin-bottom: 40px; }
  .card__title { font-size: 1.25rem; line-height: 1.75rem; margin-bottom: 7px; }
  .card__title br { display: none; }
  .card__text { font-size: .875rem; line-height: 1.375rem; max-width: 340px; }
  .card__link { font-size: .875rem; line-height: 1.25rem; padding: 3px 0; }
}

/* --- Columns (иконки в блоке «Пользователю») ----------------------------- */

.columns {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin: 0 -40px;
}
.columns__item {
  width: 33.33%;
  padding: 0 40px;
}
.columns__item p { margin: 0 0 16px; }
.columns__item p:last-child { margin-bottom: 0; }

.columns__title {
  max-width: 400px;
  margin: 0 0 34px;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.columns--icons { margin-bottom: -58px; }
.columns--icons .columns__item { margin-bottom: 80px; }
.columns--icons .columns__item--user { margin-bottom: 40px; }
.columns--icons svg {
  display: block;
  width: 39px;
  height: 39px;
  margin-bottom: 25px;
  fill: none;
}
.columns--icons p { font-size: 1.125rem; line-height: 1.5rem; }

@media (max-width: 1199px) {
  .columns { margin: 0 -20px; }
  .columns__item { padding: 0 20px; }
  .columns__title { margin: 0 0 16px; }
  .columns--icons .columns__item { min-height: 80px; }
  .columns--icons svg { width: 80px; height: 80px; }
}

@media (max-width: 767px) {
  .columns { display: block; width: 100%; max-width: 580px; margin: 0; }
  .columns__item { width: 100%; padding: 0; }
  .columns__title { font-size: .875rem; line-height: 1.1875rem; margin-bottom: 8px; }
  .columns--icons { margin-bottom: 0; }
  .columns--icons .columns__item {
    position: relative;
    min-height: 40px;
    padding-left: 56px;
    margin-bottom: 24px;
  }
  .columns--icons .columns__item:last-child { margin-bottom: 0; }
  .columns--icons .columns__item--user {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
  }
  .columns--icons .columns__item--user p { display: none; }
  .columns--icons svg { position: absolute; top: 0; left: 0; width: 40px; height: 40px; }
  .columns--icons p { font-size: .875rem; line-height: 1.375rem; }
}

/* --- App buttons --------------------------------------------------------- */

.app-buttons {
  display: inline-flex;
  align-items: flex-start;
  background-color: var(--c-white);
  border-radius: 6px;
  overflow: hidden;
}
.app-buttons__main-button {
  position: relative;
  display: flex;
  padding: 8px 24px 6px 9px;
  text-align: center;
  text-decoration: none;
  color: var(--c-text);
  background-color: var(--c-white);
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.5rem;
}
.app-buttons__main-button span { margin-left: 14px; }
.app-buttons__iphone,
.app-buttons__android {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 41px;
  height: 40px;
  border-left: 1px solid rgba(10, 20, 40, .24);
  transition: background-color .2s;
}
.app-buttons__main-button,
.app-buttons__iphone,
.app-buttons__android { transition: background-color .2s; }
.app-buttons a:hover,
.app-buttons a:focus-visible { background-color: #eef1f3; outline: none; }
.app-buttons__iphone svg,
.app-buttons__android svg { fill: var(--c-text); }
.app-buttons__iphone { padding-bottom: 2px; }
.app-buttons__android { padding-left: 2px; }

@media (max-width: 767px) {
  .app-buttons__main-button { padding-right: 9px; }
  .app-buttons__main-button span { margin-left: 9px; font-size: .875rem; line-height: 1.5rem; }
}

/* --- Main page blocks ---------------------------------------------------- */

.main-page__title {
  font-size: 2.4375rem;
  line-height: 2.9375rem;
}

.main-page__card-top { max-width: 445px; }
.main-page__card-top--user {
  display: flex;
  justify-content: space-between;
  max-width: 100%;
  margin-bottom: 168px;
}

/* Пользователю */
.main-page__users img { object-position: 50% 25%; }
.main-page__users-inner { padding: 40px; }
.main-page__users-features svg { margin-bottom: 16px; width: 80px; height: 80px; }
.main-page__users-features h3 { margin-bottom: 20px; }
.main-page__users-features a { padding: .25em 0; }
.main-page__users-features p { max-width: 400px; }
.main-page__download { margin-right: auto; }

@media (min-width: 1200px) {
  .main-page__users-features { margin-bottom: -83px; }
}

/* Цифровой город */
.main-page__city { background-color: var(--c-white); }
.main-page__city::after {
  content: "";
  position: absolute;
  top: 0;
  right: -80px;
  z-index: -1;
  display: block;
  width: 580px;
  height: 100%;
  background: url("../img/mesh-city.svg") no-repeat 66px 197px / 580px 402px;
  transition: transform .4s;
}
.main-page__city:hover::after { transform: scale(1.1); }

/* Бизнесу */
.main-page__business { color: var(--c-white); background-color: var(--c-navy); }
.main-page__business::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  background: url("../img/mesh-map.svg") no-repeat right -94px bottom 18px / 849px 463px;
  transition: transform .4s;
}
.main-page__business:hover::after { transform: scale(1.1); }

/* Партнерам и инвесторам */
.main-page__partner { position: relative; overflow: hidden; }
.main-page__partner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  background: var(--c-white) url("../img/mesh-unicorn.svg") no-repeat 74.2% bottom / 684px 605px;
  transition: transform .4s;
}
.main-page__partner:hover::after { transform: scale(1.1); }

/* Новости */
.main-page__news { background-color: var(--c-grey); }
.main-page__news-title {
  max-width: 450px;
  margin: 0;
  font-size: 1.5rem;
  line-height: 2.125rem;
  font-weight: 400;
}

/* Пресса о нас */
.main-page__media { border-top: 1px solid var(--c-line); }
.main-page__media-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding: 88px 40px;
}
.main-page__media-title {
  width: 22.7941%;
  flex-shrink: 0;
  margin: 0 40px 0 0;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 500;
}
.main-page__media-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex-grow: 1;
  width: 50%;
}
.main-page__media-list li { margin-right: 8.75%; }
.main-page__media-list li:nth-child(6n) { margin-right: 0; }
.main-page__media-list a {
  display: inline-block;
  vertical-align: middle;
  padding: 40px 0;
  transition: opacity .3s;
}
.main-page__media-list a:hover { opacity: .6; }
.main-page__media-list a:focus { outline: none; }
.main-page__media-list a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

@media (max-width: 1979px) {
  .main-page__business::after { background-position: right -94px bottom 18px; }
}

@media (max-width: 1199px) {
  .main-page__card-top--user { margin-bottom: 120px; padding-right: 0; }
  .main-page__users img { object-position: 44% 50%; }
  .main-page__users-features p { font-size: 1rem; line-height: 1.5rem; }

  .main-page__city::after {
    width: 920px;
    left: 113px;
    right: auto;
    background-position: 0 69px;
    background-size: 920px 638px;
  }
  .main-page__business::after { background-position: left 39px bottom 0; }
  .main-page__partner { max-height: 512px; }
  .main-page__partner::after { background-size: 547px 526px; background-position: 74.2% 36px; }
  .main-page__partner .card__top { max-width: 400px; }
  .main-page__news-title { margin-top: 2px; }

  .cards-wrapper--investors-advertisers .cards-wrapper__inner { display: block; }

  .main-page__media-inner { display: block; padding: 40px 40px 32px; }
  .main-page__media-title { width: 100%; }
  .main-page__media-list { width: 100%; padding-top: 25px; }
  .main-page__media-list li { width: 33.33%; margin: 0; }
  .main-page__media-list li:nth-child(3n+2) { text-align: center; }
  .main-page__media-list li:nth-child(3n) { text-align: right; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .main-page__card-top { max-width: 320px; padding-right: 64px; }
  .main-page__card-top p { font-size: 1rem; line-height: 1.5rem; }
  .main-page__news .main-page__card-top { max-width: 100%; padding-right: 0; }
}

@media (max-width: 767px) {
  .main-page__title { font-size: 1.875rem; line-height: 2.625rem; }
  .main-page__card-top { max-width: 340px; }
  .main-page__card-top--user { margin-bottom: 90px; }

  .main-page__users img { object-position: 44% 0; }
  .main-page__users-inner { padding: 16px; }
  .main-page__users-features { margin-bottom: 16px; }
  .main-page__users-features .columns__item { margin-bottom: 16px; }
  .main-page__users-features svg { top: 0; width: 40px; height: 40px; }
  .main-page__users-features h3 { margin-bottom: 8px; }
  .main-page__users-features p { font-size: .75rem; line-height: 1rem; max-width: 300px; padding-bottom: 2px; }

  .main-page__city::after { background-position: 0 -18px; }
  .main-page__business::after { background-size: 679px 371px; background-position: left 0 top 143px; }
  .main-page__partner::after { background-size: 363px 348px; background-position: -130% 55px; }
  .main-page__news-title { margin-bottom: 73px; }

  .main-page__media-inner { padding: 16px; min-height: 250px; }
  .main-page__media-title { font-size: .875rem; line-height: 1.25rem; }
  .main-page__media-list { padding-top: 64px; }
  .main-page__media-list li { transform: scale(.82); transform-origin: left center; }
  .main-page__media-list li:nth-child(3n+2) { transform-origin: center center; }
  .main-page__media-list li:nth-child(3n) { transform-origin: right center; }
  .main-page__media-list a { padding: 14px 0; }
}

/* На очень широких экранах фон половинок продлевает карточки до краёв */
@media (min-width: 1980px) {
  .cards-wrapper--business-city { background: linear-gradient(to right, var(--c-navy) 50%, var(--c-white) 50%); }
  .cards-wrapper--investors-advertisers { background: linear-gradient(to right, var(--c-black) 50%, var(--c-grey) 50%); }
}

/* --- Контакты для заказчиков --------------------------------------------- */

.contact { padding: 80px 0 122px; }

.contact__heading {
  margin: 0 0 14px;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.5rem;
}

.contact__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  font-size: 1.875rem;
  line-height: 2.375rem;
}

@media (max-width: 1199px) {
  .contact { padding: 80px 0 104px; }
}

@media (max-width: 767px) {
  .contact { padding: 40px 0 64px; }
  .contact__heading { margin-bottom: 7px; font-size: .875rem; line-height: 1.375rem; }
  .contact__text { font-size: 1.375rem; line-height: 1.875rem; }
}

@media (max-width: 374px) {
  .contact__text { font-size: 5.86vw; line-height: 8vw; }
}

/* --- Формы (поддержка, горячая линия) ----------------------------------- */

.form { max-width: 880px; }
.form__field { margin: 0 0 16px; }

.form__input {
  display: block;
  width: 100%;
  padding: 15px 16px;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--c-text);
  background-color: var(--c-white);
  border: 1px solid rgba(10, 20, 40, .24);
  border-radius: 0;
  outline: none;
  transition: border-color .3s;
}
.form__input:focus { border-color: var(--c-text); }
.form__input::placeholder { color: rgba(10, 20, 40, .4); transition: opacity .3s; }
.form__input:focus::placeholder { opacity: 0; }
.form__input--textarea { min-height: 112px; resize: vertical; }

.form__select {
  appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230a1428'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  cursor: pointer;
}
.form__select:invalid,
.form__select.is-empty { color: rgba(10, 20, 40, .4); }

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.125rem;
  line-height: 1.5rem;
  cursor: pointer;
}
.form__checkbox input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--c-navy);
}

@media (max-width: 767px) {
  .form__checkbox { font-size: .875rem; line-height: 1.375rem; }
  .form__checkbox input { margin-top: 2px; }
}

.form__field-error {
  display: block;
  font-size: .875rem;
  line-height: 1.25rem;
  color: #c62828;
}
.form__field-error:not(:empty) { margin-top: 6px; }
.form__field--invalid .form__input { border-color: #c62828; }

.form__button {
  min-width: 192px;
  padding-top: 14px;
  padding-bottom: 18px;
}
.form__button:disabled { cursor: progress; opacity: .7; }
.form__submit-sending { display: none; }
.form--sending .form__submit-default { display: none; }
.form--sending .form__submit-sending { display: inline; }

.form__status {
  display: none;
  margin: 16px 0 0;
  font-size: 1rem;
  line-height: 1.5rem;
}
.form__status--error { color: #c62828; }
.form__status--success { color: #1b7a3a; }
.form--error .form__status--error,
.form--success .form__status--success { display: block; }

/* --- Дата с иконкой часов (новости, закупки) ---------------------- */

.date {
  position: relative;
  padding-left: 24px;
  font-size: .875rem;
  line-height: 1.25rem;
}
.date::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 16px;
  height: 16px;
  background: url("../img/icon-clock.svg") center / auto no-repeat;
  transform: translateY(-50%);
}

/* --- Footer -------------------------------------------------------------- */

.footer {
  padding: 31px 0 16px;
  border-top: 1px solid rgba(10, 20, 40, .24);
}

.footer__blocks {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin: 0 -20px 93px;
}
.footer__block { width: 22.1429%; margin: 0 20px; }

.footer__block-header {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
}
/* 22px на любой ширине — как в оригинале, где это правило перебивает медиазапросы */
.footer__block-header.footer__block-header--social { margin-bottom: 22px; }

.footer__block-content {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5625rem;
}
.footer__block-content p { margin: 0; }
.footer__block-content li { margin-bottom: 2px; }
.footer__block-content > .link { display: inline-block; }

.footer__block--contacts { flex-grow: 1; }
.footer__block--social { width: 15%; min-width: 210px; flex-shrink: 0; }

p.footer__address { margin: 2px 0 0; }

.footer__legal { display: grid; gap: 10px; }
.footer__copyright {
  margin: 0;
  font-size: .875rem;
  line-height: 1.25rem;
}

.social { padding: 0 0 0 2px; }
.social--flex {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  flex: 0 0 auto;
}
.social__icon { transition: transform .4s; }
.social__icon svg { fill: currentColor; transition: transform .4s; }
.social__icon:hover,
.social__icon:focus-within { transform: scale(1.1); }
.social__icon:hover svg,
.social__icon:focus-within svg { transform: scale(1.1); }
.social__icon .link::after { display: none; }
.social__icon--telegram { margin-right: 33px; }
.social__icon--vk { margin-top: 3px; width: 24px; height: 14px; }

@media (max-width: 1199px) {
  .footer__blocks { margin-bottom: 0; }
  .footer__block-header { margin-bottom: 16px; }
  .footer__block-content { line-height: 1.625rem; }
  .footer__block-content li { margin-bottom: 1px; }
  .social__icon--telegram { margin-right: 18px; }
  .social__icon--vk { margin-top: 5px; width: 36px; height: 21px; }
  .social__icon--vk svg { width: 36px; height: 21px; }
  .footer__legal { margin-top: 0; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .footer__block { flex-grow: 1; margin-bottom: 49px; width: 42.5824%; }
  .footer__block:nth-child(2n) { flex: 0 0 auto; width: 27.8846%; min-width: 203px; }
}

@media (max-width: 767px) {
  .footer { padding: 14px 0 16px; }
  .footer__blocks { margin: 0; }
  .footer__block { width: 46.6472%; min-width: 140px; margin: 0 0 24px; }
  .footer__block:nth-child(2n+1) { margin-right: auto; }
  .footer__block-header { font-size: .875rem; line-height: 1.375rem; margin-bottom: 9px; }
  .footer__block-content { font-size: 1.125rem; line-height: 1.875rem; }
  .footer__block-content li { margin-bottom: 0; }
  .footer__block--contacts { width: 100%; margin-bottom: 28px; }
  .footer__block--contacts .footer__block-content { line-height: 23px; }
  .footer__block--social { width: 100%; }
  .footer__block--social .footer__block-content { flex-wrap: wrap; line-height: 26px; }
  .footer__block--social .footer__block-content li { margin-right: 24px; }
}

/* --- Cookie notification ------------------------------------------------- */

.notification {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 130;
  width: calc(100% - 80px);
  max-width: 640px;
  padding: 28px 72px 28px 32px;
  color: var(--c-text);
  background-color: rgba(255, 255, 255, .98);
  border: 1px solid rgba(10, 20, 40, .12);
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(10, 20, 40, .16);
  animation: fadeInUp .6s var(--ease-out) both;
}
.notification[hidden] { display: none; }
.notification--hiding { animation: fadeOut .3s both; }

.notification__title {
  max-width: 440px;
  margin: 0 0 14px;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.875rem;
}
.notification__preview-text,
.notification__text { font-size: 1rem; line-height: 1.5rem; }
.notification__preview-text p,
.notification__text p { margin: 0 0 12px; }
.notification__preview-text { margin-bottom: 12px; }
.notification__text { margin-bottom: 18px; }

.notification__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(10, 20, 40, .28);
  transition: border-color .2s, color .2s;
}
.notification__link:hover,
.notification__link:focus-visible {
  color: var(--c-navy-hover);
  border-bottom-color: rgba(0, 59, 103, .4);
  outline: none;
}

.notification__accept-button {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-right: 24px;
  padding-left: 24px;
}

.notification__close-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  width: 24px;
  height: 24px;
  padding: 0;
  color: var(--c-text);
  background: none;
  border: 0;
  cursor: pointer;
  opacity: .72;
  transition: opacity .2s;
}
.notification__close-button::before,
.notification__close-button::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 3px;
  width: 18px;
  height: 1px;
  background-color: currentColor;
}
.notification__close-button::before { transform: rotate(45deg); }
.notification__close-button::after { transform: rotate(-45deg); }
.notification__close-button:hover,
.notification__close-button:focus-visible { opacity: 1; outline: none; }

@media (max-width: 767px) {
  .notification {
    right: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
    padding: 20px 56px 20px 20px;
  }
  .notification__title { font-size: 1.125rem; line-height: 1.5rem; margin-bottom: 10px; }
  .notification__preview-text,
  .notification__text { font-size: .875rem; line-height: 1.375rem; }
  .notification__preview-text p,
  .notification__text p { margin-bottom: 10px; }
  .notification__mobile-hidden-text { display: none; }
  .notification__close-button { top: 14px; right: 14px; }
}
