:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --surface-2: #eaf4f8;
  --text: #102033;
  --muted: #64748b;
  --navy: #071b33;
  --navy-2: #0b2545;
  --cyan: #22d3ee;
  --teal: #14b8a6;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius: 8px;
  --radius-lg: 18px;
  --header-height: 76px;
}

[data-theme="dark"] {
  --bg: #07111f;
  --surface: #0d1b2e;
  --surface-2: #10243b;
  --text: #edf7ff;
  --muted: #a8b8cb;
  --border: rgba(148, 163, 184, 0.18);
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

body.menu-open,
body.chat-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

p {
  color: var(--muted);
  margin: 0;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section.compact {
  padding: 56px 0;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
}

.section-title {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 16px;
}

.section-lead {
  max-width: 720px;
  font-size: 1.06rem;
}

.page-hero {
  position: relative;
  min-height: 410px;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(34, 211, 238, 0.22), transparent 30%),
    linear-gradient(135deg, #06182f 0%, #0a2b50 58%, #074854 100%);
  padding: calc(var(--header-height) + 72px) 0 72px;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 260px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.15), transparent);
  transform: rotate(-4deg);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb-line {
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.02;
  margin: 0 0 18px;
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="dark"] .site-header {
  background: rgba(7, 17, 31, 0.84);
}

.site-header.scrolled {
  box-shadow: var(--shadow-soft);
}

.nav-shell {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--text);
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.22);
}

.brand span:last-child {
  color: var(--teal);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text);
  background: var(--surface-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.menu-toggle,
.chat-toggle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover,
.menu-toggle:hover,
.chat-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 184, 166, 0.45);
}

.menu-toggle {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #06182f;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 16px 30px rgba(20, 184, 166, 0.25);
}

.btn-outline {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}

.hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 42px) 0 70px;
  color: #fff;
  background:
    radial-gradient(circle at 75% 22%, rgba(34, 211, 238, 0.24), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(20, 184, 166, 0.18), transparent 30%),
    linear-gradient(135deg, #06172d 0%, #0b2545 54%, #073e4b 100%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 84%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: 56px;
}

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: 0.98;
  margin: 0 0 20px;
}

.hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.search-panel {
  position: relative;
  max-width: 650px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.search-panel i {
  color: var(--cyan);
}

.search-panel input {
  flex: 1;
  min-width: 0;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
}

.search-panel input::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: #081b31;
  box-shadow: var(--shadow);
  display: none;
  z-index: 3;
}

.search-results.open {
  display: block;
}

.search-results a,
.search-results span {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
}

.search-results a:hover {
  background: rgba(34, 211, 238, 0.12);
}

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

.visual-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26);
  animation: floatCard 7s ease-in-out infinite;
}

.visual-card.main {
  inset: 55px 20px auto 20px;
  min-height: 315px;
  padding: 26px;
}

.visual-card.small {
  width: 210px;
  min-height: 132px;
  padding: 18px;
}

.visual-card.one {
  left: 0;
  bottom: 28px;
  animation-delay: -2s;
}

.visual-card.two {
  right: 0;
  bottom: 70px;
  animation-delay: -4s;
}

.code-lines span,
.bar-stack span {
  display: block;
  height: 10px;
  margin: 13px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.code-lines span:nth-child(1) { width: 72%; background: rgba(34, 211, 238, 0.72); }
.code-lines span:nth-child(2) { width: 48%; }
.code-lines span:nth-child(3) { width: 86%; }
.code-lines span:nth-child(4) { width: 60%; background: rgba(20, 184, 166, 0.72); }
.code-lines span:nth-child(5) { width: 78%; }

.metric {
  font-size: 2.3rem;
  font-weight: 900;
}

.metric-label {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
}

.pulse-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 12px rgba(34, 211, 238, 0.12);
  margin-bottom: 20px;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.stats-band {
  margin-top: -42px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--border);
  box-shadow: var(--shadow);
}

.stat-item {
  background: var(--surface);
  padding: 28px;
}

.stat-number {
  display: block;
  color: var(--teal);
  font-size: 2rem;
  font-weight: 900;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 26px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, 0.38);
  box-shadow: var(--shadow);
}

.icon-box {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #062033;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  margin-bottom: 18px;
  font-size: 1.25rem;
}

.card h3,
.card h4 {
  margin: 0 0 10px;
  color: var(--text);
}

.feature-list {
  display: grid;
  gap: 13px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
}

.feature-list i {
  color: var(--teal);
  margin-top: 5px;
}

.band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band {
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.22), transparent 28%),
    linear-gradient(135deg, #06182f, #0a365b);
}

.cta-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-shell h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.cta-shell p {
  color: rgba(255, 255, 255, 0.72);
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
}

.tech-pill i {
  color: var(--teal);
}

.project-card {
  overflow: hidden;
  padding: 0;
}

.project-art {
  min-height: 190px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.2), transparent),
    linear-gradient(135deg, #071b33, #0f766e);
}

.project-art i {
  font-size: 3rem;
}

.project-body {
  padding: 24px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(20, 184, 166, 0.1);
  font-size: 0.78rem;
  font-weight: 800;
}

.testimonial {
  position: relative;
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  right: 24px;
  color: rgba(20, 184, 166, 0.18);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
}

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

.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  font-weight: 900;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding: 0 20px 20px;
}

.faq-item.active .faq-answer {
  max-height: 220px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.contact-detail {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-detail:last-child {
  border-bottom: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--text);
  font-weight: 800;
  font-size: 0.9rem;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 145px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.field-error {
  min-height: 18px;
  color: #ef4444;
  font-size: 0.82rem;
}

.form-status {
  margin-top: 14px;
  color: var(--muted);
}

.map-frame {
  width: 100%;
  min-height: 390px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #06182f;
  padding: 62px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.7fr 0.8fr;
  gap: 28px;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  margin: 0 0 16px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links a:hover {
  color: var(--cyan);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
}

.chat-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #06182f;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 16px 34px rgba(20, 184, 166, 0.32);
  font-size: 1.25rem;
  animation: chatPulse 2.8s ease-in-out infinite;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(370px, calc(100vw - 32px));
  height: 510px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.96);
  transform-origin: bottom right;
  transition:
    opacity 0.24s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.24s ease;
}

.chat-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(135deg, #071b33, #0f766e);
}

.chat-header strong {
  display: block;
}

.chat-header span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.chat-close {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
}

.chat-messages {
  padding: 16px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
}

.chat-message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-2);
  animation: messageIn 0.22s ease both;
  white-space: pre-wrap;
}

.chat-message.user {
  justify-self: end;
  color: #06182f;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
}

.chat-message.thinking {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.thinking-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: typingDot 1s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.16s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.32s;
}

.chat-message.streaming::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--teal);
  animation: caretBlink 0.8s steps(1) infinite;
}

.quick-prompts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 10px;
}

.quick-prompts button {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}

.chat-form input {
  min-height: 42px;
}

.chat-form button {
  width: 44px;
  min-width: 44px;
  border: 0;
  border-radius: 8px;
  color: #06182f;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  cursor: pointer;
}

.chat-form button:disabled,
.chat-form input:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

@keyframes chatPulse {
  0%, 100% {
    box-shadow: 0 16px 34px rgba(20, 184, 166, 0.32);
  }
  50% {
    box-shadow: 0 16px 34px rgba(20, 184, 166, 0.32), 0 0 0 10px rgba(34, 211, 238, 0.12);
  }
}

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

@keyframes typingDot {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes caretBlink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .nav-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height);
    display: none;
    padding: 14px 16px 24px;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    justify-content: center;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .hero-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .section {
    padding: 64px 0;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    gap: 30px;
  }

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

  .visual-card.main {
    inset: 22px 8px auto 8px;
    min-height: 240px;
  }

  .visual-card.small {
    width: 168px;
    min-height: 105px;
  }

  .stats-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-shell,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-panel {
    align-items: stretch;
  }

  .search-panel .btn {
    padding-inline: 13px;
  }
}

@media (max-width: 440px) {
  .container {
    width: min(100% - 24px, 1140px);
  }

  .brand {
    font-size: 1.08rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .icon-btn,
  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
