/* Sivial — coming soon. Diagonal two-tone, centred card, circular monogram. Written by hand. */

:root {
  --plum: #3b1d3f;
  --plum-2: #552a56;
  --coral: #ff6b8a;
  --paper: #fbf7f4;
  --ink: #241528;
  --muted: #7c6a7d;
  --line: #eadee3;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 30px 70px rgba(59, 29, 63, .22), 0 6px 18px rgba(59, 29, 63, .07);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--plum); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 8px; }

/* diagonal colour band */
.band {
  position: relative;
  background: linear-gradient(135deg, var(--plum), var(--plum-2));
  clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%);
  padding: clamp(26px, 4vw, 40px) 0 clamp(120px, 20vw, 210px);
}
.band .wrap {
  max-width: 720px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.sig {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; letter-spacing: .01em;
}
.sig:hover { text-decoration: none; }
.sig u {
  width: 28px; height: 28px; border-radius: 9px;
  background: var(--coral); color: var(--plum);
  display: grid; place-items: center;
  font-size: .76rem; font-weight: 800; text-decoration: none;
}
.band nav { display: flex; gap: 20px; }
/* на юридических страницах полоса ниже — карточке не нужно столько места */
.band.short { padding-bottom: clamp(56px, 10vw, 96px); clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
.band nav a { color: rgba(255, 255, 255, .74); font-size: .85rem; }
.band nav a:hover, .band nav a.active { color: #fff; }
.band p {
  flex-basis: 100%; margin: clamp(26px, 5vw, 52px) 0 0;
  max-width: 30ch; color: #fff;
  font-size: clamp(1.4rem, 3.6vw, 2.1rem);
  line-height: 1.15; letter-spacing: -.03em; font-weight: 700;
}

/* card */
.stage { max-width: 720px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }
.card {
  position: relative;
  margin-top: clamp(-150px, -18vw, -96px);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(54px, 8vw, 74px) clamp(24px, 5vw, 46px) clamp(28px, 4vw, 40px);
  text-align: center;
}
.monogram {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  width: 92px; height: 92px; border-radius: 50%;
  background: linear-gradient(140deg, var(--coral), #ff9ab0);
  color: #4a1430;
  display: grid; place-items: center;
  font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em;
  box-shadow: 0 14px 30px rgba(255, 107, 138, .38), 0 0 0 8px var(--paper);
}
h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5.4vw, 3rem);
  line-height: 1.06; letter-spacing: -.04em; font-weight: 780;
}
h1 span { color: var(--coral); }
.tagline {
  display: inline-block; margin: 0 0 18px;
  padding: 5px 14px; border-radius: 999px;
  background: #fdeef1; color: #b03a5b;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.intro { margin: 0 auto; max-width: 46ch; color: var(--muted); }

hr.seam {
  border: 0; height: 1px; background: var(--line);
  margin: clamp(28px, 4vw, 40px) 0;
}

/* form */
.field { margin-bottom: 14px; text-align: left; }
.field label {
  display: block; margin-bottom: 6px;
  font-size: .82rem; font-weight: 600; color: #4a3350;
}
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit; font-size: .96rem;
  color: var(--ink);
  background: #fdfbfc;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 107, 138, .16);
}
.field .invalid { border-color: #c0392b; background: #fff6f4; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; padding: 0 26px;
  font: inherit; font-size: .97rem; font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--plum), var(--plum-2));
  border: 0; border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(59, 29, 63, .26);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

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

.status { margin: 13px 0 0; min-height: 1.2em; font-size: .89rem; text-align: center; }
.status.ok { color: #1f7a4d; font-weight: 600; }
.status.err { color: #b23a2f; font-weight: 600; }

/* developer line */
.who {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px;
  margin: 0; color: var(--muted); font-size: .9rem;
}
.who dt { display: inline; }
.who dd { display: inline; margin: 0 0 0 5px; font-weight: 600; color: var(--ink); }

/* footer */
.base {
  max-width: 720px; margin: 0 auto;
  padding: clamp(30px, 5vw, 48px) clamp(20px, 4vw, 32px) 46px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: .83rem;
}
.base nav { display: flex; gap: 20px; }
.base a { color: var(--muted); }
.base a:hover { color: var(--plum); }
.base p { margin: 0; }

/* legal */
.doc { max-width: 760px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }
.doc .sheet {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(26px, 5vw, 46px);
  margin-top: clamp(-60px, -6vw, -34px);
}
.doc h1 {
  margin: 0 0 12px;
  text-align: left;
  font-size: clamp(1.8rem, 4.6vw, 2.5rem);
}
.stamp {
  display: inline-block; margin: 0 0 28px;
  padding: 5px 13px; border-radius: 999px;
  background: #fdeef1; color: #b03a5b; font-size: .79rem;
}
.doc h2 {
  margin: 30px 0 10px;
  font-size: 1.06rem; font-weight: 700; letter-spacing: -.015em;
  text-transform: none; color: var(--ink);
}
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { color: #55415b; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: .5em; }
.doc-actions {
  margin-top: 38px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px;
}
.doc-actions .btn { width: auto; min-width: 165px; }
.soft { background: #fdeef1; color: #b03a5b; box-shadow: none; }
.soft:hover { background: #fbe0e6; box-shadow: none; }

@media (max-width: 560px) {
  .band { clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%); }
  .card { text-align: left; }
  .monogram { left: auto; right: 24px; transform: translateY(-50%); }
  .intro, .status { text-align: left; }
  .base { flex-direction: column; }
}
