:root {
  --ink: #15121d;
  --muted: #606574;
  --paper: #fffaf5;
  --panel: #ffffff;
  --line: rgba(21, 18, 29, 0.13);
  --cyan: #18bac5;
  --violet: #7824ee;
  --violet-dark: #5117b8;
  --shadow: 0 20px 60px rgba(21, 18, 29, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--violet-dark);
  text-underline-offset: 3px;
}

.site-header,
.site-footer,
.legal-main {
  width: min(880px, calc(100% - 36px));
  margin-right: auto;
  margin-left: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px 0;
}

.site-header img {
  display: block;
  width: min(300px, 58vw);
  height: auto;
}

.back-link {
  flex: 0 0 auto;
  font-weight: 750;
}

.legal-main {
  padding: 18px 0 54px;
}

.legal-card {
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

h1 {
  margin: 0 0 34px;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

h2 {
  margin: 34px 0 10px;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.2;
}

h2:first-of-type {
  margin-top: 0;
}

p,
li,
address {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

p {
  margin: 0 0 13px;
}

address {
  font-style: normal;
}

ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding-left: 22px;
}

strong {
  color: var(--ink);
}

.contact-intro {
  max-width: 680px;
  margin-bottom: 28px;
  font-size: 1.08rem;
}

.practice-title {
  color: var(--violet);
}

.practice-title span {
  display: block;
}

.practice-offer {
  margin-bottom: 42px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.practice-offer > p:first-of-type {
  font-size: 1.08rem;
}

.practice-offer h2 {
  margin-top: 30px;
}

.practice-offer ul {
  gap: 7px;
  margin-top: 16px;
}

.practice-image {
  margin: 30px 0 0;
}

.practice-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(21, 18, 29, 0.16);
}

.contact-form-section > h2 {
  margin-top: 0;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.form-status {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 8px;
  line-height: 1.55;
}

.form-status[hidden] {
  display: none;
}

.form-status.success {
  border: 1px solid rgba(20, 135, 78, 0.25);
  color: #0f6f40;
  background: rgba(28, 172, 100, 0.1);
}

.form-status.error {
  border: 1px solid rgba(178, 49, 49, 0.25);
  color: #8f2424;
  background: rgba(211, 62, 62, 0.09);
}

.contact-form {
  display: grid;
  gap: 20px;
}

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

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

.form-field label,
.privacy-check label {
  color: var(--ink);
  font-weight: 750;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(21, 18, 29, 0.22);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-size: 1rem;
}

.form-field input {
  min-height: 48px;
  padding: 10px 12px;
}

.form-field textarea {
  min-height: 190px;
  padding: 12px;
  line-height: 1.55;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--violet);
  outline: 3px solid rgba(122, 36, 238, 0.13);
}

.required {
  color: var(--violet-dark);
}

.privacy-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
}

.privacy-check label {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.55;
}

.form-button {
  width: fit-content;
  min-height: 50px;
  padding: 13px 22px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 12px 26px rgba(80, 31, 191, 0.25);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

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

.form-note {
  margin: -6px 0 0;
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding: 0 0 34px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--ink);
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .form-button {
    width: 100%;
  }

  .practice-title span {
    margin-top: 6px;
  }
}
