:root {
  color-scheme: light;
  font-size: 16px;
  --brand-primary: #1fb6a6;
  --brand-secondary: #0f7a6c;
  --surface: #ffffff;
  --surface-alt: #f7f9fb;
  --text: #1d1f24;
  --text-muted: #5a6370;
  --border: #d7dde5;
  --shadow: 0 10px 40px rgba(15, 122, 108, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--surface-alt);
  line-height: 1.6;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand-secondary);
  text-decoration: none;
}

.nav {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
}

.nav a:hover,
.nav a:focus {
  color: var(--brand-primary);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background: var(--brand-secondary);
  color: #fff;
  text-decoration: none;
}

main {
  padding: 3rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--brand-secondary);
}

a:hover,
a:focus {
  color: var(--brand-primary);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover,
button:focus {
  background: var(--brand-secondary);
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.site-footer {
  background: #0f1f2f;
  color: #f5f9ff;
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}

.site-footer .footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 1rem 0 0;
}

.site-footer a {
  color: #f5f9ff;
}

.note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.error {
  color: #b42318;
  font-weight: 600;
}

.chat {
  display: grid;
  gap: 1rem;
}

.chat-log {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
}

.chat-message {
  margin-bottom: 1rem;
}

.chat-message--user {
  text-align: right;
}

.chat-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0.75rem;
}

.chat-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.chat-actions button {
  background: transparent;
  border: 1px solid var(--brand-secondary);
  color: var(--brand-secondary);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
}

.chat-actions button:hover,
.chat-actions button:focus {
  background: var(--brand-secondary);
  color: #fff;
}

.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;
}

.upload-label {
  display: inline-flex;
  padding: 0.75rem 1.25rem;
  border: 1px dashed var(--brand-secondary);
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

input[type="file"] {
  display: block;
  margin-bottom: 0.75rem;
}

.hidden {
  display: none !important;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--brand-secondary);
  text-decoration: none;
}

.cta-link::after {
  content: '→';
  font-size: 0.85em;
  transition: transform 0.2s ease;
}

.cta-link:hover,
.cta-link:focus {
  color: var(--brand-primary);
}

.cta-link:hover::after,
.cta-link:focus::after {
  transform: translateX(4px);
}

.next-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.5rem;
}

details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

details[open] {
  box-shadow: 0 12px 30px rgba(15, 122, 108, 0.08);
  border-color: rgba(31, 182, 166, 0.35);
}

summary {
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

summary::marker {
  color: var(--brand-secondary);
}

.stack {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.stack legend {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.stack label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.95rem;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.steps li {
  background: #fff;
  border: 1px solid rgba(31, 182, 166, 0.25);
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  box-shadow: 0 6px 16px rgba(15, 122, 108, 0.08);
}

.lead-points {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.lead-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lead-points li::before {
  content: '✓';
  color: var(--brand-secondary);
  font-weight: 600;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.notice {
  background: #e6f8f5;
  color: var(--brand-secondary);
  border-left: 4px solid var(--brand-primary);
  padding: 1rem;
  border-radius: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-secondary);
}

@media (max-width: 600px) {
  main {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 1.875rem;
  }
}
