:root {
  --bg: #f6f2fb;
  --card: #ffffff;
  --text: #2d2240;
  --muted: #76678d;
  --accent: #6f5a96;
  --accent-dark: #5a3d85;
  --accent-soft: #ece4f8;
  --border: #ddd3ef;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-dark);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner,
.content,
.footer-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
}

.logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
}

.language-control {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-control::before {
  content: "Language";
  position: absolute;
  left: 12px;
  top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.language-control::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

.language-control--ru::before {
  content: "Язык";
}

.lang-select {
  min-width: 104px;
  min-height: 44px;
  padding: 17px 34px 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  appearance: none;
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 22px rgba(50, 32, 83, 0.08);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.lang-select:hover,
.lang-select:focus {
  border-color: var(--accent);
  outline: none;
}

.main {
  flex: 1;
  padding: 56px 0 64px;
}

.content {
  display: grid;
  gap: 22px;
}

.hero,
.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 16px 44px rgba(50, 32, 83, 0.08);
}

.section {
  box-shadow: none;
}

.eyebrow {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 18px;
  font-size: 38px;
  line-height: 1.15;
}

h2 {
  font-size: 24px;
  line-height: 1.2;
}

h3 {
  font-size: 18px;
}

.lead {
  margin-top: 14px;
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
}

.stack {
  display: grid;
  gap: 14px;
}

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

.item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.muted {
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.button-secondary {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.button-secondary:hover {
  background: var(--bg);
  color: var(--text);
}

ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

.footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.42);
}

.footer-inner {
  padding-top: 24px;
  padding-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 700px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .main {
    padding: 32px 0 42px;
  }

  .hero,
  .section {
    border-radius: 20px;
    padding: 24px 20px;
  }

  h1 {
    font-size: 30px;
  }

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

  .button {
    width: 100%;
  }
}
