body {
  scrollbar-gutter: auto;
}

.main-page {
  --home-gutter: clamp(16px, 4vw, 64px);
  --section-space: clamp(56px, 8vw, 110px);
  padding: 0 var(--home-gutter);
}

.navbar,
.footer-section {
  width: 100%;
}

.main-page .laptop-pin-block {
  flex: none;
  width: calc(100% + 2 * var(--home-gutter));
}

.main-page .hero-section {
  width: 100% !important;
  max-width: 1160px !important;
  margin: clamp(44px, 7vw, 105px) auto 0 !important;
  padding: 0 !important;
  gap: clamp(16px, 2.25vw, 30px);
}

.hero-section .hero-subtitle-top {
  margin: 0;
  font-size: clamp(12px, 1.55vw, 19px);
  font-weight: 450;
  line-height: 1.35;
  color: #989aaa;
}

.hero-section .hero-title {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 1160px !important;
  margin: 0;
  padding: 0 !important;
  font-size: clamp(26px, 2.85vw, 39px) !important;
  font-weight: 600;
  line-height: 1.16 !important;
  text-align: center;
  text-wrap: balance;
}

.hero-section .hero-subtitle-bottom {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(15px, 1.85vw, 23px) !important;
  font-weight: 350;
  line-height: 1.5;
  color: #dedee7;
  text-align: center;
  text-wrap: balance;
}

.hero-section .hero-btn,
.main-page .third-btn,
.telegram-ads-cta {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.hero-section .hero-btn {
  width: fit-content !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 50px;
  padding: clamp(12px, 1.6vw, 21px) clamp(18px, 3vw, 34px);
  font-size: clamp(16px, 1.95vw, 24px) !important;
  font-weight: 500;
}

.hero-btn:focus-visible,
.third-btn:focus-visible,
.service-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.main-page .about-section,
.main-page .services-section,
.main-page .cases-section,
.main-page .blog-section,
.main-page .form-section {
  box-sizing: border-box;
  width: 100%;
  padding-inline: 0 !important;
  scroll-margin-top: clamp(18px, 3vw, 40px);
}

.main-page :is(.about-section, .services-section) > .about-title {
  margin-bottom: clamp(20px, 3.5vw, 44px);
  text-align: center;
}

.main-page .about-cards-grid {
  display: grid;
  width: min(100%, 1240px);
  justify-content: stretch;
  margin: 0 auto;
}

.about-cards-grid .carousel-card.static-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  justify-content: normal;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  width: 100% !important;
  min-height: 0;
  height: auto !important;
  padding: clamp(24px, 5vw, 70px);
  border-radius: clamp(28px, 5vw, 64px);
}

.about-cards-grid .carousel-card-left,
.about-cards-grid .carousel-card-right {
  min-width: 0;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  padding: 0;
}

.about-cards-grid .carousel-card-left {
  display: flex;
  flex-direction: column;
  gap: clamp(13px, 2vw, 24px);
}

.about-cards-grid .light-icon {
  display: block;
  width: clamp(26px, 3.2vw, 44px) !important;
  height: auto !important;
  margin: 0;
}

.about-cards-grid .carousel-card-left .carousel-desc {
  width: auto !important;
  max-width: none !important;
  margin: 0;
  color: #a9adc3;
  font-size: clamp(16px, 1.9vw, 25px) !important;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.about-brand-visual {
  position: relative;
  width: min(100%, 420px);
  overflow: hidden;
  border-radius: clamp(24px, 4vw, 42px);
  text-align: center;
  background: #070b17;
}

.about-brand-art {
  aspect-ratio: 1;
}

.about-brand-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-brand-visual > p {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  margin: 0;
}

/* The old tagline is part of the image. Cover just those lines and keep the full frame. */
.about-brand-visual::after {
  content: "";
  position: absolute;
  inset: 68.5% 13% 16.5%;
  background: #02050e;
}

.main-page .services-section {
  margin-top: var(--section-space) !important;
}

.services-section .subtitle {
  max-width: 680px !important;
  margin: 0 auto clamp(24px, 4vw, 48px);
}

.services-section .services-grid {
  display: grid;
  width: min(100%, 1160px);
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(16px, 3vw, 36px);
  align-items: stretch;
}

.services-grid .service-card {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vw, 20px);
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  height: auto !important;
  padding: clamp(20px, 3.5vw, 44px) !important;
  margin: 0 !important;
  border-radius: clamp(26px, 5vw, 58px) !important;
}

.services-grid .service-card h3 {
  margin: 0;
  font-size: clamp(21px, 2.55vw, 36px) !important;
  line-height: 1.2;
  text-wrap: balance;
}

.services-grid .service-card p {
  margin: 0;
  color: #a9adc3;
  font-size: clamp(15px, 1.5vw, 19px) !important;
  line-height: 1.45;
  text-wrap: pretty;
}

.services-grid .service-card .service-img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  margin: auto 0 0;
  border-radius: clamp(15px, 3vw, 28px);
}

.services-grid .service-card .service-btn {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 48px !important;
  margin: 0;
  padding: clamp(12px, 1.8vw, 18px) 18px !important;
  font-size: clamp(16px, 1.9vw, 23px) !important;
  line-height: 1.25;
}

@supports (grid-template-rows: subgrid) {
  .services-grid .service-card {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
  }

  .services-grid .service-card .service-img {
    align-self: start;
    margin: 0;
  }

  .services-grid .service-card :is(h3, p) {
    align-self: start;
  }
}

.main-page .blog-main-card {
  max-width: 100%;
}

.main-page .third-content {
  width: 100% !important;
  min-width: 0;
}

.main-page .third-content > * {
  min-width: 0;
  max-width: 100%;
}

.main-page .blog-main-info > :is(h3, p) {
  max-width: 100%;
}

.main-page .blog-main-card .blog-actions {
  width: 100%;
  margin: 0;
  justify-content: flex-start;
}

.main-page .blog-main-card .blog-actions .service-btn {
  box-sizing: border-box;
  max-width: 100% !important;
}

.footer-section .footer-actions {
  justify-content: center;
}

.footer-section .footer-actions > .service-btn {
  margin: 0 !important;
}

.footer-section .footer-nav {
  gap: clamp(18px, 5vw, 76px) !important;
}

.telegram-ads-page {
  width: min(100% - 48px, 1080px);
  box-sizing: border-box;
  margin-inline: auto;
  padding: clamp(120px, 12vw, 180px) 0 100px;
  color: #fff;
  gap: 24px;
  align-items: center;
}

.telegram-ads-page .promo-main-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  text-wrap: balance;
}

.telegram-ads-back {
  align-self: flex-start;
  color: #b2b6d2;
  font-size: 16px;
  text-decoration: none;
}

.telegram-ads-back:hover {
  color: #fff;
}

.telegram-ads-lead {
  max-width: 750px;
  margin: 0;
  font-size: clamp(17px, 2.2vw, 23px);
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

.telegram-ads-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
  padding: clamp(20px, 4vw, 42px);
  border-radius: 32px;
  background: #1c1c23;
}

.telegram-ads-card p,
.telegram-ads-budget p {
  margin: 0;
  color: #bec0d0;
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.6;
}

.telegram-ads-card img {
  display: block;
  width: 100%;
  border-radius: 20px;
}

.telegram-ads-budget {
  text-align: center;
}

.telegram-ads-budget strong {
  display: block;
  margin-bottom: 7px;
  font-size: clamp(27px, 3.8vw, 43px);
}

.telegram-ads-cta {
  width: auto;
  max-width: 100%;
  height: auto;
  padding: 14px 26px;
  text-align: center;
}

@media (max-width: 820px) {
  .about-cards-grid .carousel-card.static-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .about-brand-visual {
    width: min(100%, 350px);
  }

  .main-page .blog-main-card .blog-actions {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .services-section .services-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .services-grid .service-card {
    display: flex;
    grid-row: auto;
    max-width: 500px !important;
    margin-inline: auto !important;
  }

  .services-grid .service-card :is(h3, p) {
    align-self: center;
  }

  .footer-section .footer-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 14px !important;
  }

  .footer-section .footer-actions > .service-btn {
    width: auto !important;
    max-width: 100% !important;
  }
}

@media (max-width: 650px) {
  .telegram-ads-page {
    width: calc(100% - 32px);
    padding-top: 110px;
    padding-bottom: 65px;
  }

  .telegram-ads-card {
    grid-template-columns: 1fr;
  }
}
