html { 
  box-sizing: border-box; 
}

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

body { 
  font-family: 'Montserrat', Arial, sans-serif; 
  background: #f5f6fa; 
  color: #222; 
  margin: 0; 
}

/* Top contact bar */
.top-contact-bar {
  background: #f8f9fa;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid #e5e7eb;
  color: #6b7280;
}

.top-contact-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.opening-hours {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.branch-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-open {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.status-closed {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  text-decoration: none;
}

.contact-item:hover {
  color: #ea580c;
}

.contact-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* Header */
header { 
  padding: 2rem 0 1rem 0; 
  text-align: center; 
  background: #fff; 
}

.logo img { 
  max-width: 300px; 
  height: auto; 
  display: inline-block; 
}

.subtitle { 
  color: #ea580c; 
  font-size: 1.1rem; 
  margin-top: 0.5rem; 
}

h1, h2, h3 { 
  margin: 1.3rem 0 1rem 0; 
}

main h1 {
  text-align: center;
  font-size: 2.3rem;
  margin-bottom: 1.2rem;
  font-weight: 800;
}

main { 
  max-width: 900px; 
  margin: 0 auto; 
  background: #fff; 
  border-radius: 14px; 
  box-shadow: 0 2px 16px #0001; 
  padding: 2rem; 
}

/* CTA */
.cta-row {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  margin: 2.3rem 0 2rem 0;
  flex-wrap: wrap;
}

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 3px 24px #0001;
  padding: 2.1rem 2.2rem;
  text-decoration: none;
  color: #181818;
  font-weight: 700;
  font-size: 1.35rem;
  transition: box-shadow 0.18s, transform 0.18s;
  cursor: pointer;
  min-width: 170px;
  min-height: 185px;
  margin-bottom: 0.5rem;
}

.cta-card img {
  max-width: 280px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 1.1rem;
  box-shadow: 0 1px 8px #0002;
  background: #f4f4f4;
}

.cta-card span {
  font-size: 1.22rem;
  letter-spacing: 0.02em;
}

.cta-card:hover {
  box-shadow: 0 8px 36px #ea580c22;
  transform: translateY(-4px) scale(1.04);
  border: 2px solid #ea580c;
}

/* USP/benefity */
.usp-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.8rem;
  background: #fff7ed;
  border-radius: 15px;
  padding: 1.7rem 0.7rem 1.3rem 0.7rem;
  margin: 2rem 0 1.2rem 0;
  max-width: 950px;
  flex-wrap: wrap;
}

.usp-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 145px;
  flex: 1 1 160px;
  margin-bottom: 0.3rem;
}

.usp-icon {
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
  color: #ea580c;
  line-height: 1;
}

.usp-label {
  font-size: 1.07rem;
  color: #222;
  text-align: center;
  font-weight: 500;
  line-height: 1.35;
}

/* Google Maps sekce */
.google-maps-section {
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: 0 2px 16px #0001;
}

.google-link-card {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 15px;
  max-width: 500px;
  margin: 0 auto 2rem auto;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.google-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(234,88,12,0.15);
  border-color: #ea580c;
}

.google-btn {
  display: inline-block;
  background: #ea580c;
  color: white;
  padding: 1rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.google-btn:hover {
  background: #dc2626;
  transform: scale(1.05);
}

/* Reviews carousel */
.reviews-carousel {
  position: relative;
  margin: 2rem 0;
  overflow: hidden;
}

.reviews-container {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.reviews-container::-webkit-scrollbar {
  display: none;
}

.review-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  padding: 1.5rem;
  min-width: 300px;
  max-width: 300px;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: #ea580c;
}

.reviewer-info {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 1rem;
  background: #f3f4f6;
}

.reviewer-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.95rem;
}

.reviewer-platform {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.2rem;
}

.google-logo {
  font-weight: 700;
  color: #4285f4;
}

.review-stars {
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.review-text {
  color: #4b5563;
  line-height: 1.5;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.review-date {
  color: #9ca3af;
  font-size: 0.8rem;
}

.review-location-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: #ea580c;
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  z-index: 1;
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #6b7280;
}

.carousel-btn:hover {
  background: #ea580c;
  color: white;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: #ea580c;
  transform: scale(1.2);
}

/* Reviews disclaimer */
.reviews-disclaimer {
  text-align: center;
  margin-top: 1rem;
  color: #9ca3af;
  font-size: 0.8rem;
}

.why-choose-us {
  background: #fff7ed;
  padding: 2rem;
  border-radius: 15px;
  margin-top: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #059669;
}

.stat-label {
  color: #6b7280;
}

/* --- BAZAROVÉ TELEFONY --- */
.used-phones {
  padding: 1rem 0.5rem;
  background: #f9fafb;
  border-radius: 12px;
  margin: 0.5rem 0 0.4rem 0;
  box-shadow: 0 4px 22px #ea580c11;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.used-phones h3 {
  text-align: center;
  color: #ea580c;
  margin-bottom: 1.3rem;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  font-weight: 800;
}

.used-phones-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem 0.4rem;
  margin-bottom: 2rem;
}

.used-phone-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px #ea580c10;
  padding: 1.3rem 0.6rem;
  border: 1.5px solid #ececec;
  min-height: 140px;
  width: 410px;
  max-width: 450px;
  margin: 0 auto;
  transition: box-shadow 0.18s, border 0.18s;
}

.used-phone-item:hover {
  box-shadow: 0 8px 28px #ea580c1b;
  border: 1.5px solid #ea580c;
}

.phone-image {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: #f7f7fa;
  border-radius: 10px;
  box-shadow: 0 2px 10px #ea580c0a;
  margin-right: 0.5rem;
}

.phone-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.phone-desc {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.33;
  font-weight: 400;
}

.price {
  display: block;
  color: #ea580c;
  font-size: 1.13rem;
  font-weight: 800;
  margin-top: 0.2rem;
  letter-spacing: 0.02em;
}

.phones-disclaimer {
  font-size: 0.96rem;
  color: #888;
  margin-top: 0.5rem;
  text-align: center;
}

/* TABLET: 2 vedle sebe */
@media (max-width: 900px) {
  .used-phones {
    max-width: 99vw;
    padding: 0.5rem 0.2rem;
  }
  .used-phones-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
  }
  .used-phone-item {
    padding: 1rem 0.7rem;
    max-width: 97vw;
  }
  .phone-title { font-size: 1.07rem; }
  .phone-desc { font-size: 0.95rem; }
  .price { font-size: 1.03rem; }
  .used-phones h3 { font-size: 1.1rem; }
}

/* MOBIL: 1 na šířku */
@media (max-width: 600px) {
  .used-phones-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .used-phone-item {
    flex-direction: row;
    align-items: center;
    padding: 0.8rem 0.4rem;
    min-height: 0;
    max-width: 100vw;
  }
  .phone-image { width: 62px; height: 62px; }
  .phone-title { font-size: 0.98rem; }
  .phone-desc { font-size: 0.93rem; }
  .price { font-size: 0.96rem; }
  .used-phones h3 { font-size: 1.06rem; }
}

/* Extra malý mobil – méně mezer */
@media (max-width: 390px) {
  .used-phone-item { padding: 0.6rem 0.1rem; }
}

/* --- POBOČKY --- */
.branches {
  padding: 1.4rem 1rem 1rem 1rem;
  background: #fff;
  max-width: 980px;
  margin: 0.8rem auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 2px 14px #ea580c0b;
}
.branches h2 {
  text-align: center;
  margin-bottom: 1.1rem;
  color: #2d2d2d;
  letter-spacing: 0.03em;
  font-size: 1.45rem;
}
.branches-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.2rem;
}
.branch {
  flex: 1 1 295px;
  max-width: 365px;
  background: #f7f7fa;
  border-radius: 12px;
  padding: 1.2rem 1.1rem 0.8rem 1.1rem;
  font-size: 1rem;
  line-height: 1.47;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 14px #ea580c10;
  border: 1.3px solid #ececec;
  transition: box-shadow 0.21s, border 0.18s;
}
.branch:hover {
  box-shadow: 0 8px 28px #ea580c1a;
  border: 1.3px solid #ea580c55;
}
.branch-ico {
  color: #ea580c;
  font-size: 1.13rem;
  margin-right: 0.2rem;
}
.branch strong { color: #1f2937; }
.branch a { color: #ea580c; text-decoration: underline; transition: color 0.16s;}
.branch a:hover { color: #0c63e4; text-decoration: none;}
.branch img {
  margin-top: 1.1rem;
  margin-bottom: 0.6rem;
  border-radius: 7px;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.22s;
  box-shadow: 0 3px 18px #ea580c0a;
}
.branch img:hover { transform: scale(1.03); }

/* FOOTER */
footer {
  background: #f9f9f9;
  padding: 2.4rem 1rem 1.6rem 1rem;
  font-size: 0.8em;
  color: #444;
  text-align: center;
  border-top: 1px solid #eee;
  margin-top: 2.7rem;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 -2px 18px #ea580c09;
}
footer div { max-width: 880px; margin: 0 auto; }
footer p { margin: 0 0 1rem 0; }
footer hr {
  margin: 2.1rem auto 1.1rem auto;
  max-width: 220px;
  border: none;
  border-top: 1.5px solid #ddd;
}
footer a {
  color: #0c63e4;
  text-decoration: underline;
  transition: color 0.13s;
}
footer a:hover { color: #ea580c; }

/* Media Queries */
@media (max-width: 900px) {
  main { 
    padding: 1rem; 
  }
  
  .cta-row, .branches-row, .usp-row { 
    flex-direction: column; 
    gap: 1.2rem;
  }
  
  .cta-card { 
    min-width: unset; 
    min-height: 120px; 
    font-size: 1rem;
  }
  
  .branch { 
    max-width: 100%; 
  }
  
  .usp-row { 
    padding: 1rem 0.5rem; 
  }
  
  .stats-grid { 
    grid-template-columns: 1fr; 
  }
  
  .top-contact-content {
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .opening-hours, .contact-info {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .review-card {
    min-width: 280px;
    max-width: 280px;
  }
  
  .reviews-container {
    padding-left: 1rem;
  }
}

@media (max-width: 540px) {
  header { 
    padding: 1.1rem 0 0.5rem 0;
  }
  
  main { 
    padding: 0.5rem;
  }
  
  .cta-row { 
    gap: 1rem; 
  }
  
  .cta-card { 
    padding: 1.2rem 0.6rem; 
    font-size: 0.97rem;
  }
  
  h1 { 
    font-size: 1.1rem !important;
  }
  
  .usp-label { 
    font-size: 0.96rem; 
  }
  
  .branch { 
    font-size: 0.97rem;
  }
  
  .used-phones h3 { 
    font-size: 1.01rem;
  }
}
