/* Service pages: help, contacts, privacy, terms */

.svc-hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  position: relative;
}

.svc-hero--doc {
  text-align: left;
  padding-bottom: 1.5rem;
}

.svc-hero--doc .svc-title {
  max-width: none;
}

.svc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 var(--space-3);
}

.svc-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.svc-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 auto var(--space-4);
  max-width: 16ch;
}

.svc-hero--doc .svc-title {
  margin-left: 0;
  margin-right: 0;
}

.svc-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto var(--space-6);
}

.svc-meta {
  color: var(--muted);
  font-size: var(--step-0);
  margin: 0;
}

.svc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

.svc-section {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.svc-section--tint {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 5%, var(--bg)) 0%, var(--bg) 100%);
  border-block: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.svc-narrow {
  max-width: 760px;
  margin-inline: auto;
}

.svc-section-head {
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.svc-section-head .muted {
  max-width: 34rem;
  margin-inline: auto;
}

.svc-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 var(--space-3);
  color: var(--text);
}

/* Help cards */
.svc-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
}

.svc-help-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: .65rem;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}

.svc-help-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.svc-help-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  margin-bottom: .25rem;
}

.svc-help-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.svc-help-card .muted {
  margin: 0;
  flex: 1;
  font-size: .95rem;
  line-height: 1.55;
}

.svc-link {
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  font-size: .95rem;
  transition: color .15s ease;
}

.svc-link:hover {
  color: var(--brand-2);
}

/* Accordion */
.svc-accordion {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.svc-acc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: box-shadow .2s ease;
}

.svc-acc.is-open {
  box-shadow: var(--shadow-2);
  border-color: color-mix(in srgb, var(--brand) 28%, var(--border));
}

.svc-acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text);
  line-height: 1.35;
}

.svc-acc__chev {
  flex-shrink: 0;
  color: var(--brand);
  transition: transform .22s var(--ease-out);
}

.svc-acc.is-open .svc-acc__chev {
  transform: rotate(180deg);
}

.svc-acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s var(--ease-out);
}

.svc-acc.is-open .svc-acc__panel {
  grid-template-rows: 1fr;
}

.svc-acc__panel > p {
  overflow: hidden;
  margin: 0;
  padding: 0 1.25rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: .98rem;
}

.svc-acc.is-open .svc-acc__panel > p {
  padding-bottom: 1.2rem;
}

/* CTA strip */
.svc-cta {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
}

.svc-cta__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    radial-gradient(100% 120% at 100% 100%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 50%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
}

.svc-cta__box .muted {
  margin: 0;
  max-width: 36rem;
}

/* Contacts layout */
.svc-contacts {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.svc-contacts__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.svc-info-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
}

.svc-info-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
}

.svc-info-card__label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: .2rem;
}

.svc-info-card__value {
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  font-size: 1.02rem;
}

a.svc-info-card__value:hover {
  color: var(--brand);
}

.svc-aside-note {
  margin-top: .5rem;
  padding: 1.2rem 1.25rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
}

.svc-aside-note strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: .4rem;
  color: var(--text);
}

.svc-aside-note p {
  margin: 0;
  line-height: 1.55;
  font-size: .95rem;
}

.svc-aside-note a {
  color: var(--brand);
  font-weight: 600;
}

.svc-contacts__form {
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
}

.svc-form-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  margin: 0 0 .35rem;
  letter-spacing: -0.015em;
}

.svc-form-sub {
  margin: 0 0 1.35rem;
}

.svc-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.svc-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.svc-field label {
  font-weight: 600;
  font-size: .92rem;
  color: var(--text);
}

.svc-field input,
.svc-field select,
.svc-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  padding: .85rem 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
  outline: none;
  appearance: none;
}

.svc-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

.svc-field input:focus,
.svc-field select:focus,
.svc-field textarea:focus {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.svc-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%238a6a55' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.svc-submit {
  margin-top: .35rem;
  width: 100%;
  justify-content: center;
}

.svc-form-note {
  margin: 0;
  font-size: .85rem;
  line-height: 1.45;
  text-align: center;
}

.svc-form-note a {
  color: var(--brand);
}

.svc-alert {
  padding: .9rem 1rem;
  border-radius: 12px;
  background: color-mix(in srgb, #c0392b 10%, var(--surface));
  border: 1px solid color-mix(in srgb, #c0392b 30%, var(--border));
  color: #8f1d1d;
  font-size: .95rem;
  margin-bottom: .25rem;
}

.svc-success {
  text-align: center;
  padding: 1.5rem .5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.svc-success__icon {
  color: var(--brand);
  margin-bottom: .25rem;
}

.svc-success .muted {
  max-width: 28rem;
  margin: 0 0 .75rem;
}

/* Legal docs */
.svc-doc {
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--surface);
  line-height: 1.7;
  color: var(--text);
}

.svc-doc > p:first-child {
  font-size: 1.05rem;
  color: var(--muted);
}

.svc-doc h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 2rem 0 .85rem;
  padding-top: .35rem;
  color: var(--text);
  line-height: 1.25;
}

.svc-doc h2:first-of-type {
  margin-top: 1.5rem;
}

.svc-doc p {
  margin: 0 0 1rem;
}

.svc-doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.svc-doc li {
  margin-bottom: .45rem;
  padding-left: .25rem;
}

.svc-doc li::marker {
  color: var(--brand);
}

.svc-doc a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.svc-doc a:hover {
  color: var(--brand-2);
}

/* Responsive */
@media (max-width: 860px) {
  .svc-contacts {
    grid-template-columns: 1fr;
  }

  .svc-title {
    max-width: 14ch;
  }

  .svc-hero--doc {
    text-align: center;
  }

  .svc-hero--doc .svc-title {
    margin-inline: auto;
  }

  .svc-hero--doc .svc-eyebrow {
    justify-content: center;
  }

  .svc-cta__box {
    flex-direction: column;
    text-align: center;
  }

  .svc-cta__box .muted {
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .svc-acc__btn {
    font-size: 1rem;
    padding: 1rem 1.05rem;
  }

  .svc-help-card {
    padding: 1.25rem 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-help-card,
  .svc-acc__chev,
  .svc-acc__panel {
    transition: none !important;
  }

  .svc-help-card:hover {
    transform: none;
  }
}