/* ============ Кнопка ============ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 14px 16px 14px 44px;
  border-radius: 40px;
  background: var(--ms-surface-alt);
  color: var(--ms-ink);
  font-size: var(--ms-text-body);
  line-height: var(--ms-text-ui-lh);
  font-weight: 500;
  transition: background-color 0.18s ease;
}

.btn::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23005e68'/%3E%3Cpath d='M10 16l4-4-4-4' stroke='%23FEFEFE' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn:hover {
  background: #e9e9e9;
}

/* ============ Первый экран ============ */

.hero {
  --ms-hero-gutter: clamp(20px, 3.125vw, 60px);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(100vh, 1080px);
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    #0b1116 url("../img/hero-bg.jpg") center / cover no-repeat;
  color: #fff;
}

.hero__dots {
  position: absolute;
  width: clamp(35px, 4.17vw, 80px);
  aspect-ratio: 80 / 64;
  background: url("../img/hero-dots.svg") center / contain no-repeat;
  pointer-events: none;
}

.hero__dots--top {
  left: var(--ms-hero-gutter);
  top: 21%;
}

.hero__dots--bottom {
  right: var(--ms-hero-gutter);
  bottom: 5.5%;
}

.hero__header {
  position: relative;
  z-index: 2;
}

.hero .container,
.menu .container {
  max-width: none;
  padding-left: var(--ms-hero-gutter);
  padding-right: var(--ms-hero-gutter);
}

.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ms-gutter);
  padding-top: clamp(30px, 3.33vw, 64px);
}

.hero__logo {
  flex: none;
}

.hero__logo img {
  width: clamp(114px, 14.5vw, 279px);
  height: auto;
}

.hero__nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 1.1vw, 21px);
}

.hero__link {
  font-size: clamp(15px, 1.35vw, 26px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  transition: opacity 0.18s ease;
}

.hero__link:hover {
  opacity: 0.6;
}

.hero__body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 48px;
  padding-bottom: 60px;
}

.hero__title {
  max-width: 1114px;
  font-size: clamp(24px, 4.95vw, 95px);
  line-height: 0.85;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.hero__lead {
  max-width: 887px;
  margin-top: clamp(20px, 2.5vw, 48px);
  font-size: clamp(14px, 1.875vw, 36px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(40px, 5vw, 92px);
  min-width: clamp(253px, 22.1vw, 425px);
  height: clamp(50px, 4.17vw, 80px);
  padding: 0 clamp(6px, 0.52vw, 10px) 0 clamp(25px, 1.56vw, 30px);
  border-radius: 999px;
  background: var(--ms-accent);
  color: #fff;
  transition: background-color 0.18s ease;
}

.hero__cta:hover {
  background: #00727f;
}

.hero__cta-text {
  font-size: clamp(14px, 1.35vw, 26px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero__cta-circle {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: clamp(38px, 3.125vw, 60px);
  height: clamp(38px, 3.125vw, 60px);
  border-radius: 50%;
  background: #fff;
  color: var(--ms-ink);
  transition: transform 0.18s ease;
}

.hero__cta:hover .hero__cta-circle {
  transform: translateX(3px);
}

.hero__arrow {
  width: clamp(12px, 1.04vw, 20px);
  height: auto;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 3px;
  padding: 8px 0;
}

.burger__line {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
}

@media (max-width: 1023px) {
  .hero {
    min-height: 100vh;
  }

  .hero__nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero__dots--top {
    top: 15%;
  }

  .hero__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-top: 0;
    padding-top: 96px;
    padding-bottom: 100px;
  }

  .hero__cta {
    margin-top: 40px;
    align-self: center;
    width: min(100%, 253px);
  }

  .hero__cta-text {
    font-size: 14px;
  }

  .hero__title {
    font-size: clamp(46px, 9vw, 86px);
  }

  .hero__lead {
    max-width: 75%;
    font-size: clamp(22px, 3.5vw, 34px);
  }
}

/* ============ Мобильное меню ============ */

.menu {
  --ms-hero-gutter: clamp(20px, 3.125vw, 60px);
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: var(--ms-bg) url("../img/hero-lines.svg") center / cover no-repeat;
  overflow-y: auto;
}

.menu[hidden] {
  display: none;
}

.menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--ms-ink);
}

.menu__close svg {
  width: 18px;
  height: 18px;
}

.menu__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 98px var(--ms-gutter) 40px;
}

.menu__link {
  font-size: 20px;
  line-height: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.is-menu-open {
  overflow: hidden;
}

/* ============ Липкая навигация по направлениям ============ */

.tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ms-bg);
  border-bottom: 1px solid var(--ms-line);
}

.tabs__list {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs__list::-webkit-scrollbar {
  display: none;
}

.tabs__link {
  display: block;
  flex: none;
  padding: 24px 0 24px;
  border-bottom: 1px solid transparent;
  font-size: var(--ms-text-body);
  line-height: var(--ms-text-ui-lh);
  font-weight: 500;
  color: var(--ms-ink-faint);
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.tabs__link:hover {
  color: var(--ms-ink-muted);
}

.tabs__link--active {
  color: var(--ms-ink);
  border-bottom-color: var(--ms-accent);
}

/* ============ Блок направления ============ */

.service {
  padding: var(--ms-block-pt) 0 var(--ms-block-pb);
}

.service__title {
  padding-bottom: 96px;
}

.service__lead {
  margin-bottom: 32px;
}

.service__lead p + p {
  margin-top: 12px;
}

.service__actions {
  padding-top: 32px;
}

@media (max-width: 1023px) {
  .service__title {
    padding-bottom: 24px;
  }
}

/* ============ Карточки ресурсов ============ */

.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ms-gutter);
  margin-bottom: var(--ms-gutter);
}

.product {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: 24px;
  border-radius: var(--ms-radius);
  background: var(--ms-surface);
  transition: background-color 0.18s ease;
}

.product:hover {
  background: var(--ms-surface-alt);
}

.product::before {
  content: "";
  display: block;
  width: 144px;
  height: 144px;
  margin: 0 0 auto auto;
  background: center / contain no-repeat;
}

.product--online::before {
  background-image: url("../img/product-online.png");
}

.product--tv::before {
  background-image: url("../img/product-tv.png");
}

.product--press::before {
  background-image: url("../img/product-press.png");
}

.product--events::before {
  background-image: url("../img/product-events.png");
}

.product__title {
  display: block;
  padding-bottom: 4px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
}

.product__caption {
  display: block;
  font-size: var(--ms-text-caption);
  line-height: var(--ms-text-caption-lh);
  color: var(--ms-ink-muted);
}

@media (max-width: 599px) {
  .products {
    grid-template-columns: 1fr;
  }

  .product {
    min-height: 216px;
    padding: 20px;
  }
}

/* ============ Карточки-метрики ============ */

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ms-gutter);
  margin-bottom: var(--ms-gutter);
}

.metric {
  padding: 25px 24px;
  border-radius: var(--ms-radius);
  background: var(--ms-surface);
}

.metric__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.metric__number {
  font-size: var(--ms-text-display);
  line-height: var(--ms-text-display-lh);
  font-weight: 600;
  letter-spacing: -0.5px;
}

.metric__unit {
  font-size: var(--ms-text-subtitle);
  line-height: var(--ms-text-subtitle-lh);
  font-weight: 600;
  letter-spacing: -0.4px;
}

.metric__caption {
  font-size: var(--ms-text-caption);
  line-height: var(--ms-text-caption-lh);
}

@media (max-width: 599px) {
  .metrics {
    grid-template-columns: 1fr;
  }
}

/* ============ Карточки-ссылки (материалы направления) ============ */

.files {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: var(--ms-radius);
  background: var(--ms-surface);
  transition: background-color 0.18s ease;
}

.file:hover {
  background: var(--ms-surface-alt);
}

.file::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23005e68'/%3E%3Cpath d='M7.222 12.777l5.555-5.555M7.222 7.222h5.555v5.555' stroke='%23FEFEFE' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.file__body {
  flex: 1;
  min-width: 0;
}

.file__name {
  display: block;
  font-size: var(--ms-text-body);
  line-height: var(--ms-text-ui-lh);
  font-weight: 500;
}

.file__meta {
  display: block;
  margin-top: 4px;
  font-size: var(--ms-text-caption);
  line-height: var(--ms-text-caption-lh);
  color: var(--ms-ink-faint);
}

/* ============ Клиенты ============ */

.clients {
  padding: var(--ms-block-pt) 0 var(--ms-block-pb);
}

.clients__lead {
  max-width: 60ch;
  margin-top: 12px;
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.clients__logo {
  width: 100%;
  height: auto;
  transition: opacity 0.18s ease;
}

.clients__item:hover .clients__logo {
  opacity: 0.85;
}

@media (max-width: 1023px) {
  .clients__grid {
    display: flex;
    gap: 12px;
    margin-right: calc(var(--ms-gutter) * -1);
    padding-right: var(--ms-gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .clients__grid::-webkit-scrollbar {
    display: none;
  }

  .clients__item {
    flex: 0 0 168px;
    scroll-snap-align: start;
  }
}

/* ============ Видео-ответы ============ */

.videos {
  padding: var(--ms-block-pt) 0 var(--ms-block-pb);
  background: var(--ms-surface);
}

.videos__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--ms-gutter);
  margin-bottom: 40px;
}

.videos__lead {
  max-width: 60ch;
  margin-top: 12px;
}

.videos__slider:not(.keen-slider) .videos__slide + .videos__slide {
  display: none;
}

.videos__slide {
  min-width: 0;
}

.video-card {
  display: block;
  border-radius: var(--ms-radius);
  overflow: hidden;
  background: var(--ms-bg);
}

.video-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ms-surface-alt);
}

.video-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ms-ink);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.video-card:hover .video-card__play {
  background: var(--ms-accent-soft);
  transform: translate(-50%, -50%) scale(1.06);
}

.video-card--playing .video-card__play {
  display: none;
}

.video-card__play svg {
  width: 22px;
  height: 22px;
}

.video-card__body {
  padding: 20px 24px 24px;
  background: var(--ms-bg);
}

.video-card__title {
  font-size: var(--ms-text-body);
  line-height: var(--ms-text-body-lh);
  font-weight: 500;
}

.video-card__meta {
  margin-top: 6px;
  font-size: var(--ms-text-caption);
  line-height: var(--ms-text-caption-lh);
  color: var(--ms-ink-faint);
}

.videos__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.videos__controls[hidden] {
  display: none;
}

.videos__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ms-bg);
  color: var(--ms-ink);
  transition: background-color 0.18s ease, opacity 0.18s ease;
}

.videos__arrow:hover {
  background: var(--ms-accent-soft);
}

.videos__arrow[disabled] {
  opacity: 0.35;
  cursor: default;
}

.videos__arrow[disabled]:hover {
  background: var(--ms-bg);
}

.videos__arrow svg {
  width: 20px;
  height: 20px;
}

.videos__progress {
  display: block;
  width: 200px;
  height: 4px;
  border-radius: 2px;
  background: var(--ms-line);
  overflow: hidden;
}

.videos__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--ms-accent);
  transition: width 0.3s ease;
}

@media (max-width: 1023px) {
  .videos__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .videos__progress {
    width: 120px;
  }
}

/* ============ Заявка ============ */

.cta {
  padding: 64px 0 78px;
  background: var(--ms-surface-alt);
}

.cta__title {
  padding-bottom: 12px;
  font-size: var(--ms-text-title);
  line-height: var(--ms-text-title-lh);
  font-weight: 500;
  letter-spacing: -0.5px;
}

.cta__text {
  color: var(--ms-ink-muted);
}

.form {
  display: grid;
  gap: 16px;
}

.form__input {
  width: 100%;
  height: 55px;
  padding: 15px 16px;
  border: 0;
  border-radius: 4px;
  background: var(--ms-bg);
  font-size: var(--ms-text-body);
  line-height: var(--ms-text-body-lh);
}

.form__input::placeholder {
  color: var(--ms-ink-muted);
}

.form__input:focus {
  outline: 2px solid var(--ms-ink);
  outline-offset: 0;
}

.form__submit {
  padding: 18px 32px;
  border-radius: 4px;
  background: var(--ms-accent);
  color: #fefefe;
  font-size: var(--ms-text-body);
  line-height: var(--ms-text-ui-lh);
  font-weight: 500;
  transition: background-color 0.18s ease;
}

.form__submit:hover {
  background: #004a52;
}

.form__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.form__note {
  flex: 1 1 240px;
  color: var(--ms-ink-muted);
  font-size: var(--ms-text-caption);
  line-height: var(--ms-text-caption-lh);
}

.form__note a {
  text-decoration: underline;
}

.form__status {
  padding: 15px 16px;
  border-radius: 4px;
  background: var(--ms-bg);
}

.form__status--success {
  color: var(--ms-accent);
}

.form__status--error {
  color: #b3261e;
}

/* ============ Подвал ============ */

.site-footer {
  background: #111;
  color: var(--ms-ink-muted);
  font-size: var(--ms-text-caption);
  line-height: var(--ms-text-ui-lh);
}

.site-footer__base {
  padding: 112px 0 120px;
}

.site-footer__base .section__col + .section__col {
  margin-top: 0;
}

.site-footer__brand {
  display: block;
  width: 150px;
  margin-bottom: 24px;
}

.site-footer__brand img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.site-footer__caption {
  max-width: 360px;
  font-size: var(--ms-text-body);
  line-height: var(--ms-text-body-lh);
}

.site-footer__title {
  margin-bottom: 20px;
  font-size: var(--ms-text-body);
  line-height: var(--ms-text-body-lh);
  font-weight: 500;
  color: #fefefe;
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 40px;
}

.site-footer__link {
  font-size: var(--ms-text-body);
  line-height: var(--ms-text-body-lh);
  transition: color 0.18s ease;
}

.site-footer__link:hover {
  color: #fefefe;
}

.site-footer__bottom {
  padding-bottom: 32px;
  border-top: 1px solid #373737;
}

.site-footer__copyright {
  padding-top: 39px;
  font-size: var(--ms-text-caption);
  line-height: var(--ms-text-caption-lh);
}

.site-footer__copyright p {
  max-width: 984px;
}

.site-footer__copyright a {
  text-decoration: underline;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 28px;
}

.site-footer__legal-item {
  font-size: var(--ms-text-caption);
  line-height: var(--ms-text-caption-lh);
  text-decoration: underline;
}

.site-footer__legal-item + .site-footer__legal-item::before {
  content: "·";
  margin: 0 12px;
  text-decoration: none;
  display: inline-block;
}

@media (max-width: 1023px) {
  .site-footer__base {
    padding: 64px 0 40px;
  }

  .site-footer__base > .section > .section__col + .section__col {
    margin-top: 32px;
  }

  .site-footer__base .section .section .section__col--1of2 {
    width: 50%;
  }
}
