/* ========== БАЗОВЫЕ СТИЛИ ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========== БЛОК НАВИГАЦИИ ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: transparent;
  transition: all 0.5s;
}

.nav__container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 4rem;
}

.nav__logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nav__logo-img {
  height: 1.75rem;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav__logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: white;
  transition: color 0.3s;
}

.nav__menu {
  display: none;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.5rem 0;
  color: white;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  color: white;
  transition: background-color 0.3s;
}

.nav__action:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav__action svg,
.nav__burger svg,
.education__link svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.nav__burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.nav__burger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav__burger i {
  font-size: 1.25rem;
}

/* ========== БЛОК БАННЕРА ========== */
.banner {
  position: relative;
  width: 100%;
  height: clamp(500px, 80vh, 850px);
}

.banner__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.banner__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.1)
  );
  pointer-events: none;
}

.banner__content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 1.5rem 2.5rem;
}

.banner__title {
  font-size: 1.875rem;
  line-height: 1.1;
  color: white;
  max-width: 36rem;
}

.banner__description {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 28rem;
  line-height: 1.625;
}

.banner__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ========== БЛОК КНОПОК ========== */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.button--primary {
  background-color: white;
  color: black;
}

.button--primary:hover {
  background-color: #f5f5f5;
}

.button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  background-color: transparent;
}

.button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.button--light {
  background-color: white;
  color: black;
}

.button--light:hover {
  background-color: #f5f5f5;
}

/* ========== БЛОК КАТЕГОРИЙ ========== */
.categories {
  background-color: white;
  padding: 2rem 1.5rem;
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
}

.category-card__icon {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 200px;
  margin: 0 auto 0.75rem;
}

.category-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.category-card:hover .category-card__img {
  transform: scale(1.05);
}

.category-card__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #171717;
}

/* ========== БЛОК ПРОМО-БАННЕРА ========== */
.promo-banner {
  position: relative;
  width: 100%;
  height: clamp(420px, 70vh, 700px);
}

.promo-banner__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.promo-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.2),
    transparent
  );
  pointer-events: none;
}

.promo-banner__content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 1.5rem 2.5rem;
}

.promo-banner__title {
  font-size: 1.5rem;
  line-height: 1.25;
  color: white;
  max-width: 32rem;
}

.promo-banner__description {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 32rem;
  line-height: 1.625;
}

.promo-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ========== БЛОК ХИТЫ ПРОДАЖ ========== */
.products {
  background-color: white;
  padding: 3rem 1.5rem;
}

.products__title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #171717;
  margin-bottom: 1.5rem;
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.product-card {
  display: block;
  text-decoration: none;
}

.product-card__image-wrapper {
  position: relative;
  background-color: #fafafa;
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.4s;
}

.product-card:hover .product-card__image {
  transform: scale(1.05);
}

.product-card__badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.product-card__badge {
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.product-card__badge--savings {
  background-color: #262626;
  color: white;
}

.product-card__badge--free {
  background-color: #059669;
  color: white;
}

.product-card__content {
  margin-top: 0.75rem;
  padding: 0 0.25rem;
}

.product-card__title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #262626;
  line-height: 1.375;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.product-card__price {
  font-size: 0.875rem;
  font-weight: 600;
  color: #171717;
}

.product-card__link {
  font-size: 0.75rem;
  color: #737373;
  text-decoration: underline;
}

/* ========== БЛОК MEMBERSHIP ========== */
.membership {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 520px;
}

.membership__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.membership__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.membership__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.2)
  );
  pointer-events: none;
}

.membership__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
}

.membership__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  max-width: 48rem;
  line-height: 1.375;
  margin-bottom: 1.5rem;
}

.membership__description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 42rem;
  line-height: 1.625;
  margin-bottom: 2rem;
}

/* ========== БЛОК ОБУЧЕНИЕ ========== */
.education {
  background-color: white;
  padding: 3rem 1.5rem;
}

.education__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.education__title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #171717;
}

.education__link {
  font-size: 0.875rem;
  color: #737373;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.education__link:hover {
  color: #171717;
}

.education__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.article-card {
  display: block;
  text-decoration: none;
}

.article-card__media {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 2 / 3;
}

.article-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s;
}

.article-card:hover .article-card__img {
  transform: scale(1.05);
}

.article-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
}

.article-card__content {
  margin-top: 0.75rem;
  padding: 0 0.25rem;
}

.article-card__title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #171717;
  line-height: 1.375;
}

.article-card__description {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: #737373;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #171717;
  text-decoration: underline;
}

/* ========== БЛОК ПОДВАЛА ========== */
.footer {
  background-color: #2d2825;
  color: white;
}

.footer__section {
  padding: 3rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__container {
  max-width: 72rem;
  margin: 0 auto;
}

.footer__newsletter {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer__newsletter-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer__newsletter-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer__form {
  display: flex;
  align-items: center;
  width: 100%;
}

.footer__input {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem 0 0 0.375rem;
}

.footer__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer__input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
}

.footer__submit {
  padding: 0.75rem 1.5rem;
  background-color: white;
  color: black;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0 0.375rem 0.375rem 0;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s;
}

.footer__submit:hover {
  background-color: #f5f5f5;
}

.footer__wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2.5rem 1rem;
}

.footer__col {
  grid-column: span 2;
}

.footer__title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer__link svg {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.footer__link:hover {
  color: white;
}

.footer__bottom {
  padding: 1.5rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer__legal-link {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s;
}

.footer__legal-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (min-width: 768px) {
  .nav__container {
    padding: 0 2.5rem;
    height: 5rem;
  }

  .nav__logo-img {
    height: 2rem;
  }

  .nav__logo-text {
    font-size: 1.5rem;
  }

  .nav__action {
    width: 2.5rem;
    height: 2.5rem;
  }

  .nav__action--user {
    display: flex;
  }

  .banner__content {
    padding: 0 2.5rem 3.5rem;
  }

  .banner__title {
    font-size: 2.25rem;
  }

  .banner__description {
    font-size: 1rem;
  }

  .categories {
    padding: 3rem 2.5rem;
  }

  .categories__grid {
    gap: 1.5rem;
  }

  .promo-banner__content {
    padding: 0 2.5rem 3.5rem;
  }

  .promo-banner__title {
    font-size: 2.25rem;
  }

  .promo-banner__description {
    font-size: 1rem;
  }

  .products {
    padding: 4rem 2.5rem;
  }

  .products__title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .products__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .membership {
    min-height: 620px;
  }

  .membership__content {
    padding: 8rem 2.5rem;
  }

  .membership__title {
    font-size: 1.875rem;
  }

  .membership__description {
    font-size: 1rem;
  }

  .education {
    padding: 4rem 2.5rem;
  }

  .education__title {
    font-size: 1.5rem;
  }

  .education__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .article-card__media {
    aspect-ratio: 3 / 4;
  }

  .footer__newsletter {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .footer__form {
    width: auto;
  }

  .footer__input {
    width: 16rem;
  }

  .footer__wrap {
    padding: 3.5rem 2rem;
  }

  .footer__col {
    grid-column: span 1;
  }

  .footer__bottom {
    padding: 1.5rem 2rem;
  }

  .footer__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .footer__copyright {
    margin-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .nav__menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .nav__burger {
    display: none;
  }

  .banner__content {
    padding: 0 4rem 4.5rem;
  }

  .banner__title {
    font-size: 3.75rem;
  }

  .categories__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .promo-banner__content {
    padding: 0 4rem 4rem;
  }

  .promo-banner__title {
    font-size: 3rem;
  }

  .products__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .membership {
    min-height: 700px;
  }

  .membership__content {
    padding: 10rem 4rem;
  }

  .membership__title {
    font-size: 2.25rem;
  }

  .membership__description {
    font-size: 1.125rem;
  }

  .education__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__input {
    width: 18rem;
  }

  .footer__wrap {
    gap: 3rem;
  }
}

@media (max-width: 767px) {
  .banner__title {
    font-size: 1.875rem;
  }

  .promo-banner__title {
    font-size: 1.5rem;
  }
}
