:root {
  --logo-color: #215540;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 50px;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  width: 100%;
}
.logo {
  font-size: 40px;
  color: var(--logo-color);
  font-weight: bold;
  text-decoration: none;
}
.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
}
.menu-link {
  text-decoration: none;
  color: #595959;
  font-size: 25px;
  font-weight: 400;
  white-space: nowrap;
}
.desktop-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 35px;
  height: 23px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}
.burger-btn span {
  display: block;
  width: 100%;
  height: 4px;
  background: #215540;
  transition: 0.3s ease-in-out;
}
.burger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger-btn.active span:nth-child(2) {
  opacity: 0;
}
.burger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
  padding: 100px 30px 30px;
  z-index: 5;
}
.mobile-menu.active {
  right: 0;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.mobile-link {
  font-size: 22px;
  color: #595959;
  text-decoration: none;
}
.mobile-icons {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-icons svg{
  display: none;
}
.mobile-icons span{
  color: #595959;
  font-size: 22px;
}
.mobile-icon-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: #000;
  text-decoration: none;
}

@media (max-width: 992px) {
  .menu,
  .desktop-icons {
    display: none;
  }
  .burger-btn {
    display: flex;
  }
  .mobile-icons svg {
    display: none;
  }
  .mobile-icon-link {
    font-size: 18px;
    color: #595959;
  }
}
@media (max-width: 768px) {
  .header {
    padding: 20px 30px;
  }
  .logo {
    font-size: 32px;
  }
  .mobile-menu {
    width: 60%;
    padding: 80px 20px 20px;
  }
  .mobile-link {
    font-size: 20px;
  }
  .mobile-icon-link span {
    font-size: 20px;
  }
  .mobile-icons svg {
    display: none;
  }
  .mobile-nav {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 15px 20px;
  }
  .logo {
    font-size: 40px;
  }
  .mobile-link {
    font-size: 18px;
  }
  .mobile-icons {
    gap: 20px;
  }
  .mobile-icon-link span {
    font-size: 18px;
  }
}

/* Стилизация корзины */
.basket-section {
  display: flex;
  justify-content: start;
  align-items: center;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  padding: 30px;
  box-sizing: border-box;
  background: #F3F4F6;
}
.section-title {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: left;
  width: 100%;
  max-width: 1440px;
}
.basket-container {
  display: flex;
  justify-content: space-between;
  max-width: 1440px;
  width: 100%;
}
.basket-items {
  display: flex;
  justify-content: start;
  flex-direction: column;
  align-items: start;
  gap: 43px;
  margin-right: 30px;
}
.basket-item {
  display: flex;
  align-items: center;
  max-width: 825px;
  width: 100%;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  border: 1px solid #bdbdbd;
  padding: 30px;
  max-height: 180px;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.basket-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.basket-img {
  margin-right: 10px;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
}
.item-info {
  display: flex;
  flex-direction: column;
  justify-content: start;
  width: 100%;
}
.item-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}
.item-desc {
  font-size: 17px;
  font-weight: 100;
  color: #4b5563;
  margin-bottom: 29px;
}
.item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
}
.btns button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  outline: none;
  border: 1px solid #bdbdbd;
  background-color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btns button:hover {
  background-color: #f0f0f0;
  border-color: #215540;
}
.count {
  font-size: 20px;
  font-weight: 100;
}
.trash {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.trash img {
  cursor: pointer;
  transition: transform 0.2s ease;
}
.trash img:hover {
  transform: scale(1.1);
}
.trash p {
  font-size: 20px;
  font-weight: bold;
}
.total-price {
  max-width: 470px;
  width: 100%;
  max-height: 400px;
  box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  border: 1px solid #bdbdbd;
  padding: 30px 28px;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.total-price:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.total-price-container {
  width: 100%;
  height: max-content;
}
.total-price-title {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 31px;
}
.sum {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
}
.sum-text {
  font-size: 20px;
  font-weight: 100;
  color: #595959;
}
.total-sum {
  font-size: 20px;
  font-weight: 100;
  color: #595959;
}
.sale {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
}
.sale-text {
  font-size: 20px;
  font-weight: 100;
  color: #595959;
}
.total-sale {
  font-size: 20px;
  font-weight: 100;
  color: #595959;
}
.total-line {
  width: 100%;
  height: 1px;
  background-color: #595959;
  margin-bottom: 18px;
}
.buy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 31px;
}
.buy-text {
  font-size: 25px;
  font-weight: bold;
}
.total-buy {
  font-size: 25px;
  font-weight: bold;
}
.order-action {
  background: #215540;
  width: 100%;
  height: 50px;
  color: #fff;
  outline: none;
  border: none;
  border-radius: 10px;
  font-size: 30px;
  font-family: "Segoe UI", sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.order-action:hover {
  background-color: #1a4535;
  transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 1200px) {
  .basket-container {
      flex-direction: column;
      gap: 40px;
  }
  .basket-items {
      width: 100%;
      margin-right: 0;
  }
  .basket-item {
      max-width: 100%;
  }
  .total-price {
      max-width: 100%;
  }
}

@media (max-width: 768px) {
  .section-title {
      font-size: 28px;
      margin-bottom: 15px;
  }
  .basket-items {
      align-items: center;
  }
  .basket-item {
      flex-direction: row;
      align-items: flex-start;
      max-height: none;
      padding: 10px;
  }
  .basket-img {
      width: 80px;
      height: 80px;
      margin-right: 15px;
      margin-bottom: 0;
  }
  .item-info {
      width: calc(100% - 95px);
  }
  .item-title {
      font-size: 16px;
      margin-bottom: 5px;
      font-weight: 600;
  }
  .item-desc {
      font-size: 14px;
      margin-bottom: 10px;
      color: #666;
  }
  .item-bottom {
      flex-direction: row;
      width: 100%;
  }
  .btns {
      gap: 10px;
  }
  .count {
      font-size: 16px;
  }
  .trash {
      gap: 20px;
  }
  .trash p {
      font-size: 16px;
      font-weight: 600;
  }
  .total-price {
      max-width: 100%;
      padding: 20px;
  }
  .total-price-title {
      font-size: 20px;
      margin-bottom: 15px;
  }
  .sum-text,
  .sale-text,
  .total-sum,
  .total-sale {
      font-size: 14px;
  }
  .buy {
      margin-bottom: 20px;
      gap: 5px;
  }
  .buy-text,
  .total-buy {
      font-size: 18px;
  }
  .order-action {
      font-size: 16px;
      height: 44px;
      padding: 0 15px;
  }
}

@media (max-width: 400px) {
  .item-title {
      font-size: 15px;
  }
  .item-desc {
      font-size: 12px;
  }
  .btns button {
      width: 18px;
      height: 18px;
  }
  .count {
      font-size: 12px;
  }
  .btns button img {
      width: 50%;
  }
  .trash p {
      font-size: 14px;
  }
}

@media (hover: none) {
  .basket-item:hover {
      transform: none;
      box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
  }
  .order-action:hover {
      transform: none;
      background-color: #215540;
  }
  .total-price:hover {
      transform: none;
      box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.25);
  }
  .btns button:hover {
      background-color: #fff;
      border-color: #bdbdbd;
  }
  .trash img:hover {
      transform: none;
  }
}
/* Стилизация подвала */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  padding: clamp(40px, 8vw, 90px) clamp(20px, 4vw, 50px) 26px;
  background-color: #002717;
  position: relative;
  overflow: hidden;
}

.footer-container {
  max-width: 1440px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: clamp(30px, 5vw, 60px);
  margin-bottom: clamp(40px, 6vw, 90px);
}

/* Блоки подвала */
.logo-block,
.footer-contacts,
.time-work {
  min-width: 250px;
  max-width: 420px;
}

.logo-block {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-logo {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  color: #fff;
  position: relative;
  display: inline-block;
}

.logo-desc {
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.footer-contacts,
.time-work {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.5vw, 12px);
}

.block-title {
  color: #fff;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 300;
  transition: all 0.3s ease;
}

.footer-contact-link:hover {
  color: #fff;
  transform: translateX(5px);
}

.footer-contact-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.8);
  transition: all 0.3s ease;
}

.time-work p {
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.footer-line {
  width: 100%;
  max-width: 1440px;
  height: 1px;
  background: rgba(33, 85, 64, 0.5);
  margin-bottom: clamp(15px, 3vw, 22px);
}

.copyright {
  font-size: clamp(14px, 1.8vw, 18px);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  text-align: center;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: start;
  }

  .logo-block,
  .footer-contacts,
  .time-work {
    max-width: 100%;
  }
}
