* {
  box-sizing: border-box;
}

body.free-tools-page,
.free-tools-index {
  min-height: 100%;
  margin: 0;
  color: #182331;
  background: #f5f7fb;
  font-family: "PT Sans", Arial, sans-serif;
}

.free-tools-page a,
.free-tools-index a {
  color: inherit;
  text-decoration: none;
}

.free-tools__container,
.free-tools-header__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.free-tools-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #dfe7f1;
}

.free-tools-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.free-tools-header__brand {
  display: inline-flex;
  align-items: center;
  min-width: 126px;
}

.free-tools-header__logo {
  display: block;
  width: 126px;
  height: auto;
}

.free-tools-header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.free-tools-header__link,
.free-tools-header__button,
.free-tools-cta__button,
.free-tools-footer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.free-tools-header__link {
  color: #435166;
}

.free-tools-header__link:hover,
.free-tools-header__link:focus {
  color: #1f5d9d;
}

.free-tools-header__button {
  color: #fff;
  background: #5f7ed8;
  box-shadow: 0 8px 18px rgba(95, 126, 216, 0.22);
}

.free-tools-cta__button,
.free-tools-footer__button {
  color: #fff;
  background: #7b9ce6;
  box-shadow: 0 8px 18px rgba(123, 156, 230, 0.22);
}

.free-tools-header__button:hover,
.free-tools-header__button:focus {
  background: #496bc8;
}

.free-tools-cta__button:hover,
.free-tools-cta__button:focus,
.free-tools-footer__button:hover,
.free-tools-footer__button:focus {
  background: #6c8fe7;
}

.free-tools-hero {
  padding: 148px 0 64px;
  background: #eef6f4;
  border-bottom: 1px solid #d9e7e4;
}

.free-tools-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #286c63;
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
}

.free-tools-hero__eyebrow .material-icons {
  font-size: 22px;
}

.free-tools-hero__title {
  max-width: 820px;
  margin: 0;
  color: #17202c;
  font-size: 46px;
  line-height: 56px;
  font-weight: 700;
}

.free-tools-hero__description {
  max-width: 740px;
  margin: 22px 0 0;
  color: #425269;
  font-size: 18px;
  line-height: 30px;
}

.free-tools-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.free-tools-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #cbded9;
  border-radius: 8px;
  color: #243447;
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.free-tools-hero__badge .material-icons {
  color: #2f876f;
  font-size: 20px;
}

.free-tools-list {
  padding: 58px 0 72px;
}

.free-tools-list__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.free-tools-list__title,
.free-tools-cta__title,
.free-tools-footer__title {
  margin: 0;
  color: #17202c;
  font-size: 28px;
  line-height: 38px;
  font-weight: 700;
}

.free-tools-list__description,
.free-tools-cta__description,
.free-tools-footer__description {
  max-width: 720px;
  margin: 10px 0 0;
  color: #56657a;
  font-size: 15px;
  line-height: 26px;
}

.free-tools-cta__description p,
.free-tools-footer__description p {
  margin: 0;
}

.free-tools-cta__description p + p,
.free-tools-footer__description p + p {
  margin-top: 8px;
}

.free-tools-list__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 54px;
  padding: 0 16px;
  border-radius: 8px;
  color: #286c63;
  background: #e2f0ec;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.free-tools-list__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.free-tools-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: start;
  gap: 16px;
  min-height: 176px;
  padding: 22px;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(22, 35, 52, 0.06);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.free-tools-card:hover,
.free-tools-card:focus {
  border-color: #9db8ea;
  box-shadow: 0 18px 42px rgba(22, 35, 52, 0.1);
  transform: translateY(-2px);
  outline: none;
}

.free-tools-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #fff;
  background: #5f7ed8;
}

.free-tools-card:nth-child(2n) .free-tools-card__icon {
  background: #2f876f;
}

.free-tools-card:nth-child(3n) .free-tools-card__icon {
  background: #d78a28;
}

.free-tools-card:nth-child(4n) .free-tools-card__icon {
  background: #7d61c8;
}

.free-tools-card__icon .material-icons {
  font-size: 25px;
}

.free-tools-card__content {
  display: block;
  min-width: 0;
}

.free-tools-card__title {
  display: block;
  color: #17202c;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

.free-tools-card__description {
  display: block;
  margin-top: 8px;
  color: #5c6a7e;
  font-size: 14px;
  line-height: 23px;
}

.free-tools-card__open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #8a98aa;
}

.free-tools-card__open .material-icons {
  font-size: 21px;
}

.free-tools-card:hover .free-tools-card__open,
.free-tools-card:focus .free-tools-card__open {
  color: #496bc8;
}

.free-tools-cta,
.free-tools-footer {
  padding: 44px 0;
  background: #fff;
  border-top: 1px solid #dfe7f1;
}

.free-tools-cta__inner,
.free-tools-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

[dir="rtl"] .free-tools-card__open {
  transform: rotate(180deg);
}

@media (max-width: 980px) {
  .free-tools-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .free-tools__container,
  .free-tools-header__inner {
    width: min(100% - 24px, 1120px);
  }

  .free-tools-header__inner,
  .free-tools-cta__inner,
  .free-tools-footer__inner,
  .free-tools-list__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .free-tools-header__nav {
    width: 100%;
    justify-content: flex-start;
  }

  .free-tools-hero {
    padding: 118px 0 42px;
  }

  .free-tools-hero__title {
    font-size: 34px;
    line-height: 43px;
  }

  .free-tools-hero__description {
    font-size: 16px;
    line-height: 27px;
  }

  .free-tools-list {
    padding: 42px 0 54px;
  }

  .free-tools-list__grid {
    grid-template-columns: 1fr;
  }

  .free-tools-card {
    grid-template-columns: 44px minmax(0, 1fr) 22px;
    min-height: 154px;
    padding: 18px;
  }

  .free-tools-card__icon {
    width: 44px;
    height: 44px;
  }

  .free-tools-cta__button,
  .free-tools-footer__button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .free-tools-header__nav {
    flex-direction: column;
    align-items: stretch;
  }

  .free-tools-header__link,
  .free-tools-header__button {
    width: 100%;
  }

  .free-tools-hero__title {
    font-size: 30px;
    line-height: 38px;
  }

  .free-tools-card {
    grid-template-columns: 1fr 22px;
  }

  .free-tools-card__icon {
    grid-column: 1 / -1;
  }
}
