:root {
  color-scheme: light;
  --ink: #102236;
  --muted: #637181;
  --line: #dce6ea;
  --paper: #fbfcfb;
  --panel: #ffffff;
  --panel-soft: #f3faf9;
  --teal: #0b9aa2;
  --teal-deep: #064866;
  --navy: #06254a;
  --amber: #f2a900;
  --coral: #ee6046;
  --shadow: 0 20px 64px rgba(16, 34, 54, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(130deg, rgba(11, 154, 162, 0.12), transparent 34%),
    linear-gradient(230deg, rgba(242, 169, 0, 0.12), transparent 38%),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    Manrope,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

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

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(220, 230, 234, 0.9);
  background: rgba(251, 252, 251, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.chat-header > div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand {
  color: var(--navy);
  font-size: 24px;
  font-weight: 900;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav a:hover {
  color: var(--ink);
}

.topbar-action,
.primary-action,
.secondary-action,
.chat-input button,
.result-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 900;
}

.topbar-action,
.primary-action,
.chat-input button {
  border: 0;
  background: var(--teal-deep);
  color: #fff;
}

.topbar-action {
  padding: 0 18px;
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 440px);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
  min-height: calc(100vh - 72px);
  padding: clamp(36px, 6vw, 84px) clamp(18px, 6vw, 84px) 48px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow,
.panel-label {
  margin: 0 0 14px;
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

.specialties-title {
  max-width: 760px;
  font-size: clamp(28px, 3.1vw, 42px);
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.16;
}

.lead {
  max-width: 720px;
  color: #26384a;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.56;
}

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

.primary-action,
.secondary-action {
  padding: 0 22px;
}

.secondary-action {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.hero-logo-card {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-logo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 3px solid var(--teal-deep);
  border-radius: 12px;
  object-fit: cover;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.hero-metrics span {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-metrics strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 20px;
}

.how-section,
.specialties-section,
.consultant-section,
.pilot-section {
  padding: 74px clamp(18px, 6vw, 84px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(300px, 0.72fr) minmax(250px, 0.5fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-heading.compact {
  display: block;
  max-width: 820px;
}

.function-grid,
.specialty-grid,
.pilot-grid {
  display: grid;
  gap: 16px;
}

.function-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.specialty-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pilot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pilot-action {
  display: flex;
  margin-top: 20px;
}

.function-grid article,
.specialty-card,
.pilot-grid article,
.assistant-card,
.chat-panel,
.profile-card,
.result-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 16px 48px rgba(16, 34, 54, 0.08);
}

.function-grid article,
.specialty-card,
.pilot-grid article {
  padding: 24px;
}

.function-grid article > span,
.pilot-grid article > span,
.card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 10px;
  background: #e9f8f7;
  color: var(--teal-deep);
  font-weight: 900;
}

.pilot-grid article > span {
  background: var(--navy);
  color: #fff;
}

.card-icon.accent {
  background: #fff5df;
  color: #a86700;
}

.function-grid p,
.specialty-card p,
.specialty-card li,
.pilot-grid p,
.result-card p:not(.panel-label) {
  color: var(--muted);
  line-height: 1.56;
}

.specialty-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.consultant-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.48fr) minmax(0, 1fr) minmax(290px, 0.64fr);
  gap: 18px;
  align-items: start;
}

.assistant-card {
  position: sticky;
  top: 92px;
  padding: 12px;
  overflow: hidden;
}

.assistant-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #eef8f7;
  object-fit: contain;
  object-position: center center;
}

.assistant-card div {
  padding: 16px 6px 8px;
}

.assistant-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assistant-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.16;
}

.chat-panel {
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #28b487;
  box-shadow: 0 0 0 5px rgba(40, 180, 135, 0.12);
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.chat-window {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 330px;
  max-height: 460px;
  overflow-y: auto;
  padding: 20px;
  background: linear-gradient(180deg, #f7faf9, #fff);
}

.message {
  width: fit-content;
  max-width: min(82%, 620px);
  padding: 13px 15px;
  border-radius: 14px;
  line-height: 1.45;
  animation: rise 0.24s ease-out;
}

.message.ai {
  border-bottom-left-radius: 4px;
  background: #e8f3f2;
}

.message.user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--navy);
  color: #fff;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 20px 18px;
  border-top: 1px solid var(--line);
}

.choice-button {
  min-height: 54px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.choice-button:hover {
  border-color: rgba(11, 154, 162, 0.48);
  background: #edf8f7;
}

.chat-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 0 20px 20px;
}

.chat-input input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
}

.chat-input button {
  min-width: 116px;
  padding: 0 16px;
  cursor: pointer;
}

.recommendation-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.profile-card,
.result-card {
  padding: 22px;
}

.profile-list {
  display: grid;
  gap: 15px;
  margin: 0;
}

.profile-list div {
  display: grid;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.profile-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.profile-list dd {
  margin: 0;
  font-weight: 900;
}

.result-card {
  border-color: rgba(11, 154, 162, 0.36);
  background: linear-gradient(180deg, #ffffff, #f3fbfa);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.result-actions button {
  min-height: 40px;
  border: 0;
  padding: 0 13px;
  background: var(--coral);
  color: #fff;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 34px clamp(18px, 6vw, 84px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.footer-main strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.footer-main p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.45;
}

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

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-style: normal;
  text-align: right;
}

.footer a {
  color: var(--teal-deep);
  font-weight: 900;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .nav {
    display: none;
  }

  .hero,
  .section-heading,
  .consultant-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .assistant-card {
    position: static;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
  }

  .assistant-card img {
    aspect-ratio: 1;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer-contacts {
    text-align: left;
  }
}

@media (max-width: 820px) {
  .function-grid,
  .specialty-grid,
  .pilot-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo-card {
    max-width: 460px;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 64px;
  }

  .brand {
    font-size: 22px;
  }

  .topbar-action {
    display: none;
  }

  .hero,
  .how-section,
  .specialties-section,
  .consultant-section,
  .pilot-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .assistant-card,
  .choice-grid,
  .chat-input {
    grid-template-columns: 1fr;
  }

  .assistant-card img {
    max-height: 280px;
  }

  .message {
    max-width: 92%;
  }
}
