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

:root {
  --primary: #1457cc;
  --primary-hover: #0f46a8;
  --primary-soft: #eef5ff;
  --primary-border: #cfe0fb;
  --text: #18233a;
  --text-muted: #60708c;
  --surface: #ffffff;
  --page: #f7faff;
  --border: #dce6f5;
  --footer: #0b2e68;
  --shadow: 0 14px 38px rgba(20, 87, 204, 0.09);
}

*, *::before, *::after { box-sizing: border-box; padding: 0; margin: 0; }
html { scroll-behavior: smooth; }
body { min-height: 100%; background: var(--page); color: var(--text); font-family: "Montserrat", sans-serif; font-size: 17px; font-weight: 400; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; letter-spacing: 0; }
[class*="__container"] { width: min(100% - 40px, 940px); margin-inline: auto; }
.wrapper { display: flex; min-height: 100vh; flex-direction: column; overflow: hidden; }
.page { flex: 1 1 auto; }

.header { position: relative; z-index: 2; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.96); box-shadow: 0 4px 24px rgba(20, 87, 204, 0.05); }
.header__container { position: relative; display: flex; width: min(100% - 40px, 1000px); min-height: 82px; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { display: flex; width: 156px; }
.header__logo-image { width: 156px; height: 64px; object-fit: contain; }
.header__advertisement { position: absolute; left: 50%; padding: 6px 11px; border: 1px solid var(--primary-border); border-radius: 6px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 600; line-height: 1.3; transform: translateX(-50%); }

.benefits { padding: 40px 0 72px; }
.benefits__hero-image { width: 100%; height: auto; max-height: 540px; border-radius: 8px; box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 16 / 9; }
.benefits__title { max-width: 840px; margin: 28px 0 18px; color: var(--primary); font-size: clamp(34px, 5vw, 48px); font-weight: 800; line-height: 1.16; }
.benefits__intro { display: flex; max-width: 850px; padding: 0 0 34px; flex-direction: column; gap: 14px; color: #34425a; font-size: 18px; }
.benefits__intro h2 { font-size: 30px; font-weight: 700; line-height: 1.25; }
.benefits__item { display: flex; padding: 18px 18px 20px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 26px; background: var(--surface); box-shadow: var(--shadow); flex-direction: column; }
.benefits__item-image { width: 100%; height: auto; border-radius: 6px; object-fit: cover; aspect-ratio: 16 / 9; }
.benefits__item-title { margin: 22px 4px 14px; color: var(--primary); font-size: 27px; font-weight: 700; line-height: 1.3; }
.benefits__item-title a, .benefits__item-text a, .legal__link { color: var(--primary); }
.benefits__item-text { display: flex; padding: 0 4px; flex-direction: column; gap: 14px; color: #34425a; font-size: 18px; line-height: 1.62; }
.benefits__item-text a, .legal__link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.benefit-card__button { display: flex; width: fit-content; max-width: 100%; min-height: 52px; padding: 14px 24px; border: 1px solid var(--primary); border-radius: 6px; margin: 22px 4px 2px; align-items: center; justify-content: center; background: var(--primary); box-shadow: 0 8px 20px rgba(20, 87, 204, 0.2); color: #fff; font-size: 15px; font-weight: 700; line-height: 1.4; text-align: center; transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.benefit-card__button:hover { background: var(--primary-hover); box-shadow: 0 10px 24px rgba(20, 87, 204, 0.27); transform: translateY(-1px); }
.benefit-card__button:focus-visible, a:focus-visible { outline: 3px solid rgba(20, 87, 204, 0.3); outline-offset: 3px; }

.legal { padding: 64px 0 88px; }
.legal__title { margin-bottom: 12px; color: var(--primary); font-size: 46px; font-weight: 800; line-height: 1.2; }
.legal__updated { margin-bottom: 36px; color: var(--text-muted); font-size: 15px; }
.legal__content, .legal__section { display: flex; flex-direction: column; gap: 18px; }
.legal__content, .legal__container > p:not(.legal__updated), .legal__contact-details, .legal__list { font-size: 17px; line-height: 1.65; }
.legal__container > p:not(.legal__updated), .legal__contact-details { margin-bottom: 20px; }
.legal__section-title, .legal__subsection-title { color: var(--primary); font-weight: 700; }
.legal__section-title { margin-top: 14px; font-size: 30px; line-height: 1.3; }
.legal__subsection-title { margin: 14px 0 2px; font-size: 23px; line-height: 1.35; }
.legal__contact-details { display: flex; flex-direction: column; gap: 8px; }
.legal__list { display: flex; padding-left: 24px; flex-direction: column; gap: 8px; }

.footer { padding: 48px 0 28px; border-top: 5px solid var(--primary); background: var(--footer); color: #fff; }
.footer__container { width: min(100% - 40px, 1000px); }
.footer__columns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(150px, .65fr) minmax(0, 1fr); align-items: start; gap: 48px; }
.footer__column { display: flex; min-width: 0; flex-direction: column; gap: 10px; color: #fff; font-size: 13px; line-height: 1.5; }
.footer__title { margin-bottom: 4px; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.4; }
.footer__text { margin-bottom: 10px; color: #dce8fb; font-size: 13px; line-height: 1.55; }
.footer__column h3, .footer__column strong { color: #fff; font-size: 14px; font-weight: 700; }
.footer__column a { font-size: 13px; }
.footer__links { align-items: flex-start; }
.footer__links a, .footer__company a { text-decoration: underline; text-decoration-color: rgba(255,255,255,.55); text-underline-offset: 3px; }
.footer__links a:hover, .footer__company a:hover { text-decoration-color: #fff; }
.footer__company { gap: 12px; }
.footer__copyright { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); margin-top: 34px; color: #c4d5ef; font-size: 12px; text-align: center; }

@media (max-width: 767px) {
  [class*="__container"] { width: min(100% - 28px, 940px); }
  body { font-size: 16px; }
  .header__container { width: min(100% - 28px, 1000px); min-height: 72px; }
  .header__logo, .header__logo-image { width: 128px; height: auto; }
  .header__advertisement { max-width: 128px; font-size: 10px; text-align: center; }
  .benefits { padding: 24px 0 48px; }
  .benefits__title { margin: 20px 0 14px; font-size: 30px; line-height: 1.2; }
  .benefits__intro { padding-bottom: 26px; font-size: 16px; }
  .benefits__intro h2 { font-size: 24px; }
  .benefits__item { padding: 10px 10px 14px; margin-bottom: 18px; }
  .benefits__item-title { margin: 16px 4px 10px; font-size: 22px; }
  .benefits__item-text { gap: 12px; font-size: 16px; }
  .benefit-card__button { width: calc(100% - 8px); margin-top: 18px; padding: 13px 16px; font-size: 14px; }
  .legal { padding: 40px 0 56px; }
  .legal__title { font-size: 32px; }
  .legal__updated { margin-bottom: 24px; font-size: 13px; }
  .legal__content, .legal__container > p:not(.legal__updated), .legal__contact-details, .legal__list { font-size: 14px; }
  .legal__section-title { font-size: 22px; }
  .legal__subsection-title { font-size: 18px; }
  .footer { padding-top: 36px; }
  .footer__container { width: min(100% - 28px, 1000px); }
  .footer__columns { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .benefit-card__button { transition: none; }
}
