﻿.sluzby {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  position: relative;
  transition: var(--trans);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--red), var(--red-bright));
  transition: var(--trans);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card.featured {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  border-color: transparent;
}

.service-card.featured h3,
.service-card.featured p {
  color: var(--white);
}

.service-card.featured p {
  opacity: 0.86;
}

.service-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: rgba(255, 255, 255, 0.24);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-light);
  color: var(--red);
  font-size: 1.45rem;
  margin-bottom: 20px;
}

.service-card.featured .service-icon {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.service-card p {
  color: var(--gray);
  font-size: 0.92rem;
}

.service-calc {
  margin-top: 64px;
  padding: 46px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 10%, rgba(225, 6, 0, 0.12), transparent 42%),
    radial-gradient(circle at 94% 100%, rgba(225, 6, 0, 0.08), transparent 40%),
    linear-gradient(135deg, #fff9f8 0%, #ffffff 50%, #fff5f4 100%);
  border: 2px solid #f5dcd8;
  box-shadow: 0 24px 60px rgba(122, 0, 0, 0.12), inset 0 1px 0 rgba(255,255,255,0.8);
}

.service-calc-header {
  max-width: 760px;
  margin-bottom: 38px;
}

.service-calc-header h3 {
  color: #2d0a0a;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-top: 12px;
}

.service-calc-header p {
  color: #6e504d;
  margin-top: 8px;
}

.service-calc-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
}

.service-calc-panel {
  border-radius: 24px;
  border: 2px solid #f0d5d2;
  background: linear-gradient(135deg, var(--white) 0%, #fffbfa 100%);
  padding: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.95);
}

.service-calc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-calc .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-calc .form-group label {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
  color: #4a2623;
  margin-bottom: 2px;
}

.service-calc .form-group input,
.service-calc .form-group select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 2px solid #efd5d0;
  background: #ffffff;
  padding: 12px 16px;
  color: #2d0a0a;
  font-weight: 500;
  outline: none;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-calc .form-group input:focus,
.service-calc .form-group select:focus {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 5px rgba(225, 6, 0, 0.12), 0 8px 16px rgba(225, 6, 0, 0.15);
  transform: translateY(-2px);
}

.service-calc-range {
  margin-top: 24px;
  border-radius: 18px;
  border: 2px solid #f0d5d0;
  background: linear-gradient(135deg, #fff9f8 0%, #fffbfa 100%);
  padding: 18px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
}

.service-calc-range-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.service-calc-range-head label {
  color: #5a3733;
  font-size: 0.88rem;
  font-weight: 700;
}

.service-calc-range-head strong {
  color: var(--red-dark);
  font-size: 1.15rem;
  font-weight: 800;
}

.service-calc-range input[type="range"] {
  width: 100%;
  accent-color: var(--red);
}

.service-calc-presets {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.service-calc-chip {
  border: 2px solid #ead5d0;
  color: #8d1e17;
  background: linear-gradient(135deg, #ffffff 0%, #fffbfa 100%);
  font-size: 0.82rem;
  font-weight: 750;
  border-radius: 999px;
  padding: 10px 18px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(225, 6, 0, 0.08);
}

.service-calc-chip:hover,
.service-calc-chip.active {
  transform: translateY(-4px);
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(225, 6, 0, 0.3);
}

.service-calc-panel-results {
  background: linear-gradient(135deg, #ffffff 0%, #fefcfb 50%, #fff8f7 100%);
  border-color: #f0d5d0;
}

.service-calc-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.service-calc-stat {
  border-radius: 16px;
  border: 2px solid #f0d8d3;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,250,248,0.8));
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.service-calc-stat span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a6360;
  font-weight: 800;
}

.service-calc-stat strong {
  color: #2d0a0a;
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  font-weight: 850;
  line-height: 1.1;
}

.service-calc-insight {
  margin-top: 18px;
  border-radius: 16px;
  border: 2px solid #f5d5d0;
  background: linear-gradient(135deg, #fff7f6, #fffafb);
  color: #6b2820;
  padding: 16px 18px;
  font-weight: 650;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(225, 6, 0, 0.08);
}

.service-calc-summary {
  margin-top: 14px;
  color: #6b504a;
  font-size: 0.92rem;
  font-weight: 500;
}

.service-calc-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.service-calc-actions .btn {
  min-height: 48px;
  font-weight: 750;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(225, 6, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-calc-actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(225, 6, 0, 0.25);
}

.service-calc-actions .btn i {
  margin-right: 8px;
}

.service-calc-feedback {
  margin-top: 18px;
  border-radius: 14px;
  border: 1px solid #f0d6d0;
  background: linear-gradient(135deg, #fffaf8, #fffdfd);
  color: #6b4038;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

.service-calc-feedback.error {
  border-color: #f1b5b0;
  background: #fff3f1;
  color: #8b2f2f;
}

.service-calc-feedback.success {
  border-color: #d4e9dc;
  background: #f4fdf7;
  color: #2f6b45;
}

.service-product-card {
  margin-top: 18px;
  border-radius: 18px;
  border: 1px solid #f0d6d0;
  background: linear-gradient(135deg, #fffdfd 0%, #fff6f4 100%);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.service-product-card img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #f0d6d0;
}

.service-product-card .service-product-meta {
  display: grid;
  gap: 8px;
  color: #5c352d;
  font-size: 0.95rem;
}

.service-product-card .service-product-meta strong {
  color: #2d0a0a;
  font-size: 1rem;
}

.service-product-card a {
  color: var(--red);
  font-weight: 700;
}

.service-product-card-placeholder {
  color: #7f625d;
  font-size: 0.95rem;
  font-weight: 600;
}

.service-calc-stat.updated {
  animation: calcPulse 0.55s ease;
}

@keyframes calcPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.16); }
  50% { transform: scale(1.01); box-shadow: 0 0 0 10px rgba(225, 6, 0, 0.06); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 6, 0, 0); }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .service-card {
    padding: 30px 22px;
  }

  .service-calc {
    padding: 22px;
  }

  .service-calc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    border-radius: 20px;
    padding: 24px 18px;
  }

  .service-icon {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
    margin-bottom: 14px;
  }

  .service-card h3 {
    font-size: 1.05rem;
  }

  .service-card p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .service-calc {
    margin-top: 38px;
    border-radius: 20px;
    padding: 16px;
  }

  .service-calc-panel {
    border-radius: 16px;
    padding: 16px;
  }

  .service-calc-form-grid,
  .service-calc-results-grid {
    grid-template-columns: 1fr;
  }

  .service-calc-actions {
    flex-direction: column;
  }

  .service-calc-actions .btn {
    width: 100%;
  }
}
