:root {
  --primary-bg: #f8f9fa;
  --primary-color: #2c3e50;
  --accent-color: #3498db;
  --accent-light: #5dade2;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --light: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-dark);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
  color: var(--text-dark);
}

header {
  background-color: var(--light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.language-switcher {
  display: flex;
  gap: 5px;
}

.lang-btn {
  background: var(--primary-bg);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
}

.lang-btn.active {
  background: var(--accent-color);
  color: var(--light);
  border-color: var(--accent-color);
}

/* Centrirana navigacija */
nav.centered-nav {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 20px;
  background: var(--light);
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

nav.centered-nav.active {
  max-height: 500px;
}

.nav-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
}

nav.centered-nav button {
  background: none;
  border: none;
  padding: 12px 15px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-dark);
  position: relative;
  font-weight: 500;
  border-radius: 4px;
  text-align: center;
  width: 100%;
}

nav.centered-nav button.active, nav.centered-nav button:hover {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--accent-color);
}

#mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

main {
  flex: 1;
  padding: 30px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.page {
  display: none;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.hero-content {
  flex: 1;
}

.hero-content h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.hero-content p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--text-light);
}

.hero-content p strong {
  color: var(--accent-color);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cta-btn {
  background-color: var(--accent-color);
  color: var(--light);
  border: none;
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-btn.outline {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.cta-btn:hover {
  background-color: var(--accent-light);
  transform: translateY(-3px);
}

.cta-btn.outline:hover {
  background: rgba(52, 152, 219, 0.1);
}

.hero-image {
  height: 250px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.services-preview {
  background: var(--light);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-top: 30px;
}

.services-preview h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.services-preview ul {
  list-style: none;
}

.services-preview li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.services-preview i {
  color: var(--accent-color);
  min-width: 20px;
}

.used-pc {
  background: var(--light);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 30px 0;
}

.used-pc h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: var(--accent-color);
}

.used-pc p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.used-pc ul {
  list-style: none;
  margin: 20px 0;
}

.used-pc li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.used-pc i {
  color: var(--accent-color);
  min-width: 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1rem;
}

.services-list {
  max-width: 800px;
  margin: 0 auto;
}

.service-item {
  display: flex;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.service-icon {
  width: 50px;
  height: 50px;
  background: rgba(52, 152, 219, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.service-details {
  flex: 1;
}

.service-details h3 {
  margin-bottom: 5px;
  font-size: 1.15rem;
}

.service-details p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

.price {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.original-price {
  text-decoration: line-through;
  color: #95a5a6;
}

.discounted-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e74c3c;
}

.discount-badge {
  background: #e74c3c;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
}

.filter-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
}

.filter-btn {
  background: var(--light);
  border: 1px solid var(--border);
  padding: 7px 15px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.9rem;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--accent-color);
  color: var(--light);
  border-color: var(--accent-color);
}

.pc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.pc-card {
  background: var(--light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.pc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.pc-card-inner {
  display: flex;
  flex-direction: column;
}

.pc-image {
  width: 100%;
  height: 220px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  background-color: #f8f9fa;
  border-bottom: 1px solid var(--border);
}

.pc-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pc-header {
  padding: 15px;
  border-bottom: 1px solid var(--border);
}

.pc-header h3 {
  margin-bottom: 3px;
  font-size: 1.2rem;
}

.pc-type {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-block;
  background: #e3f2fd;
  color: #1976d2;
}

.pc-card.gaming .pc-type {
  background: #ffebee;
  color: #c62828;
}

.pc-card.office .pc-type {
  background: #e8f5e9;
  color: #2e7d32;
}

.pc-card.budget .pc-type {
  background: #fff8e1;
  color: #f57f17;
}

.pc-specs {
  padding: 15px;
  list-style: none;
  flex-grow: 1;
}

.pc-specs li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.pc-specs i {
  color: var(--accent-color);
  width: 20px;
  flex-shrink: 0;
}

.pc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border-top: 1px solid var(--border);
}

.price {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-color);
  margin: 0;
}

.get-btn {
  background: var(--accent-color);
  color: var(--light);
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.get-btn:hover {
  background: var(--accent-light);
}

.custom-pc {
  background: var(--light);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.custom-pc h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.custom-pc p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1rem;
}

.empty-catalog {
  text-align: center;
  padding: 40px 20px;
  background: var(--light);
  border-radius: 8px;
  box-shadow: var(--shadow);
  grid-column: 1 / -1;
}

.empty-catalog i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.empty-catalog h3 {
  margin-bottom: 10px;
}

.empty-catalog p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  gap: 15px;
  background: var(--light);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  align-items: flex-start;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-top: 5px;
  flex-shrink: 0;
}

.contact-item .fab.fa-telegram {
  color: #0088cc;
}

.contact-item .fab.fa-whatsapp {
  color: #25D366;
}

.contact-item h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.contact-item p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.map-container .map {
  height: 400px;
}

.profile-section {
  text-align: center;
  margin-bottom: 30px;
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 15px;
  background-color: #e0e0e0;
  border: 3px solid #3498db;
  background-image: url('bohdan_photo.jpg');
  background-size: cover;
  background-position: center;
}

.other-services {
  background: var(--light);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-top: 30px;
  text-align: center;
  border: 1px solid #3498db;
}

.other-services h3 {
  color: var(--accent-color);
  margin-bottom: 15px;
}

.pc-warning {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 12px 15px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
}

.pc-warning i {
  color: #ffc107;
  font-size: 1.2rem;
}

/* Стили для баннера скидки */
.summer-discount-banner {
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  padding: 15px 20px;
  border-radius: 8px;
  margin: 25px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: #2c3e50;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Стили для SEO контента */
.seo-content {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-top: 40px;
  line-height: 1.8;
}

.seo-content h3 {
  margin-bottom: 15px;
  color: #2c3e50;
}

.seo-content h4 {
  margin: 20px 0 15px;
  color: #3498db;
}

.seo-content ul {
  list-style: none;
  margin: 20px 0;
}

.seo-content li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.seo-content i {
  color: #2ecc71;
  margin-top: 5px;
}

@media (max-width: 768px) {
  .map-container .map {
    height: 300px;
  }
  
 .pc-card-inner {
    flex-direction: row;
  }
  
  .pc-image {
    width: 45%;
    height: 250px;
    border-right: 1px solid var(--border);
    border-bottom: none;
  }
  
  .pc-content {
    width: 55%;
  }
  
  .logo-text {
    font-size: 1.6rem;
  }
  
  .logo-image {
    height: 65px;
    width: 65px;
  }
  
  .working-hours {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.4rem;
  }
  
  .logo-image {
    height: 55px;
    width: 55px;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .logo-container {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

footer {
  background: var(--primary-color);
  color: var(--light);
  padding: 30px 0 0;
  margin-top: 50px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 30px;
}

.footer-about h3 {
  color: var(--light);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.footer-about p {
  color: #b0bec5;
  font-size: 0.95rem;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer-contact a {
  color: #b0bec5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #b0bec5;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  #mobile-menu-btn {
    display: none;
  }
  
  nav.centered-nav {
    display: flex;
    max-height: none;
    padding: 10px 0;
    border-top: none;
  }
  
  .nav-container {
    justify-content: center;
    gap: 10px;
  }
  
  nav.centered-nav button {
    width: auto;
    padding: 10px 25px;
    margin: 0 5px;
  }
  
  .hero {
    flex-direction: row;
    align-items: center;
  }
  
  .hero-image {
    height: 300px;
  }
  
  .services-list {
    max-width: 100%;
  }
  
  .contact-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .hero-image {
    height: 350px;
  }
  
  .service-item {
    padding: 20px 0;
  }
  
  .contact-info {
    grid-template-columns: repeat(4, 1fr);
  }
}