﻿:root {
  --plum: #29243c;
  --lime: #d5f15b;
  --lavender: #a99bf5;
  --page: #f2f0e9;
  --card: #fffef9;
  --muted: #625d70;
  --soft-lavender: #dcd5ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--plum);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
[class*="__container"] {
  width: min(100% - 48px, 1160px);
  margin-inline: auto;
}
.benefits__container {
  width: min(100% - 48px, 900px);
}
.wrapper {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
.page {
  flex: 1;
}

.header {
  border-top: 9px solid var(--plum);
  background: var(--card);
}
.header__container {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header__logo {
  display: block;
  width: clamp(180px, 22vw, 245px);
}
.header__logo-image {
  width: 100%;
  height: auto;
}
.header__advertisement {
  padding: 7px 13px;
  border: 1px solid var(--plum);
  border-radius: 3px;
  color: var(--plum);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.benefits {
  padding: 36px 0 100px;
}
.benefits__hero {
  display: flex;
  min-height: 440px;
  padding: clamp(30px, 5vw, 62px);
  overflow: hidden;
  align-items: flex-end;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(41, 36, 60, 0.96) 0%, rgba(41, 36, 60, 0.86) 45%, rgba(41, 36, 60, 0.38) 100%),
    url("../img/0.png") center / cover no-repeat,
    var(--plum);
}
.benefits__title {
  max-width: 720px;
  margin: 0;
  color: var(--card);
  font-size: clamp(36px, 4.7vw, 58px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
}
.benefits__intro {
  max-width: 900px;
  margin: 30px 0 40px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
.benefits__intro p {
  margin: 0;
}
.benefits__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}
.benefits__item {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(41, 36, 60, 0.08);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 5px 5px 8px -4px var(--plum);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.benefits__item:hover {
  transform: translateY(-3px);
  box-shadow: 8px 10px 14px -4px var(--plum);
}
.benefits__item-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.benefits__item-body {
  display: flex;
  height: 100%;
  padding: 27px 25px 28px;
  flex-direction: column;
  align-items: flex-start;
}
.benefits__item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.benefits__item-number {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 3px;
  background: var(--lime);
  color: var(--plum);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.benefits__item-category {
  color: var(--lavender);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.35;
}
.benefits__item-title {
  margin: 0 0 13px;
  color: var(--plum);
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.26;
}
.benefits__item-text {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.benefit-card__button {
  display: inline-flex;
  min-height: 42px;
  max-width: 100%;
  padding: 11px 15px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  margin-top: auto;
  background: var(--plum);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.benefit-card__button span {
  flex: none;
  font-size: 16px;
  line-height: 1;
}
.benefit-card__button:hover {
  background: var(--lavender);
  color: var(--plum);
}
a:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.legal {
  padding: 60px 0 90px;
}
.legal__container {
  max-width: 940px;
  padding: clamp(26px, 5vw, 62px);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 5px 5px 0 var(--plum);
}
.legal__title {
  margin-bottom: 14px;
  color: var(--plum);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
}
.legal__updated {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 14px;
}
.legal__content,
.legal__section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.legal__content p,
.legal__section p,
.legal__container > p,
.legal__list {
  margin: 0;
  color: var(--muted);
}
.legal__content strong,
.legal__section strong {
  color: var(--plum);
}
.legal__section-title,
.legal__subsection-title {
  margin: 14px 0 0;
  color: var(--plum);
  font-weight: 800;
  line-height: 1.3;
}
.legal__section-title {
  font-size: 26px;
}
.legal__subsection-title {
  font-size: 20px;
}
.legal__contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal__list {
  padding-left: 24px;
}
.legal__link {
  color: #765dd7;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer {
  padding: 62px 0 24px;
  background: var(--plum);
  color: var(--card);
}
.footer__columns {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(160px, 0.7fr) minmax(200px, 0.85fr);
  align-items: start;
  gap: clamp(28px, 4vw, 58px);
}
.footer__title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}
.footer__text {
  margin: 0 0 27px;
  color: #e7e3f0;
  font-size: 13px;
  line-height: 1.72;
}
.footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  padding-top: 2px;
}
.footer__links a,
.footer__company a {
  color: var(--card);
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: var(--lavender);
  text-underline-offset: 4px;
}
.footer__links a:hover,
.footer__company a:hover {
  color: var(--lime);
}
.footer__company p {
  margin: 0 0 12px;
  color: #e7e3f0;
  font-size: 13px;
  line-height: 1.65;
}
.footer__company strong {
  color: #fff;
}
.footer__copyright {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  margin: 22px 0 0;
  color: #d8d2e3;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 950px) {
  .footer__columns {
    grid-template-columns: 1fr 1fr;
  }
  .footer__about {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  [class*="__container"] {
    width: min(100% - 32px, 1160px);
  }
  .benefits__container {
    width: min(100% - 32px, 900px);
  }
  .header__container {
    min-height: 76px;
  }
  .header__logo {
    width: 166px;
  }
  .header__advertisement {
    padding: 6px 8px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }
  .benefits {
    padding: 20px 0 64px;
  }
  .benefits__hero {
    min-height: 390px;
    padding: 28px;
    background:
      linear-gradient(0deg, rgba(41, 36, 60, 0.96), rgba(41, 36, 60, 0.45)),
      url("../img/0.png") center / cover no-repeat,
      var(--plum);
  }
  .benefits__title {
    font-size: clamp(32px, 9vw, 43px);
  }
  .benefits__intro {
    margin: 24px 0 34px;
    font-size: 16px;
  }
  .benefits__grid {
    gap: 27px;
  }
  .benefits__item-body {
    padding: 24px 22px 26px;
  }
  .benefits__item-title {
    font-size: 25px;
  }
  .benefits__item-text {
    font-size: 15px;
  }
  .footer {
    padding-top: 44px;
  }
  .footer__columns {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .footer__about {
    grid-column: auto;
  }
  .legal {
    padding: 30px 0 65px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .benefits__item,
  .benefit-card__button {
    transition: none;
  }
  .benefits__item:hover {
    transform: none;
  }
}
