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

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


body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background-color: #f9fafb;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #fff;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__logo {
  width: 48px;
}

.header__title {
  font-size: 1.25rem;
  font-weight: 700;
}

.header__actions {
  display: flex;
  gap: 1rem;
}

.header__icon {
  width: 24px;
  cursor: pointer;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav__link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.25rem 0;
  transition: color 0.3s ease, border-color 0.3s ease, opacity 0.2s ease;
}

.nav__link:hover {
  color: #2c5530;
  border-bottom: 2px solid #2c5530;
}

.nav__link--active {
  color: #2c5530;
  border-bottom: 2px solid #2c5530;
}

.nav__link:focus {
  outline: 2px solid #2c5530;
  outline-offset: 2px;
}

.nav__link:active {
  opacity: 0.7;
}

.hero {
  padding: 4rem 2rem;
  text-align: center;
}

.hero__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero__text {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1rem;
}

.hero__image {
  max-width: 100%;
}

.catalog {
  padding: 3rem 2rem;
}

.catalog__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.catalog__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.card:focus {
  outline: 2px solid #2c5530;
  outline-offset: 4px;
}

.card:active {
  transform: translateY(-2px);
}

.card--featured {
  border: 2px solid #2c5530;
}

.card__image {
  width: 100%;
  margin-bottom: 1rem;
}

.card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.95rem;
}

.footer {
  background: #fff;
  padding: 2rem;
  text-align: center;
}

.footer__title {
  font-size: 1.25rem;
  font-weight: 600;
}

.footer__copy {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #666;
}

.about {
  padding: 3rem 2rem;
  text-align: center;
}

.about__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about__text {
  max-width: 700px;
  margin: 0 auto 2rem;
}

.about__image {
  max-width: 100%;
  border-radius: 8px;
}

.features {
  padding: 3rem 2rem;
}

.features__title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.features__list {
  column-count: 3;
  column-gap: 2rem;
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.features__item {
  break-inside: avoid;
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.features__icon {
  width: 32px;
}

.features__image {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.social {
  padding: 2rem;
  text-align: center;
}

.social__list {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-top: 1rem;
}

.social__link img {
  width: 32px;
  transition: transform 0.3s ease;
}

.social__link:hover img {
  transform: scale(1.1);
}


/* < 1200px — ноутбуки */
@media (max-width: 1199px) {
  .hero__title {
    font-size: 1.75rem;
  }

  .features__list {
    column-count: 2;
  }
}

/* < 992px — планшеты */
@media (max-width: 991px) {
  .header {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .header__title {
    font-size: 1.1rem;
  }

  .features__list {
    column-count: 2;
  }
}

/* < 768px — мобильные (альбом) */
@media (max-width: 767px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav__list {
    flex-direction: column;
    gap: 1rem;
  }

  .header__actions {
    align-self: center;
  }

  .catalog__list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .features__list {
    column-count: 1;
  }
}

/* < 576px — мобильные */
@media (max-width: 575px) {
  body {
    font-size: 15px;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .header__brand {
    flex-direction: column;
    text-align: center;
  }
}

/* < 400px — очень маленькие */
@media (max-width: 399px) {
  body {
    font-size: 14px;
  }

  .header__title {
    font-size: 1rem;
  }

  .card {
    padding: 1rem;
  }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle__line {
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 2px;
  transition: 0.3s;
}

.menu-toggle.active .menu-toggle__line:nth-child(1) {
  transform: rotate(45deg) translate(0px, 0px);
}

.menu-toggle.active .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-toggle__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-2px);
}

