:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #111111;
  --muted: #4b5563;
  --primary: #111111;
  --accent: #111111;
  --cta: #111111;
  --danger: #dc2626;
  --border: #d1d5db;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

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

.site-header {
  width: min(1120px, 92%);
  margin: 24px auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 12px;
  backdrop-filter: blur(10px);
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  object-fit: cover;
}

.brand strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.main-nav a:not(.btn) {
  font-size: 0.92rem;
  color: #111111;
}

.main-nav a:not(.btn):hover {
  color: #000000;
}

main {
  width: min(1120px, 92%);
  margin: 24px auto 60px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  margin-top: 20px;
}

.hero-copy,
.hero-card,
.service-card,
.quote-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.hero-copy {
  padding: 36px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin: 0 0 10px;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  line-height: 1.1;
}

.hero-copy > p {
  color: var(--muted);
  max-width: 64ch;
}

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

.hero-card {
  padding: 28px;
}

.hero-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
}

.hero-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card h2 {
  margin-top: 0;
}

.hero-card p {
  color: var(--muted);
}

.hero-card ul {
  padding-left: 18px;
  color: #111111;
  line-height: 1.8;
}

.hero-card ol {
  padding-left: 22px;
  margin: 14px 0 0;
  color: #111111;
}

.hero-card ol li {
  line-height: 1.9;
  margin-bottom: 8px;
}

.hero-card ol li:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-secondary {
  border-color: var(--border);
  background: #ffffff;
  color: #111111;
}

.btn-accent {
  background: #111111;
  color: #ffffff;
  box-shadow: none;
}

.services {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.service-card {
  padding: 16px 14px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.service-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.2;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  flex: 1;
}

.quote-shell {
  margin-top: 26px;
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(14px, 2.5vw, 22px);
}

.quote-shell h1 {
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  margin-bottom: 6px;
  line-height: 1.15;
}

.quote-shell > p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  max-width: 720px;
  margin-inline: auto;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

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

label {
  font-size: 0.82rem;
  color: #111111;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  min-height: 40px;
  padding: 0 10px;
  font: inherit;
  font-size: 0.94rem;
}

textarea {
  min-height: 78px;
  padding-top: 8px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12);
  outline: none;
}

.field-error {
  color: #fca5a5;
  font-size: 0.82rem;
  min-height: 1.1rem;
}

.input-with-prefix {
  display: flex;
  align-items: stretch;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  overflow: hidden;
  min-height: 40px;
}

.input-with-prefix:focus-within {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12);
}

.input-prefix {
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
  background: var(--surface-soft);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.input-with-prefix input {
  border: none;
  border-radius: 0;
  min-height: 38px;
  flex: 1;
  padding: 0 10px;
  box-shadow: none;
}

.input-with-prefix input:focus {
  outline: none;
  box-shadow: none;
}

.field-consent {
  gap: 4px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
}

.consent-label input[type='checkbox'] {
  width: auto;
  min-height: auto;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: #111111;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.form-status {
  color: #111111;
  font-size: 0.92rem;
}

.form-status.error {
  color: #fda4af;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #111111;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 11px;
}

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

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

@media (max-width: 740px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    position: static;
    margin: 14px auto;
    padding: 12px;
    border-radius: 14px;
  }

  .brand {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 0.88rem;
    line-height: 1.1;
  }

  .main-nav {
    justify-content: flex-start;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

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

  .main-nav a,
  .main-nav .chip {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

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

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

@media (max-width: 480px) {
  main {
    width: min(1120px, 94%);
    margin: 14px auto 36px;
  }

  h1 {
    font-size: clamp(1.45rem, 8vw, 1.9rem);
    line-height: 1.2;
  }

  .quote-shell h1 {
    font-size: clamp(1.25rem, 7vw, 1.6rem);
  }

  .chip {
    white-space: normal;
    line-height: 1.4;
  }
}
