/* ===== СБРОС ===== */

html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* ===== ВЕРХНЯЯ ПАНЕЛЬ ===== */

.top-bar {
  background: #333;
  color: #fff;
  height: 50px;
}

.top-bar-inner {
  width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar .address {
  font-size: 14px;
}

.top-bar .right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar .search {
  height: 30px;
  padding: 0 8px;
  border: none;
  border-radius: 3px;
}

.top-bar .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 3px;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
}

.top-bar .whatsapp {
  background: #25d366;
}

.top-bar .telegram {
  background: #0088cc;
}

.top-bar .btn {
  background: #eee;
  color: #000;
  padding: 6px 12px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 13px;
}

.top-bar .btn:hover {
  background: #fcb000;
  color: #000;
}

.top-bar .phone {
  font-weight: bold;
}

.top-bar .cart {
  background: #fcb000;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 14px;
}

/* ===== ГЛАВНОЕ МЕНЮ ===== */

.main-menu {
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
  /* увеличенная высота */
}

.main-menu-inner {
  width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo img {
  display: block;
  height: 50px;
  /* логотип крупнее */
}

.catalog-btn {
  background: #fcb000;
  color: #000;
  padding: 12px 20px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-size: 15px;
}

.nav-links a:hover {
  color: #fcb000;
}

/* ===== HERO (фон под элементами) ===== */

.hero {
  position: relative;
  height: 450px;
  /* как у оригинала */
  background: url("resources/dileram-fonovaya_1320x450_07d.jpg") center/cover
    no-repeat;
  display: flex;
  align-items: center;
  color: #fff;
}

/* левый затемняющий градиент поверх фона */

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0) 75%
  );
}

.hero__inner {
  width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 620px;
}

.hero__title {
  margin: 0 0 18px;
  font-weight: 800;
  line-height: 1.15;
  font-size: 56px;
  /* крупный заголовок как на скрине */
}

.hero__subtitle {
  margin: 0 0 22px;
  font-size: 24px;
  font-weight: 700;
  color: #fcb000;
}

.hero__btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  background: #fcb000;
  color: #000;
  padding: 12px 22px;
  border-radius: 6px;
}

.hero__btn:hover {
  background: #e0a400;
}

/* ===== FEATURES (ряд иконок) ===== */

.features2 {
  background: #fff;
  padding: 38px 0 52px;
}

.features2__inner {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.features2__item {
  flex: 1;
  text-align: center;
}

.features2__icon {
  width: 94px;
  height: 94px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fcb000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.features2__icon img {
  width: 46px;
  height: 46px;
}

.features2__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #2a2a2a;
}

/* ====== КАТЕГОРИИ ====== */

.categories {
  width: 1200px;
  margin: 60px auto;
}

.categories__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.categories__header h2 {
  font-size: 32px;
  margin: 0;
}

.categories__header a {
  color: #fcb000;
  text-decoration: none;
  font-weight: 600;
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 15px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 20%, transparent 80%);
}

.category-card span {
  position: relative;
  z-index: 1;
}

/* ====== ПРОДУКТЫ (РАСПРОДАЖА / НОВИНКИ) ====== */

.products {
  width: 1200px;
  margin: 60px auto;
}

.products h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  border: 1px solid #eee;
  padding: 10px;
  text-align: center;
  position: relative;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 10px;
}

.discount {
  position: absolute;
  top: 0;
  left: 0;
  background: #e00;
  color: #fff;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 700;
}

.product-card .name {
  font-size: 14px;
  font-weight: 600;
  margin: 6px 0;
}

.product-card .status {
  font-size: 13px;
  color: green;
  margin: 0 0 8px;
}

.product-card .old-price {
  text-decoration: line-through;
  color: #888;
  font-size: 14px;
  margin: 0;
}

.product-card .new-price {
  font-size: 20px;
  font-weight: 700;
  margin: 5px 0;
}

.btn-yellow {
  display: inline-block;
  background: #fcb000;
  color: #000;
  padding: 8px 14px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 3px;
}

.btn-yellow:hover {
  background: #d99a00;
}

/* ====== ОБРАТИТЕ ВНИМАНИЕ ====== */

.attention {
  width: 1200px;
  margin: 60px auto;
}

.attention h2 {
  font-size: 28px;
  margin-bottom: 25px;
}

.attention__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.attention-card img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

.attention-card p {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

/* ====== О КОМПАНИИ ====== */

.about-company {
  width: 1200px;
  margin: 60px auto;
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #eee;
}

.about-company h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
}

.about-company p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.partners {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.partners img {
  height: 50px;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.partners img:hover {
  filter: grayscale(0%);
}

/* ===== FOOTER ===== */

.footer {
  background: #111;
  color: #fff;
  font-size: 14px;
  margin-top: 40px;
}

/* верхняя панель */

.footer-top {
  border-bottom: 1px solid #222;
  padding: 40px 0;
}

.footer-menu {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu ul li {
  margin-bottom: 8px;
}

.footer-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.footer-menu a:hover {
  color: #fcb000;
}

.footer-contacts {
  max-width: 250px;
  color: #bbb;
  font-size: 13px;
}

.footer-contacts .phone {
  margin-top: 12px;
  font-size: 15px;
  color: #fff;
}

/* нижняя панель */

.footer-bottom {
  background: #111;
  padding: 40px 0;
}

.footer-categories {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.footer-col {
  flex: 1;
  margin-right: 20px;
}

.footer-col-title {
  background: #fcb000;
  color: #000;
  font-weight: bold;
  padding: 5px 10px;
  margin-bottom: 10px;
  display: inline-block;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul li a {
  color: #fcb000;
  text-decoration: none;
}

.footer-col ul li a:hover {
  text-decoration: underline;
}

/* ===== FOOTER COPYRIGHT ===== */

.footer-copy {
  background: #000;
  color: #888;
  font-size: 13px;
  padding: 18px 0;
  border-top: 1px solid #222;
}

.footer-copy-inner {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy a {
  color: #fcb000;
  text-decoration: none;
}

.footer-copy a:hover {
  text-decoration: underline;
}
