:root {
  color: #0b1f3a;
  background: #f6f7f9;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 88% 14%, rgba(41, 152, 255, 0.12), transparent 25rem),
    radial-gradient(circle at 8% 95%, rgba(255, 127, 112, 0.1), transparent 24rem),
    #f6f7f9;
}

a {
  color: inherit;
}

.site-header {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 143px;
  height: 25px;
}

.back-link,
.card-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.back-link svg,
.card-action svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.back-link:hover svg,
.calculator-card:hover .card-action svg {
  transform: translateX(4px);
}

main {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 70px 0 60px;
}

.hero {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 20px;
  color: #0162f7;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 6.2vw, 82px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 660px;
  margin: 28px 0 0;
  color: #596579;
  font-size: 20px;
  line-height: 1.5;
}

.catalog {
  margin-top: 70px;
}

.section-head {
  margin-bottom: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.section-head h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.025em;
}

.section-head span {
  color: #7b8493;
  font-size: 13px;
}

.calculator-card {
  position: relative;
  min-height: 340px;
  padding: 46px 50px;
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 32px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  align-items: center;
  gap: 60px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 16%, rgba(41, 152, 255, 0.38), transparent 19rem),
    linear-gradient(135deg, #071b38 0%, #0b2f5b 100%);
  box-shadow: 0 24px 60px rgba(7, 27, 56, 0.16);
  text-decoration: none;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.calculator-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(7, 27, 56, 0.22);
}

.calculator-card:focus-visible {
  outline: 3px solid #2998ff;
  outline-offset: 4px;
}

.card-copy {
  position: relative;
  z-index: 1;
}

.card-badge {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #a9d5ff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card-copy h3 {
  max-width: 540px;
  margin: 22px 0 14px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.card-copy p {
  max-width: 570px;
  margin: 0;
  color: #becada;
  font-size: 16px;
  line-height: 1.55;
}

.card-action {
  margin-top: 30px;
  color: #fff;
}

.card-visual {
  min-width: 0;
  padding: 27px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  background: rgba(2, 17, 39, 0.5);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  transform: rotate(1.5deg);
}

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

.visual-top span {
  color: #9cabbd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-top strong {
  font-size: 34px;
  letter-spacing: -0.04em;
}

.visual-chart {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.donut {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(#2998ff 0 58%, #79bdf6 58% 100%);
  box-shadow: inset 0 0 0 23px #09264a;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #c3cede;
  font-size: 12px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.blue {
  background: #2998ff;
}

.sky {
  background: #79bdf6;
}

.visual-line {
  height: 6px;
  margin-top: 25px;
  border-radius: 99px;
  overflow: hidden;
  background: #79bdf6;
}

.visual-line span {
  display: block;
  width: 58%;
  height: 100%;
  background: #2998ff;
}

.catalog-note {
  margin: 18px 4px 0;
  color: #7b8493;
  font-size: 13px;
}

footer {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid rgba(11, 31, 58, 0.1);
  display: flex;
  justify-content: space-between;
  color: #7b8493;
  font-size: 12px;
}

@media (max-width: 780px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    padding: 22px 0;
  }

  .back-link span {
    display: none;
  }

  main {
    padding: 42px 0 44px;
  }

  h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .hero-copy {
    margin-top: 22px;
    font-size: 17px;
  }

  .catalog {
    margin-top: 52px;
  }

  .calculator-card {
    min-height: 0;
    padding: 30px 26px 0;
    border-radius: 26px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .card-copy h3 {
    font-size: 34px;
  }

  .card-visual {
    width: calc(100% + 20px);
    justify-self: center;
    margin-bottom: -22px;
    padding: 22px;
    transform: rotate(0);
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
