@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;600;700&display=swap');

/* ─────────────────────────────────────────
   Reset
───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─────────────────────────────────────────
   Base
───────────────────────────────────────── */
html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: #f4f7fc;
  color: #1d3150;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ─────────────────────────────────────────
   Page
───────────────────────────────────────── */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─────────────────────────────────────────
   Header
───────────────────────────────────────── */
.header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 18px 42px;
  background-color: #ffffff;
  border-bottom: 1px solid #dde6f3;
}

.header__logo {
  height: 32px;
  display: block;
  flex-shrink: 0;
}

.header__nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}

.header__nav-link {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.21;
  color: #4a648a;
  transition: color 0.15s;
}

.header__nav-link--active {
  font-weight: 600;
  color: #1f3558;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.21;
  color: #1f3558;
  text-decoration: none;
  flex-shrink: 0;
}

.header__phone__icon {
  display: none;
  flex-shrink: 0;
}

.header__phone__text {
  white-space: nowrap;
}

/* ─────────────────────────────────────────
   Hero
───────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 30px;
  padding: 54px 42px;
  background-color: #eef4ff;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  flex: 1;
}

.hero__title {
  font-weight: 700;
  font-size: 58px;
  line-height: 1.1;
  color: #1d3150;
}

.hero__subtitle {
  font-weight: 400;
  font-size: 26px;
  line-height: 1.35;
  color: #2c5fa8;
}

.hero__actions {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.21;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}

.hero__btn:hover {
  opacity: 0.88;
}

.hero__btn--primary {
  font-weight: 600;
  background-color: #2e64c7;
  color: #ffffff;
}

.hero__btn--secondary {
  font-weight: 500;
  background-color: #ffffff;
  color: #2e64c7;
  border: 1px solid #bfd0ea;
}

.hero__visual {
  width: 500px;
  height: 340px;
  border-radius: 18px;
  flex-shrink: 0;
  object-fit: cover;
}

/* ─────────────────────────────────────────
   Benefits
───────────────────────────────────────── */
.benefits {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  padding: 28px 42px;
}

.benefits__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 20px 18px;
  background-color: #ffffff;
  border: 1px solid #d7e3f5;
  border-radius: 12px;
}

.benefits__item-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.21;
  color: #1d3150;
}

.benefits__item-desc {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: #567092;
}

/* ─────────────────────────────────────────
   Info
───────────────────────────────────────── */
.info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 42px 40px;
}

.info__title {
  font-weight: 700;
  font-size: 34px;
  line-height: 1.21;
  color: #203554;
}

.info__text {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: #4d678a;
}

/* ─────────────────────────────────────────
   Footer
───────────────────────────────────────── */
.footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 42px;
  background-color: #293aa4;
  margin-top: auto;
}

.footer__company {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.45;
  color: #eaf0ff;
}

.footer__meta,
.footer__reg {
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
  color: #d5e0ff;
}

.footer__copy {
  font-weight: 400;
  font-size: 13px;
  line-height: 1.21;
  color: #ffffff;
  margin: 0;
}

/* ─────────────────────────────────────────
   Doc Hero (страница Документы)
───────────────────────────────────────── */
.doc-hero {
  padding: 56px 48px;
  background-color: #eaf3ff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.doc-hero__title {
  font-family: 'Geist', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 1.3;
  color: #0a2e57;
}

.doc-hero__subtitle {
  font-family: 'Geist', 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: #2d5e91;
}

/* ─────────────────────────────────────────
   Doc List (страница Документы)
───────────────────────────────────────── */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 48px 56px;
  list-style: none;
  flex: 1;
}

.doc-list__item {
  font-family: 'Geist', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.35;
  color: #0c4a8a;
  padding-left: 1.2em;
  position: relative;
}

.doc-list__item::before {
  content: '•';
  position: absolute;
  left: 0;
}

.doc-list__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(12, 74, 138, 0.3);
  transition: border-color 0.15s;
}

.doc-list__link:hover {
  border-bottom-color: #0c4a8a;
}

/* ─────────────────────────────────────────
   Contact List (страница Контакты)
───────────────────────────────────────── */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 48px 56px;
  flex: 1;
}

.contact-list__item {
  font-family: 'Geist', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.35;
  color: #0c4a8a;
}

/* ─────────────────────────────────────────
   Responsive — tablet & mobile (≤ 768px)
───────────────────────────────────────── */
@media (max-width: 768px) {

  /* Header */
  .header {
    flex-wrap: wrap;
    padding: 14px 20px;
    gap: 12px;
  }

  .header__logo {
    height: 26px;
  }

  .header__nav {
    order: 3;
    width: 100%;
    gap: 16px;
  }

  .header__nav-link {
    font-size: 15px;
  }

  .header__phone {
    font-size: 15px;
    margin-left: auto;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    padding: 32px 20px;
    gap: 24px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .hero__actions {
    flex-wrap: wrap;
  }

  .hero__btn {
    flex: 1;
    min-width: 140px;
    text-align: center;
  }

  .hero__visual {
    width: 100%;
    height: 220px;
  }

  /* Benefits */
  .benefits {
    flex-direction: column;
    padding: 20px 20px;
  }

  /* Info */
  .info {
    padding: 20px 20px 32px;
  }

  .info__title {
    font-size: 22px;
  }

  .info__text {
    font-size: 15px;
  }

  /* Footer */
  .footer {
    padding: 20px 20px;
  }

  /* Doc Hero */
  .doc-hero {
    padding: 32px 20px;
  }

  .doc-hero__title {
    font-size: 26px;
  }

  .doc-hero__subtitle {
    font-size: 15px;
  }

  /* Doc List */
  .doc-list {
    padding: 20px 20px 40px;
  }

  .doc-list__item {
    font-size: 16px;
  }

  /* Contact List */
  .contact-list {
    padding: 20px 20px 40px;
  }

  .contact-list__item {
    font-size: 16px;
  }
}

/* ─────────────────────────────────────────
   Responsive — small mobile (≤ 480px)
───────────────────────────────────────── */
@media (max-width: 480px) {

  /* Header — phone becomes icon-only */
  .header__phone {
    width: 38px;
    height: 38px;
    background-color: #eef4ff;
    border-radius: 50%;
    justify-content: center;
    padding: 0;
  }

  .header__phone__icon {
    display: block;
  }

  .header__phone__text {
    display: none;
  }

  /* Hero */
  .hero {
    padding: 24px 16px;
    gap: 20px;
  }

  .hero__title {
    font-size: 26px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__btn {
    width: 100%;
    justify-content: center;
  }

  .hero__visual {
    height: 180px;
  }

  /* Benefits */
  .benefits {
    padding: 16px 16px;
    gap: 12px;
  }

  .benefits__item-title {
    font-size: 20px;
  }

  .benefits__item-desc {
    font-size: 14px;
  }

  /* Info */
  .info {
    padding: 16px 16px 24px;
  }

  .info__title {
    font-size: 20px;
  }

  /* Footer */
  .footer {
    padding: 16px 16px;
  }

  .footer__company {
    font-size: 13px;
  }

  /* Doc Hero */
  .doc-hero {
    padding: 24px 16px;
  }

  .doc-hero__title {
    font-size: 22px;
  }

  /* Doc List */
  .doc-list {
    padding: 16px 16px 32px;
  }

  .doc-list__item {
    font-size: 15px;
  }

  /* Contact List */
  .contact-list {
    padding: 16px 16px 32px;
  }

  .contact-list__item {
    font-size: 15px;
  }
}
