:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #e4e9f2;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% -20%, rgba(37, 99, 235, 0.18), transparent 36%),
    radial-gradient(circle at 100% 0%, rgba(147, 197, 253, 0.3), transparent 34%),
    var(--bg);
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-wrap img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-title {
  font-size: 1.08rem;
  font-weight: 700;
}

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

.nav-item {
  text-decoration: none;
  color: #334155;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 9px 14px;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: #eef2ff;
}

.nav-item.active {
  color: #1e40af;
  background: var(--accent-soft);
  border-color: #bfdbfe;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.hero-logo {
  width: 100%;
  max-width: 250px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 58ch;
}

.section {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

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

.card {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 12px;
  padding: 14px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
}

.card p {
  margin: 0;
  line-height: 1.52;
  color: #1f2937;
}

.process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.step {
  background: #fff;
  border: 1px solid #dce3ef;
  border-radius: 12px;
  padding: 14px;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  background: var(--accent-soft);
  color: #1e40af;
  font-weight: 700;
  font-size: 0.86rem;
}

.step h3 {
  margin: 0 0 7px;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: #374151;
  line-height: 1.5;
}

.cta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(90deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1px solid #dbe8ff;
  border-radius: 14px;
  padding: 16px;
}

.cta p {
  margin: 0;
  color: #1f2937;
}

.button {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  white-space: nowrap;
}

.button:hover {
  background: #1d4ed8;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.contact-card h2,
.contact-card h3 {
  margin: 0 0 10px;
}

.contact-card p {
  margin: 0 0 10px;
  line-height: 1.55;
  color: #1f2937;
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover {
  text-decoration: underline;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.87rem;
  color: #374151;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #d7deea;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  margin-top: 2px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  font-weight: 600;
  font: inherit;
  cursor: pointer;
}

.btn:hover {
  background: #1d4ed8;
}

.contact-page .container {
  min-height: calc(100vh - 64px);
}

.contact-section {
  min-height: calc(100vh - 120px);
}

.contact-section .contact-card {
  min-height: 460px;
}

.contact-section .form-grid {
  min-height: 100%;
}

.contact-section .field textarea {
  min-height: 190px;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    max-width: 300px;
  }

  .grid-3,
  .process,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
