:root {
  color-scheme: light;
  --background: #f4f6fa;
  --ink: #132b44;
  --muted: #55697c;
  --accent: #204fbd;
  --line: #dce3ee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--background); color: var(--ink); line-height: 1.65; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 3px solid #e49636; outline-offset: 6px; border-radius: 3px; }
h1, h2, h3, p { overflow-wrap: break-word; }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 16px; background: white; color: var(--ink); padding: 12px 20px; z-index: 2; }
.skip:focus { top: 12px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 104px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; }
.wordmark { font-size: 26px; letter-spacing: .14em; font-weight: 800; }
.brand-caption { font-size: 11px; letter-spacing: .13em; color: var(--muted); margin-top: 5px; }
nav, .languages { display: flex; align-items: center; gap: 28px; }
nav a, .languages a { font-size: 14px; text-decoration: none; padding-block: 10px; }
nav a:hover, .languages a:hover { color: var(--accent); }
.languages { gap: 10px; color: var(--muted); }
.languages a { font-size: 12px; }
.languages [aria-current] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }

.hero {
  position: relative;
  width: calc(100% - 32px);
  max-width: 1600px;
  padding: 82px max(40px, calc((100% - 1120px) / 2)) 74px;
  border-radius: 16px;
  background: #173e91;
  color: #fff;
  text-align: center;
}
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 20px; color: var(--muted); }
.hero .eyebrow { color: #c3d6ff; }
h1 { font-size: clamp(40px, 5.3vw, 70px); font-weight: 620; letter-spacing: -.045em; line-height: 1.12; margin: 0 0 28px; }
.hero-bottom { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.intro { max-width: 670px; margin: 0; color: #d6e1fa; font-size: 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 32px; min-height: 54px; padding: 13px 24px; border-radius: 7px; background: #fff; color: #173e91; font-size: 15px; font-weight: 650; text-decoration: none; }
.button:hover { background: #e7efff; }

.section { padding-block: 76px; }
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 38px; }
.section-heading .eyebrow { display: none; }
h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 600; line-height: 1.25; letter-spacing: -.03em; margin: 0; }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; background: #fff; border: 1px solid var(--line); padding: 34px; border-radius: 12px; }
.service-symbol { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: #edf2fc; border-radius: 10px; color: var(--accent); font-size: 23px; font-weight: 650; }
.service h3 { margin: 0 0 12px; font-size: 23px; font-weight: 620; line-height: 1.3; letter-spacing: -.02em; }
.service p { margin: 0; color: var(--muted); font-size: 16px; }

#products { padding-top: 0; }
.product { position: relative; min-height: 330px; background: #e6edf7; border-radius: 16px; padding: 40px 43% 40px 44px; overflow: hidden; }
.product-heading { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.product-heading .eyebrow { font-size: 10px; letter-spacing: .06em; margin: 0; }
.status { display: inline-flex; align-items: center; gap: 7px; color: #3a5770; font-size: 11px; border: 1px solid #bdccdd; padding: 4px 9px; border-radius: 5px; }
.status span { width: 5px; height: 5px; border-radius: 50%; background: #627e9e; }
.product h3 { font-size: 38px; line-height: 1.2; letter-spacing: -.04em; margin: 24px 0 18px; }
.product-description { color: #3f5770; font-size: 17px; margin: 0; }
.product-detail { color: #50677e; font-size: 14px; margin: 20px 0 0; }
.product-illustration { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: repeat(2, 94px); gap: 14px; }
.math-symbol { display: flex; align-items: center; justify-content: center; width: 94px; height: 94px; border-radius: 24px; font-size: 62px; font-weight: 400; line-height: 1; background: #b9ccec; color: #284d8c; }
.math-symbol:nth-child(2) { background: #f2dcb8; color: #795d30; margin-top: 28px; }
.math-symbol:nth-child(3) { background: #c0dcd8; color: #38635c; margin-left: 44px; margin-top: -12px; }

.contact-section { background: white; border-block: 1px solid var(--line); }
.contact-inner { padding-block: 66px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.contact-inner .eyebrow { display: none; }
.contact-inner h2 { font-size: 42px; }
.contact-inner p { max-width: 520px; margin: 18px 0 0; color: var(--muted); }
.email { display: inline-flex; align-items: center; gap: 24px; color: var(--accent); font-size: 23px; font-weight: 550; text-decoration: none; }
.email:hover { text-decoration: underline; }
.site-footer { padding-block: 35px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; }
.footer-top strong { font-size: 14px; }
.footer-top p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.footer-top > a { font-size: 13px; }
.legal { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 25px; color: var(--muted); font-size: 10px; }
.legal p { margin: 3px 0; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .hero { width: calc(100% - 24px); padding: 65px 32px; }
  .product { padding-left: 30px; padding-right: 35%; }
  .product-illustration { right: 3%; grid-template-columns: repeat(2, 67px); gap: 10px; }
  .math-symbol { width: 67px; height: 67px; font-size: 45px; border-radius: 18px; }
  .math-symbol:nth-child(3) { margin-left: 30px; }
  nav { gap: 18px; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { display: grid; grid-template-columns: 1fr auto; padding-block: 22px; gap: 18px; }
  nav { grid-row: 2; grid-column: 1 / -1; gap: 30px; }
  .languages { grid-column: 2; grid-row: 1; }
  .wordmark { font-size: 24px; }
  .hero { width: calc(100% - 20px); padding: 50px 22px; }
  h1 { font-size: clamp(34px, 8.3vw, 52px); }
  .hero .eyebrow { font-size: 10px; }
  .intro { font-size: 16px; }
  .section { padding-block: 45px; }
  .section-heading { margin-bottom: 26px; }
  .service-list { grid-template-columns: 1fr; gap: 16px; }
  .service { padding: 26px; gap: 18px; }
  .service h3 { font-size: 21px; }
  .product { padding: 28px; min-height: auto; }
  .product h3 { font-size: 32px; }
  .product-illustration { position: static; transform: none; display: flex; align-items: center; justify-content: flex-start; margin-top: 30px; gap: 12px; }
  .math-symbol { width: 58px; height: 58px; font-size: 38px; border-radius: 15px; }
  .math-symbol:nth-child(2), .math-symbol:nth-child(3) { margin: 0; }
  .contact-inner { padding-block: 45px; }
  .contact-inner h2 { font-size: 34px; }
  .email { font-size: clamp(16px, 5.4vw, 23px); gap: 15px; }
  .footer-top { flex-direction: column; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
