:root {
  --ink: #071b49;
  --muted: #27375f;
  --blue: #1775ff;
  --blue-dark: #0f5de8;
  --blue-soft: #eaf4ff;
  --line: rgba(9, 46, 105, 0.12);
  --panel: rgba(255, 255, 255, 0.9);
  --shadow: 0 28px 80px rgba(31, 105, 207, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at 88% 12%, rgba(55, 138, 255, 0.24), transparent 28rem),
    radial-gradient(circle at 16% 5%, rgba(255, 255, 255, 0.92), transparent 21rem),
    linear-gradient(135deg, #f8fcff 0%, #eef7ff 45%, #d8ebff 100%);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 560px;
  padding: clamp(42px, 5vw, 70px) clamp(22px, 5vw, 72px) 0;
}

.hero::before,
.hero::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

.hero::before {
  width: 520px;
  height: 520px;
  top: -310px;
  left: -120px;
}

.hero::after {
  width: 720px;
  height: 720px;
  right: -190px;
  top: 24px;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, 500px) minmax(440px, 1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 48px);
  min-height: 560px;
}

.hero__text {
  max-width: 500px;
  padding-bottom: 58px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 0;
}

.accent-line,
.card-line {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #41a6ff);
}

.accent-line {
  width: 96px;
  margin: 36px 0 32px;
}

.hero p {
  max-width: 465px;
  margin: 0;
  color: #152344;
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.55;
}

.hero__visual {
  position: absolute;
  z-index: -1;
  inset: calc(clamp(42px, 5vw, 70px) * -1) 0 0 32%;
  min-width: 0;
  height: auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, rgba(0, 0, 0, 0.18) 34%, rgba(0, 0, 0, 0.72) 56%, #000 74%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, rgba(0, 0, 0, 0.18) 34%, rgba(0, 0, 0, 0.72) 56%, #000 74%);
}

.hero__visual::before {
  content: none;
}

.hero__visual img {
  position: absolute;
  inset: 0 0 0 auto;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: contain;
  object-position: right center;
  filter: drop-shadow(0 32px 54px rgba(43, 112, 208, 0.17));
}

.content-panel {
  position: relative;
  z-index: 2;
  margin-top: -54px;
  padding: clamp(28px, 4vw, 38px) clamp(22px, 7vw, 104px) clamp(30px, 4vw, 48px);
  border-radius: 72px 72px 0 0;
  background: var(--panel);
  box-shadow: 0 -14px 55px rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 26px);
  max-width: 1000px;
  margin: 0 auto;
}

.topic-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(20px, 2.7vw, 30px) 22px 22px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 45px rgba(48, 84, 133, 0.07);
}

.topic-card--link {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.topic-card--link:hover,
.topic-card--link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(23, 117, 255, 0.28);
  box-shadow: 0 24px 52px rgba(48, 84, 133, 0.12);
}

.topic-card__icon {
  display: grid;
  width: 114px;
  height: 114px;
  place-items: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.topic-card__icon svg {
  width: 62px;
  height: 62px;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4.3;
  filter: drop-shadow(0 12px 15px rgba(0, 111, 255, 0.25));
}

.topic-card__icon img {
  width: 106px;
  height: 106px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(28, 93, 198, 0.16));
}

.topic-card__icon .topic-card__image--wide {
  width: 126px;
  height: 104px;
}

.topic-card h2 {
  margin: 20px 0 12px;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

.card-line {
  width: 50px;
  height: 4px;
  margin-bottom: 16px;
}

.topic-card p {
  max-width: 270px;
  margin: 0;
  color: #162449;
  font-size: clamp(15px, 1.12vw, 18px);
  line-height: 1.45;
}

.icon-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-top: auto;
  border-radius: 50%;
  color: var(--blue);
  background: #eaf4ff;
  transition: transform 180ms ease, background 180ms ease;
}

.icon-button:hover {
  transform: translateY(-3px);
  background: #dcecff;
}

.icon-button svg,
.telegram-cta__arrow svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.telegram-cta {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 18px;
  width: min(640px, 70%);
  min-height: 78px;
  margin: 56px auto 62px;
  padding: 12px 28px;
  color: white;
  border-radius: 24px;
  background: linear-gradient(135deg, #45a9ff 0%, #176fff 52%, #2d7fff 100%);
  box-shadow: 0 24px 52px rgba(30, 112, 255, 0.32);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.telegram-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 64px rgba(30, 112, 255, 0.38);
}

.telegram-cta__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  box-shadow: inset 0 -10px 16px rgba(25, 117, 255, 0.12);
}

.telegram-cta__icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.telegram-cta__copy {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.telegram-cta__copy strong {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.05;
  font-weight: 800;
}

.telegram-cta__copy span {
  font-size: clamp(13px, 1.15vw, 16px);
  line-height: 1.3;
  font-weight: 500;
}

.telegram-cta__arrow {
  display: grid;
  width: 52px;
  place-items: center;
  color: white;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 1110px;
  margin: 0 auto;
}

.benefit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 0 28px;
  color: #0d1b43;
  border-right: 1px solid var(--line);
  font-size: clamp(16px, 1.35vw, 22px);
  line-height: 1.25;
  font-weight: 500;
}

.benefit:first-child {
  padding-left: 0;
}

.benefit:last-child {
  padding-right: 0;
  border-right: 0;
}

.benefit svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.legal-footer {
  max-width: 1040px;
  margin: 34px auto 0;
  padding: 26px clamp(18px, 4vw, 34px) 40px;
  color: rgba(16, 32, 68, 0.62);
  font-size: 11px;
  line-height: 1.55;
}

.legal-footer h2 {
  margin: 0 0 12px;
  color: rgba(6, 24, 57, 0.72);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.legal-footer p {
  margin: 0 0 9px;
}

.legal-footer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1020px) {
  .hero {
    min-height: auto;
  }

  .hero__content {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__text {
    max-width: 720px;
    padding-bottom: 0;
  }

  .hero__visual {
    position: relative;
    z-index: 0;
    inset: auto;
    height: clamp(320px, 58vw, 520px);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero__visual img {
    width: 100%;
    height: 100%;
    object-position: right center;
  }

  .content-panel {
    border-radius: 48px 48px 0 0;
  }

  .topic-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .topic-card {
    min-height: 0;
  }

  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  .benefit:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at 92% 4%, rgba(55, 138, 255, 0.2), transparent 16rem),
      linear-gradient(135deg, #f8fcff 0%, #edf7ff 52%, #dceeff 100%);
  }

  .page-shell {
    overflow: hidden;
  }

  .hero {
    padding: 28px 16px 0;
  }

  .hero h1 {
    max-width: 340px;
    font-size: clamp(28px, 8.2vw, 34px);
    line-height: 1.14;
  }

  .hero p {
    max-width: 330px;
    font-size: 16px;
    line-height: 1.5;
  }

  .accent-line {
    width: 70px;
    height: 5px;
    margin: 22px 0 20px;
  }

  .hero__visual {
    display: block;
    position: relative;
    inset: auto;
    z-index: 0;
    height: 210px;
    margin: 20px -18px 0;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 18px 30px rgba(43, 112, 208, 0.12));
  }

  .content-panel {
    margin-top: -8px;
    padding: 22px 14px 30px;
    border-radius: 28px 28px 0 0;
  }

  .topic-grid {
    max-width: 390px;
    gap: 12px;
  }

  .topic-card {
    min-height: 0;
    padding: 18px 16px;
  }

  .topic-card__icon {
    width: 82px;
    height: 82px;
  }

  .topic-card__icon svg {
    width: 48px;
    height: 48px;
  }

  .topic-card__icon img {
    width: 80px;
    height: 80px;
  }

  .topic-card__icon .topic-card__image--wide {
    width: 96px;
    height: 78px;
  }

  .topic-card h2 {
    margin: 14px 0 10px;
    font-size: 22px;
  }

  .topic-card p {
    max-width: 295px;
    font-size: 15px;
  }

  .card-line {
    width: 42px;
    margin-bottom: 12px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
    margin-top: 18px;
  }

  .telegram-cta {
    width: 100%;
    max-width: 390px;
    min-height: 76px;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    margin: 34px auto 36px;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .telegram-cta__icon {
    width: 44px;
    height: 44px;
  }

  .telegram-cta__icon svg {
    width: 26px;
    height: 26px;
  }

  .telegram-cta__copy {
    justify-items: start;
    text-align: left;
  }

  .telegram-cta__copy strong {
    font-size: 20px;
  }

  .telegram-cta__copy span {
    font-size: 13px;
  }

  .telegram-cta__arrow {
    display: none;
  }

  .benefits {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .benefit,
  .benefit:first-child,
  .benefit:last-child {
    min-height: 58px;
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 14px;
    font-size: 16px;
  }

  .benefit:last-child {
    border-bottom: 0;
  }

  .benefit svg {
    width: 38px;
    height: 38px;
  }

  .legal-footer {
    margin-top: 18px;
    padding: 20px 14px 32px;
    font-size: 10.5px;
  }
}
