:root {
  --bg: #ffffff;
  --text: #16181c;
  --muted: #5b6270;
  --accent: #16181c;
  --accent-contrast: #ffffff;
  --border: #e4e6eb;
  --card-bg: #f7f7f8;
  --max-width: 880px;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  font-size: 17px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

img {
  max-width: 100%;
}

/* header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

.logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
}

.lang-switch {
  display: flex;
  gap: 6px;
  font-size: 14px;
}

.lang-switch a {
  text-decoration: none;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
}

.lang-switch a.active {
  color: var(--text);
  border-color: var(--text);
}

/* main content */

main {
  padding: 40px 0 60px;
}

h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 20px;
}

h2 {
  font-size: 20px;
  margin: 0 0 10px;
}

p {
  margin: 0 0 16px;
  color: var(--text);
}

.lead {
  color: var(--muted);
  font-size: 18px;
}

.section {
  margin-bottom: 32px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

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

.card h2 {
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.steps li:first-child {
  border-top: none;
}

.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.steps h2 {
  font-size: 16px;
  margin: 0 0 4px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.price-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

.price-value {
  font-size: 34px;
  font-weight: 700;
}

.price-note {
  color: var(--muted);
  margin-bottom: 16px;
}

.price-card ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.price-card li {
  margin-bottom: 6px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}

.faq-item:first-child {
  border-top: none;
}

/* footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 10px;
  font-size: 14px;
}

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

.footer-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 25px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .main-nav {
    gap: 4px 12px;
  }
  .steps li {
    gap: 10px;
  }
}

.form-error {
  color: #b42318;
  background: #fef3f2;
  border-radius: 8px;
  padding: 10px 14px;
}

.account {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.account-name {
  font-weight: 600;
  margin: 0 0 4px;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
