/* ===== Base ===== */
:root {
  --color-bg: #f8f9fc;
  --color-bg-alt: #fff;
  --color-primary: #1a365d;
  --color-primary-light: #2c5282;
  --color-accent: #c9a227;
  --color-accent-hover: #b8921f;
  --color-text: #1a202c;
  --color-text-muted: #4a5568;
  --color-border: #e2e8f0;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: min(1120px, 100% - 2rem);
  --radius: 12px;
  --shadow: 0 4px 20px rgba(26, 54, 93, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 54, 93, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

/* ===== Layout ===== */
.container {
  width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ===== Header ===== */
.header {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--color-primary-light);
}

.nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav a:hover {
  color: var(--color-primary);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__subtitle {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* ===== Sections ===== */
.section {
  padding: 3.5rem 0;
  background: var(--color-bg-alt);
}

.section--alt {
  background: var(--color-bg);
}

.section__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.section__lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 65ch;
}

/* ===== Text block ===== */
.text-block {
  max-width: 72ch;
}

.text-block p {
  margin: 0 0 1.25rem;
}

.text-block p:last-child {
  margin-bottom: 0;
}

/* ===== Lists ===== */
.list {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.list--bulleted li {
  margin-bottom: 0.6rem;
}

.list--bulleted li:last-child {
  margin-bottom: 0;
}

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.section--alt .card {
  background: #fff;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.card__title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  position: relative;
  padding-left: 3.5rem;
}

.step__num {
  position: absolute;
  left: 0;
  top: -0.25rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
}

.step__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
}

.step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== Benefits ===== */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.benefit {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
}

.section--alt .benefit {
  background: #fff;
}

.benefit__title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-primary);
}

.benefit p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== Contacts ===== */
.section--contacts {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
}

.section--contacts .section__title {
  color: #fff;
}

.section--contacts .section__lead {
  color: rgba(255, 255, 255, 0.9);
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-item__label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.contact-item__value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-item__value:hover {
  opacity: 0.9;
  text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.5rem 0;
  text-align: center;
}

.footer__copy {
  margin: 0;
  font-size: 0.9375rem;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero {
    padding: 3rem 0;
  }

  .section {
    padding: 2.5rem 0;
  }

  .contacts {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact-item__value {
    font-size: 1.125rem;
  }
}
