:root {
  --bg: #f4f6ff;
  --bg-deep: #e8ecfb;
  --ink-950: #121a34;
  --ink-800: #26345e;
  --ink-700: #3a4a77;
  --ink-600: #55658f;
  --ink-500: #6f7ea6;
  --line: rgba(37, 55, 102, 0.14);
  --card: rgba(255, 255, 255, 0.86);
  --card-strong: rgba(255, 255, 255, 0.96);
  --shadow: 0 18px 44px rgba(16, 26, 58, 0.14);
  --violet: #5f56e8;
  --sky: #2788ff;
  --mint: #1bbf94;
  --warning: #f1a623;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Sora", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink-800);
  background:
    radial-gradient(980px 420px at -4% -12%, rgba(95, 86, 232, 0.16), transparent 60%),
    radial-gradient(940px 500px at 104% -22%, rgba(39, 136, 255, 0.14), transparent 58%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px clamp(16px, 4vw, 40px);
  backdrop-filter: blur(12px);
  background: rgba(244, 246, 255, 0.82);
  border-bottom: 1px solid rgba(37, 55, 102, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-950);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37, 55, 102, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

.logo-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.logo-dot.good {
  background: #14B414;
}

.logo-dot.ok {
  background: #FFDE00;
}

.logo-dot.bad {
  background: #FF0000;
}

.brand-name {
  color: inherit;
}

.header-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.header-links a {
  text-decoration: none;
  color: var(--ink-700);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(95, 86, 232, 0.18);
  background: rgba(255, 255, 255, 0.74);
}

.header-links a.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--violet), var(--sky));
  box-shadow: 0 10px 24px rgba(95, 86, 232, 0.26);
}

.page-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 26px auto 0;
}

.hero {
  border: 1px solid rgba(37, 55, 102, 0.1);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 246, 255, 0.9));
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 48px);
}

.hero.hero-title-center {
  display: grid;
  place-items: center;
  min-height: clamp(150px, 24vw, 240px);
  text-align: center;
}

.hero.hero-title-center h1 {
  margin-top: 0;
}

.kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--violet);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink-950);
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: 0.01em;
}

h1 {
  margin-top: 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}

.hero-subtitle {
  margin: 14px 0 0;
  max-width: 860px;
  color: var(--ink-700);
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.58;
}

.hero-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-600);
}

.section {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(243, 248, 255, 0.86) 100%);
  box-shadow: 0 14px 30px rgba(16, 26, 58, 0.08);
  padding: clamp(18px, 4vw, 30px);
}

.section h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.section-intro {
  margin-top: 12px;
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.68;
}

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

.cards.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid rgba(37, 55, 102, 0.12);
  border-radius: 14px;
  padding: 16px;
  background: var(--card-strong);
}

.card h3 {
  font-size: 19px;
  line-height: 1.2;
}

.card p {
  margin: 10px 0 0;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.62;
}

.inline-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.inline-links a {
  color: var(--violet);
  text-decoration: none;
  font-weight: 700;
}

.inline-links a:hover {
  text-decoration: underline;
}

.list {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.list li {
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.6;
}

.numbered {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.item {
  border: 1px solid rgba(37, 55, 102, 0.1);
  border-radius: 14px;
  padding: 14px;
  background: var(--card-strong);
}

.item-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--sky));
  box-shadow: 0 10px 20px rgba(95, 86, 232, 0.24);
}

.item h3 {
  font-size: 18px;
}

.item p {
  margin: 8px 0 0;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.62;
}

.item .list {
  margin-top: 8px;
}

.placeholder {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px dashed rgba(37, 55, 102, 0.24);
  background: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  color: var(--ink-600);
  vertical-align: middle;
}

.important {
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid rgba(27, 191, 148, 0.3);
  background: rgba(27, 191, 148, 0.1);
  color: #0b6f56;
  font-size: 13px;
  line-height: 1.6;
  padding: 12px 14px;
}

.cta-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

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

.contact-field {
  display: grid;
  gap: 6px;
}

.contact-field span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-700);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(37, 55, 102, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-950);
  font: inherit;
  padding: 12px 14px;
}

.contact-field textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

.contact-note {
  margin: 0;
  font-size: 12px;
  color: var(--ink-600);
}

.contact-status {
  margin: 0;
  min-height: 18px;
  font-size: 13px;
  color: var(--ink-600);
}

.contact-status.success {
  color: #0f7d57;
}

.contact-status.error {
  color: #b42318;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--sky));
  box-shadow: 0 12px 24px rgba(95, 86, 232, 0.26);
}

.btn.secondary {
  color: var(--ink-800);
  border: 1px solid rgba(37, 55, 102, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

.choice-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  font-weight: 700;
}

@media (max-width: 960px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .cards.cards-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: row;
  }

  .site-header .carelem-lang-slot {
    margin-left: auto;
    flex: 0 0 auto;
  }

  .brand {
    font-size: 26px;
    display: inline-flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 3px;
    line-height: 1;
    width: max-content;
    text-align: center;
  }

  .site-header .logo-mark {
    padding: 5px 8px;
    margin-left: auto;
    margin-right: auto;
  }

  .site-header .logo-dot {
    width: 8px;
    height: 8px;
  }

  .header-links {
    justify-content: flex-start;
  }

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