:root {
  color-scheme: light;
  --ink: #101827;
  --muted: #5d6879;
  --line: #dce2ea;
  --surface: #f7f9fc;
  --white: #ffffff;
  --blue: #1c55d9;
  --blue-dark: #153b91;
  --navy: #101d35;
  --accent: #57d2c3;
  --max-width: 1160px;
  --shadow: 0 28px 70px rgba(19, 42, 82, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.narrow {
  max-width: 800px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 36px;
  background: var(--blue);
  color: var(--white);
  border-radius: 5px 12px 5px 5px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-navigation a {
  color: #394457;
  font-size: 0.91rem;
  font-weight: 600;
  text-decoration: none;
}

.main-navigation a:hover,
.main-navigation a[aria-current="page"] {
  color: var(--blue);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.menu-button > span:not(.visually-hidden) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 122px;
  background:
    linear-gradient(90deg, rgba(28, 85, 217, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(28, 85, 217, 0.045) 1px, transparent 1px),
    var(--surface);
  background-size: 48px 48px;
}

.hero::after {
  position: absolute;
  content: "";
  width: 360px;
  height: 360px;
  right: -180px;
  bottom: -180px;
  border: 80px solid rgba(87, 210, 195, 0.16);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  align-items: center;
  gap: 78px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #79e1d4;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(3.2rem, 7vw, 5.9rem);
}

.hero h1 span {
  color: var(--blue);
}

.hero-intro {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--blue);
  color: var(--white);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: #9eaabb;
}

.hero-visual {
  position: relative;
  min-height: 390px;
}

.visual-window {
  position: absolute;
  top: 25px;
  right: 0;
  width: 100%;
  max-width: 430px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #cdd6e2;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  gap: 6px;
  padding: 14px 16px;
  background: #edf1f7;
  border-bottom: 1px solid #dfe5ed;
}

.window-bar span {
  width: 7px;
  height: 7px;
  background: #9da8b8;
  border-radius: 50%;
}

.window-content {
  display: grid;
  grid-template-columns: 84px 1fr;
  height: 280px;
}

.window-sidebar {
  background: var(--navy);
}

.window-main {
  padding: 38px 34px;
  background: linear-gradient(135deg, #fff 65%, #eef4ff 65%);
}

.window-main span {
  display: block;
  width: 80%;
  height: 11px;
  margin-bottom: 19px;
  background: #cdd9ea;
  border-radius: 10px;
}

.window-main span:first-child {
  width: 54%;
  height: 26px;
  background: var(--blue);
}

.window-main span:last-child {
  width: 65%;
}

.visual-phone {
  position: absolute;
  z-index: 2;
  right: 8%;
  bottom: 0;
  width: 128px;
  height: 246px;
  padding: 30px 14px 16px;
  background: var(--navy);
  border: 5px solid #2a3850;
  border-radius: 25px;
  box-shadow: 0 22px 45px rgba(16, 29, 53, 0.28);
}

.visual-phone::before {
  position: absolute;
  content: "";
  top: 11px;
  left: 50%;
  width: 30px;
  height: 4px;
  background: #647188;
  border-radius: 5px;
  transform: translateX(-50%);
}

.visual-phone div {
  height: 76px;
  margin-bottom: 17px;
  background: var(--accent);
  border-radius: 10px 10px 24px 10px;
}

.visual-phone span {
  display: block;
  height: 7px;
  margin: 10px 2px;
  background: #6f7d93;
  border-radius: 5px;
}

.visual-phone span:last-child {
  width: 64%;
}

.section {
  padding: 104px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 54px;
}

.section h2,
.page-header h1 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.section-heading > p {
  max-width: 530px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 1.08rem;
}

.empty-state {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 250px;
  padding: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.empty-state-number {
  color: #c1cada;
  font-size: 5.4rem;
  font-weight: 200;
  line-height: 1;
}

.empty-state h3 {
  margin-bottom: 12px;
  font-size: 1.75rem;
}

.empty-state p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
}

.section-about {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
}

.about-copy > p {
  color: #3c485b;
  font-size: 1.18rem;
}

.platform-list {
  display: flex;
  gap: 10px;
  margin-top: 34px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.platform-list li {
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50px;
  color: var(--blue-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.section-contact {
  background: var(--navy);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
}

.contact-grid h2 {
  margin-bottom: 22px;
}

.contact-grid > div > p:not(.eyebrow) {
  color: #b9c4d5;
}

.contact-email {
  color: #8be3d8;
  font-weight: 700;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field-wide,
.privacy-consent,
.contact-form .button,
.form-note {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: #d6deea;
  font-size: 0.86rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: #172845;
  color: var(--white);
  border: 1px solid #40506a;
  border-radius: 6px;
}

.form-field textarea {
  resize: vertical;
}

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #d6deea;
  font-size: 0.88rem;
}

.privacy-consent input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.privacy-consent a {
  color: #8be3d8;
  font-weight: 700;
}

.button-light {
  background: var(--accent);
  color: #0e2730;
}

.button-light:hover {
  background: #7be2d6;
}

.form-note {
  margin: -9px 0 0;
  color: #99a8be;
  font-size: 0.8rem;
}

.site-footer {
  padding: 28px 0;
  background: #0b1425;
  color: #aeb9c9;
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-inner a {
  text-decoration: none;
}

.footer-inner a:hover,
.footer-inner a[aria-current="page"] {
  color: var(--white);
}

.legal-main {
  min-height: calc(100vh - 151px);
}

.page-header {
  padding: 88px 0 70px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  margin-bottom: 24px;
}

.page-summary {
  max-width: 690px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1.16rem;
}

.updated-date {
  margin-bottom: 0;
  color: #7b8594;
  font-size: 0.86rem;
}

.legal-content {
  padding-top: 68px;
  padding-bottom: 90px;
}

.legal-content section + section {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-content h2,
.support-card h2 {
  margin-bottom: 15px;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
}

.legal-content p {
  color: #465267;
}

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

.legal-content a,
.support-card a:not(.button) {
  color: var(--blue);
  font-weight: 650;
}

.support-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 68px;
  padding-bottom: 90px;
}

.support-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.support-card p:not(.card-index) {
  color: var(--muted);
}

.card-index {
  margin-bottom: 42px;
  color: #9ba7b9;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
}

@media (max-width: 850px) {
  .hero {
    padding: 82px 0 92px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-visual {
    width: min(100%, 520px);
    min-height: 345px;
  }

  .section-heading,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .contact-grid {
    gap: 54px;
  }

  .support-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .header-inner {
    min-height: 68px;
  }

  .menu-button {
    display: block;
  }

  .main-navigation {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 20px rgba(16, 24, 39, 0.08);
  }

  .main-navigation.is-open {
    display: flex;
    flex-direction: column;
  }

  .main-navigation a {
    padding: 11px 8px;
  }

  .hero {
    padding: 66px 0 76px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .hero-intro {
    font-size: 1.05rem;
  }

  .hero-visual {
    min-height: 280px;
  }

  .visual-window {
    max-width: calc(100% - 20px);
  }

  .window-content {
    height: 220px;
  }

  .visual-phone {
    right: 3%;
    width: 102px;
    height: 198px;
  }

  .section {
    padding: 74px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .empty-state {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    padding: 34px 26px;
  }

  .empty-state-number {
    font-size: 3.6rem;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-field,
  .privacy-consent,
  .contact-form .button,
  .form-note {
    grid-column: auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-header {
    padding: 62px 0 52px;
  }

  .legal-content,
  .support-layout {
    padding-top: 48px;
    padding-bottom: 66px;
  }

  .support-card {
    padding: 28px 24px;
  }
}

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