:root {
  --primary-color: #333;
  --background-color: #fff;
  --card-color: #efebeb;
  --text-color: #333;
}

[data-theme="dark"] {
  --primary-color: #fff;
  --background-color: #333;
  --card-color: #302d2d;
  --text-color: #fff;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
}

header {
  background-color: var(--background-color);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
}

.slider-section {
  width: 100%;
  margin: 2rem 0;
  background: var(--background-color);
}

.slider-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--card-color);
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.slide {
  min-width: 100%;
  padding: 2rem;
}

.slide-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  height: 100%;
}

.slide-image {
  position: relative;
  width: 400px;
  height: 400px;
}

.slide-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.slide-image .image-hover {
  opacity: 0;
}

.slide-image:hover .image-default {
  opacity: 0;
}

.slide-image:hover .image-hover {
  opacity: 1;
}

.slide-info {
  flex: 1;
  padding: 2rem;
  color: var(--text-color);
}

.slide-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.slide-info h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.slide-info p {
  font-size: 1rem;
  line-height: 1.6;
}

.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-button.prev {
  left: 20px;
}

.slider-button.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.dot.active {
  background: white;
}

@media (max-width: 768px) {
  .slide-content {
    flex-direction: column;
    padding: 1rem;
  }

  .slide-image {
    width: 300px;
    height: 300px;
  }

  .slide-info {
    text-align: center;
    padding: 1rem;
  }
}

.item-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 4rem;
  max-width: 1600px;
  margin: 0 auto;
}

.item {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background-color: var(--card-color);
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
  transition: transform 0.2s ease;
}

.item:hover {
  transform: translateY(-5px);
}

.item-image {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  margin-bottom: 1rem;
}

.item-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.item-image .image-hover {
  opacity: 0;
}

.item-image:hover .image-default {
  opacity: 0;
}

.item-image:hover .image-hover {
  opacity: 1;
}

.item-name {
  margin: 0.5rem 0;
  font-size: 1.25rem;
  font-weight: bold;
  width: 100%;
}

.item-full-name {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  width: 100%;
}

.item-kroean-name {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  width: 100%;
}

.item-describtion {
  margin: 0.5rem 0;
  font-size: 0.85rem;
  line-height: 1.4;
  width: 100%;
}

@media (max-width: 1200px) {
  .item-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 1rem 2rem;
  }
}

@media (max-width: 768px) {
  .item-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    padding: 1rem;
    gap: 1rem;
  }

  .item {
    padding: 1rem;
  }
}
