html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  color: #221C2C;
  min-height: 100vh;
  background: linear-gradient(145deg, #fff 0%, #ede3fd 18%, #d1b2fa 42%, #9d5cf7 75%, #863fff 100%);
}

/* Top bar */
.top-contact-bar {
  background: transparent;
  color: #4e387d;
  font-size: 1rem;
  padding: 0.7rem 0 0.3rem 0;
  border-bottom: none;
}
.top-contact-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.opening-hours, .contact-info {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  flex-wrap: wrap;
}
.branch-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.status-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8fef58;
  box-shadow: 0 0 8px #8fef5890;
  display: inline-block;
}
.status-closed {
  background: #ff4444;
  box-shadow: 0 0 8px #ff444480;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #2d1868;
  font-weight: 700;
  text-decoration: none;
  font-size: 1em;
  transition: color 0.17s;
}
.contact-item:hover {
  color: #9d5cf7;
}
.contact-icon,
.contact-item svg {
  width: 1.1em;
  height: 1.1em;
  min-width: 16px;
  min-height: 16px;
  max-width: 24px;
  max-height: 24px;
  vertical-align: middle;
  fill: currentColor;
  opacity: 0.93;
}

/* Header */
header {
  text-align: center;
  background: transparent;
  box-shadow: none;
  padding: 2.2rem 0 1rem 0;
  margin-bottom: 0;
}
.logo img {
  max-width: 270px;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 1.5px 7px #3e246410);
}
.subtitle {
  color: #a78bfa;
  font-size: 1.17rem;
  margin-top: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 16px #fff, 0 1px 0 #9d5cf7a0;
  display: block;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

/* Main */
main {
  max-width: 1100px;
  margin: 2.2rem auto;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 6px 40px #9d5cf710;
  padding: 3rem 2rem 2.5rem 2rem;
  position: relative;
  z-index: 1;
}
main h1 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 2.4rem;
  font-weight: 900;
  color: #8a41e7;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-shadow: 0 1.5px 10px #d1b2fa22, 0 1px 0 #fff;
}

/* CTA Cards */
.cta-row {
  display: flex;
  justify-content: center;
  gap: 2.3rem;
  margin: 2.8rem 0;
  flex-wrap: wrap;
}
.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f7f3fd;
  border-radius: 18px;
  box-shadow: 0 5px 22px #c7a5ff1f;
  padding: 2rem 1.8rem 1.2rem 1.8rem;
  text-decoration: none;
  color: #382360;
  font-weight: 700;
  font-size: 1.18rem;
  transition: box-shadow 0.22s, transform 0.18s;
  min-width: 200px;
  border: 2px solid #eee0fa;
  position: relative;
  overflow: hidden;
}
.cta-card img {
  max-width: 250px;
  height: auto;
  object-fit: contain;
  border-radius: 13px;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 12px #9d5cf724;
}
.cta-card span {
  font-size: 1.15rem;
  letter-spacing: 0.3px;
  color: #8a41e7;
  font-weight: 800;
  margin-top: 0.5rem;
}
.cta-card:hover {
  box-shadow: 0 8px 38px #8a41e720, 0 2px 18px #d1b2fa60;
  border-color: #9d5cf7;
  transform: translateY(-3px) scale(1.027);
}

/* CTA tlačítko */
.cta-btn, .google-btn, .button, .btn {
  display: inline-block;
  background: linear-gradient(90deg,#b5e632 65%, #d6fc72 100%);
  color: #191b29;
  padding: 1.07rem 2.3rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.13rem;
  letter-spacing: 0.05em;
  border: none;
  transition: all 0.15s;
  box-shadow: 0 3px 15px #b5e63218;
  cursor: pointer;
  margin: 1.3rem auto 0 auto;
  text-transform: uppercase;
}
.cta-btn:hover, .google-btn:hover, .button:hover, .btn:hover {
  background: linear-gradient(90deg,#d6fc72 40%,#b5e632 100%);
  color: #8a41e7;
  transform: scale(1.045);
}

/* USP/benefity */
.usp-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  background: linear-gradient(90deg, #d9c8fa 0%, #a78bfa 100%);
  border-radius: 17px;
  padding: 2.2rem 1rem;
  margin: 2.3rem 0 2.5rem 0;
  flex-wrap: wrap;
  box-shadow: 0 5px 20px #d1b2fa13;
}
.usp-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  flex: 1 1 170px;
  text-align: center;
  color: #4c2b7a;
}
.usp-icon {
  font-size: 2.1rem;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 2px 8px #b292ff18);
}
.usp-label {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: #191b29;
  text-shadow: 0 1px 0 #fff6;
}

/* --- POUŽITÉ TELEFONY --- */
.used-phones {
  padding: 2.2rem 1rem 2.3rem 1rem;
  background: #faf7ff;
  border-radius: 21px;
  margin: 2.2rem 0 1.7rem 0;
  box-shadow: 0 3px 16px #a78bfa12;
}
.used-phones h2 {
  text-align: center;
  color: #8a41e7;
  margin-bottom: 2.1rem;
  font-size: 1.43rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  text-shadow: 0 1px 0 #fff, 0 3px 10px #fff8;
}
.used-phones-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 2rem;
  margin-bottom: 1.6rem;
}
.used-phone-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: #fff;
  border-radius: 13px;
  padding: 1.25rem 1rem;
  border: 2px solid #ece5fc;
  transition: all 0.22s;
  box-shadow: 0 2px 9px #b292ff13;
  min-width: 0;
}
.used-phone-item:hover {
  box-shadow: 0 8px 22px #b292ff20;
  border-color: #a78bfa;
  transform: translateY(-2px) scale(1.01);
}
.phone-image {
  width: 84px;
  height: 84px;
  object-fit: contain;
  background: #faf7ff;
  border-radius: 9px;
  padding: 7px;
  flex-shrink: 0;
}
.phone-info {
  flex: 1;
}
.phone-title {
  font-size: 1.04rem;
  font-weight: 700;
  color: #4c2b7a;
  margin-bottom: 0.26rem;
  line-height: 1.18;
}
.phone-desc {
  color: #706d85;
  font-size: 0.97rem;
  line-height: 1.4;
}
.price {
  display: block;
  color: #7ace3b;
  font-size: 1.12rem;
  font-weight: 900;
  margin-top: 0.24rem;
  letter-spacing: 0.02em;
}
.phones-disclaimer {
  font-size: 0.91rem;
  color: #928aaf;
  margin-top: 0.7rem;
  text-align: center;
}

/* Branches */
.branches {
  padding: 3rem 2rem;
  background: #fff;
  margin: 3rem 0;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(107, 70, 193, 0.08);
}

.branches h3 {
  text-align: center;
  margin-bottom: 2.5rem;
  color: #7c3aed;
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.branches-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

.branch {
  flex: 1 1 350px;
  max-width: 420px;
  background: linear-gradient(145deg, #f8f7fc, #fff);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 5px 25px rgba(107, 70, 193, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.branch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.branch:hover::before {
  transform: scaleX(1);
}

.branch:hover {
  box-shadow: 0 10px 40px rgba(107, 70, 193, 0.15);
  border-color: #7c3aed;
  transform: translateY(-5px);
}

.branch-header {
  margin-bottom: 1.5rem;
}

.branch-ico {
  color: #7c3aed;
  font-size: 1.2rem;
  margin-right: 0.3rem;
}

.branch strong {
  color: #2d2d2d;
}

.branch a {
  color: #7c3aed;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.branch a:hover {
  color: #9acd32;
  text-decoration: underline;
}

.branch img {
  margin: 1.5rem 0;
  border-radius: 15px;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(107, 70, 193, 0.1);
}

.branch img:hover {
  transform: scale(1.05);
}

/* Google Maps Section */
.google-maps-section {
  background: #f8f7fc;
  border-radius: 20px;
  padding: 3rem 2rem;
  margin: 3rem 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(107, 70, 193, 0.08);
}

.google-maps-section h4 {
  color: #7c3aed;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.google-link-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 20px;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  box-shadow: 0 5px 25px rgba(107, 70, 193, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.google-link-card:hover {
  transform: translateY(-3px);
  border-color: #7c3aed;
  box-shadow: 0 10px 40px rgba(107, 70, 193, 0.15);
}

.google-link-card h5 {
  color: #7c3aed;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.google-link-card p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* Loading state pro recenze */
#reviews-loading {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(0.98);
  }
}

#reviews-loading h4 {
  animation: spin 2s linear infinite;
  display: inline-block;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.google-btn {
  display: inline-block;
  background: #9acd32;
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(154, 205, 50, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.google-btn:hover {
  background: #88c226;
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(154, 205, 50, 0.4);
}

/* Reviews Container and Cards */
#reviews-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

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

.reviews-container {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #7c3aed #f1f1f1;
  -webkit-overflow-scrolling: touch; /* Pro plynulý scrolling na iOS */
}

.reviews-container::-webkit-scrollbar {
  height: 8px;
}

.reviews-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.reviews-container::-webkit-scrollbar-thumb {
  background: #7c3aed;
  border-radius: 10px;
}

.reviews-container::-webkit-scrollbar-thumb:hover {
  background: #6b46c1;
}

.review-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  padding: 2rem;
  min-width: 350px;
  max-width: 350px;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 20px rgba(107, 70, 193, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(107, 70, 193, 0.15);
  border-color: #7c3aed;
}

.reviewer-info {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f1f1;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 3px 10px rgba(107, 70, 193, 0.2);
  flex-shrink: 0;
}

.reviewer-details {
  flex: 1;
  min-width: 0; /* Zabránění přetečení textu */
}

.reviewer-name {
  font-weight: 700;
  color: #2d2d2d;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.review-stars {
  color: #fbbf24;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.review-text {
  color: #4b5563;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  min-height: 80px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.review-date {
  color: #9ca3af;
  font-size: 0.85rem;
  font-style: italic;
}

.review-location-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: #9acd32;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(154, 205, 50, 0.3);
  white-space: nowrap;
}

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

.carousel-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #7c3aed;
  font-size: 1.2rem;
  box-shadow: 0 2px 10px rgba(107, 70, 193, 0.1);
}

.carousel-btn:hover {
  background: #7c3aed;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(107, 70, 193, 0.3);
}

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

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

.carousel-dot.active {
  background: #7c3aed;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(107, 70, 193, 0.4);
}

/* Reviews disclaimer */
.reviews-disclaimer {
  text-align: center;
  margin-top: 2rem;
  color: #6b7280;
  font-size: 0.9rem;
  font-style: italic;
}

/* Footer */
footer {
  background: #ede9fa;
  padding: 3rem 1rem 2rem 1rem;
  font-size: 1.01rem;
  color: #7e6e99;
  text-align: center;
  margin-top: 4rem;
  border-top: none;
}
footer div {
  max-width: 900px;
  margin: 0 auto;
}
footer p {
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
}
footer strong {
  color: #4c2b7a;
}
footer hr {
  margin: 2.5rem auto 2rem auto;
  max-width: 250px;
  border: none;
  border-top: 2px solid #d1b2fa;
}
footer a {
  color: #8a41e7;
  text-decoration: none;
  transition: color 0.19s;
  font-weight: 600;
}
footer a:hover {
  color: #7ace3b;
  text-decoration: underline;
}

a { color: #8a41e7; transition: color 0.16s; }
a:hover { color: #7ace3b; }

/* Responsivita */
@media (max-width: 1100px) {
  main { padding: 1.2rem 0.4rem; }
  .cta-row, .usp-row, .branches-row, .used-phones-list, .reviews-list { flex-direction: column; gap: 1rem; }
  .cta-card { min-width: unset; }
  .used-phones-list { grid-template-columns: 1fr; }
  .reviews-list { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  main { padding: 1rem 0.2rem; margin: 0.7rem; }
  main h1 { font-size: 1.7rem; }
  .cta-row { gap: 1rem; }
  .branches-row { gap: 1rem; }
  .used-phones-list { grid-template-columns: 1fr; }
  .top-contact-content { justify-content: center; text-align: center; }
  .reviews-list { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 720px) {
  .cta-row, .usp-row { flex-direction: column; gap: 1rem; }
  .usp-row { padding: 1.2rem 0.5rem; }
  .cta-card { padding: 1.2rem 0.5rem; }
  .used-phone-item { flex-direction: column; text-align: center; }
  .phone-image { width: 70px; height: 70px; }
  .reviews-section, .used-phones { padding: 1.2rem 0.3rem; }
}
@media (max-width: 540px) {
  header { padding: 1.1rem 0 0.6rem 0; }
  main { padding: 0.7rem 0.1rem; border-radius: 10px; }
  main h1 { font-size: 1.02rem; }
  .cta-card { padding: 1rem 0.2rem; }
  .usp-label { font-size: 0.92rem; }
  .phone-title { font-size: 0.97rem; }
  .price { font-size: 0.99rem; }
  .branches h2 { font-size: 1.04rem; }
  .google-btn { padding: 0.8rem 2rem; font-size: 1rem; }
  .top-contact-bar { font-size: 0.88rem; }
}

.review-stars-img {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 24px;
  margin-bottom: 0.5rem;
  margin-top: 0.1rem;
  justify-content: flex-start;
}

.star-img {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px #ffd60035);
  margin: 0;
  padding: 0;
}

.star-img-empty {
  opacity: 0.2;
  filter: grayscale(0.85) brightness(1.5);
}

/* --- Google STAR RATING --- */
.review-stars-img {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 24px;
  margin: 0;
  padding: 0;
}

.star-img {
  width: 25px;
  height: 25px;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px #ffd60035);
  margin: 0;
  padding: 0;
}

.star-img-empty {
  opacity: 0.23;
  filter: grayscale(0.92) brightness(1.5);
}

/* ZAROVNÁNÍ ČÍSLA A HVĚZD V RÁMCI KARTY */
.google-link-card > div,
.review-card .review-stars {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

/* Číselné hodnocení vpravo od hvězdiček */
.google-link-card strong,
.review-card .review-score-number {
  font-size: 2.1rem;
  font-weight: 900;
  color: #383838;
  margin-left: 0.18em;
  line-height: 1;
  display: flex;
  align-items: center;
}