:root {
  --pine: #fff8f3;
  --pine2: #ffffff;
  --line: #efd8ce;
  --birch: #25212a;
  --paper: #f5fff9;
  --ink: #25212a;
  --muted: #746b7a;
  --primary: #8b5cf6;
  --primary-strong: #6d28d9;
  --primary-soft: #ede9fe;
  --brass: var(--primary);
  --brass2: var(--primary-strong);
  --red: #c9344f;
  --aqua: #4fc7d9;
  --mint: #8fddb2;
  --shadow: 0 18px 44px rgba(99, 62, 44, 0.13);
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  background: #fff8f3;
  color: var(--birch);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 214, 90, 0.16), transparent 34%),
    linear-gradient(225deg, rgba(79, 199, 217, 0.14), transparent 38%),
    linear-gradient(180deg, #fff8f3 0%, #fffdf7 48%, #f3fbff 100%);
  color: var(--birch);
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 28px rgba(99, 62, 44, 0.06);
  backdrop-filter: saturate(1.2) blur(12px);
}

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

.brand-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.24), 0 8px 18px rgba(99, 62, 44, 0.08);
}

.brand strong,
.footer-brand {
  display: block;
  color: #2a2530;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.05;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}

.site-header nav a,
.site-footer nav a {
  color: #675f70;
  font-size: 13px;
  font-weight: 700;
}

.site-header nav a:hover,
.site-footer nav a:hover {
  color: var(--brass2);
}

.page-hero {
  max-width: 1020px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 90px) 22px 42px;
}

.page-hero h1 {
  max-width: 820px;
  color: #2a2530;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.page-hero p {
  max-width: 720px;
  margin-top: 22px;
  color: #625a6b;
  font-size: 18px;
  line-height: 1.6;
}

.content-band {
  background: #f5fff9;
  color: var(--ink);
}

.content {
  max-width: 1020px;
  margin: 0 auto;
  padding: 46px 22px 68px;
}

.legal-note {
  margin-bottom: 28px;
  border-left: 3px solid var(--brass);
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.72);
  color: #625a6b;
  line-height: 1.6;
  box-shadow: 0 12px 30px rgba(99, 62, 44, 0.08);
}

.legal-summary {
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(99, 62, 44, 0.08);
}

.legal-summary h2 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.18;
}

.legal-summary ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.legal-section + .legal-section {
  margin-top: 34px;
}

.legal-section h2 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.18;
}

.legal-section h3 {
  margin: 22px 0 8px;
  font-size: 17px;
}

.legal-section p,
.legal-section li,
.legal-summary li {
  color: #625a6b;
  font-size: 15px;
  line-height: 1.68;
}

.legal-section ul,
.legal-section ol {
  padding-left: 20px;
}

.legal-section a {
  color: var(--brass2);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-section code {
  border-radius: 6px;
  padding: 2px 5px;
  background: rgba(255, 122, 89, 0.1);
  color: #4f3440;
  font-size: 0.92em;
}

.contact-form {
  display: grid;
  gap: 18px;
  margin: 22px 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 26px);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 30px rgba(99, 62, 44, 0.08);
}

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

.contact-form label {
  display: grid;
  gap: 7px;
  color: #3c3544;
  font-size: 14px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #dcc8bf;
  border-radius: 8px;
  padding: 12px 13px;
  background: #fffdfb;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  line-height: 1.45;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brass);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
}

.contact-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-actions button {
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  background: var(--primary-strong);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.contact-actions button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(109, 40, 217, 0.22);
}

.contact-actions button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.contact-status {
  min-height: 22px;
  color: #625a6b;
  font-size: 14px;
  font-weight: 700;
}

.contact-status--success {
  color: #1d7a54;
}

.contact-status--error {
  color: var(--red);
}

.legal-updated {
  margin-top: 16px;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) auto;
  gap: 28px;
  align-items: start;
  padding: 30px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  background: #fffdf7;
}

.site-footer p {
  max-width: 420px;
  margin-top: 8px;
  color: #675f70;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header nav,
  .site-footer nav {
    justify-content: flex-start;
    gap: 12px;
  }

  .page-hero h1 {
    font-size: 34px;
    line-height: 1.06;
  }

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

  .page-hero p {
    font-size: 16px;
  }

  .legal-note,
  .legal-summary {
    padding: 16px;
  }
}
