/* ==========================================================================
   Общие стили
   ========================================================================== */
[v-cloak] {
  display: none;
}

.cta-button {
  display: inline-block;
  background-color: #059669; /* emerald-600 */
  color: white;
  padding: 0.9rem 2.5rem;
  border-radius: 9999px; /* rounded-full */
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.2);
}

.cta-button:hover {
  background-color: #047857; /* emerald-700 */
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(5, 150, 105, 0.3);
}

.cta-button-sm {
  background-color: #059669;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.cta-button-sm:hover {
  background-color: #047857;
}

.service-card {
  padding: 2rem;
  transition: all 0.3s ease-in-out;
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    background-color: #f0fdf4; /* green-50 */
    border-radius: 0.5rem;
  }
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.portfolio-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
}
.portfolio-label.before {
  background-color: rgba(239, 68, 68, 0.8); /* red-500 */
}
.portfolio-label.after {
  background-color: rgba(5, 150, 105, 0.8); /* emerald-600 */
}


/* ==========================================================================
   Модальные окна
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  color: #374151;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  width: 100%;
  max-width: 550px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

/* ==========================================================================
   Cookie Баннер
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background-color: #1f2937; /* gray-800 */
  color: #e5e7eb; /* gray-200 */
  border: 1px solid #374151; /* gray-700 */
  padding: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.cookie-banner-text {
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-banner-button {
  background-color: #059669;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.cookie-banner-button:hover {
  background-color: #047857;
}

/* ==========================================================================
   Адаптация для больших экранов
   ========================================================================== */
@media (min-width: 768px) {
  .modal-content {
    padding: 2.5rem;
  }
  .cookie-banner {
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    text-align: left;
    right: auto; /* Баннер не растягивается на всю ширину */
    max-width: 600px;
  }
}