/* Стили для страницы услуг */
.services-main {
    padding: 2rem 0 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: stretch;
}

/* Карточки услуг */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-card.featured {
    border-color: var(--p-brand);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}
.service-card.featured:hover { border-color: color-mix(in oklab, var(--p-brand), white 20%); }
.service-card.featured::before {
    content: "Популярно";
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--p-brand);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Иконки услуг */
.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--p-text-700);
    margin-bottom: 1rem;
    text-align: center;
}

.service-card > p {
    color: var(--p-text-500);
    line-height: 1.6;
    text-align: center;
    flex-grow: 1;
}

/* Список особенностей услуги */
.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.service-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #555;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--p-success);
    font-weight: bold;
}

/* Цены услуг */
.service-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--p-brand);
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9ff;
    border-radius: 10px;
}

.service-card .btn {
    width: 100%;
    text-align: center;
    padding: 0.875rem 1.5rem;
    margin-top: auto;
}

.service-card .btn:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--p-brand), white 25%);
  outline-offset: 2px;
}

/* Секция типов экранов */
.screen-types-section {
    background: var(--p-bg-alt);
    padding: 3rem 0;
}

.screen-types-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--p-text-700);
}

.screen-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.screen-type {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.screen-type:hover {
    transform: translateY(-3px);
}

.screen-image {
    font-size: 2.5rem;
}

.screen-type h3 {
    font-size: 1.3rem;
    color: var(--p-text-700);
}

.screen-type p {
    color: var(--p-text-500);
    margin-bottom: 1rem;
}

.screen-type-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.screen-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.screen-specs span {
    background: var(--p-brand);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Секция процесса работы */
.process-section {
    padding: 4rem 0;
    background: var(--p-bg);
}

.process-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--p-text-700);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--p-brand) 0%, var(--p-brand-2) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* === Wave подсветка цифр в "Как мы работаем" === */
.process-steps .step-number {
  position: relative;
  isolation: isolate;                 /* чтобы тени не “выползали” */
  transition: transform .25s ease, box-shadow .25s ease;
  /* подготовим, но по умолчанию пауза */
  animation: glowPulse 1.8s ease-in-out infinite;
  animation-play-state: paused;
  /* будем задавать задержку через CSS-переменную из JS */
  animation-delay: calc(var(--i, 0) * 0.35s);
}

/* активируем пульс */
.process-steps .step-number.is-lit {
  animation-play-state: running;
}

/* акцент при ховере на карточке шага */
.process-step:hover .step-number {
  transform: translateY(-2px) scale(1.04);
}

/* ключевые кадры мягкого свечения */
@keyframes glowPulse {
  0% {
    box-shadow:
      0 0 0 rgba(102,126,234,0),
      0 4px 15px rgba(102,126,234,.30);
    filter: drop-shadow(0 0 0 rgba(118,75,162,0));
  }
  50% {
    box-shadow:
      0 0 18px rgba(102,126,234,.55),
      0 8px 26px rgba(118,75,162,.45);
    filter: drop-shadow(0 0 8px rgba(255,240,180,.45));
  }
  100% {
    box-shadow:
      0 0 0 rgba(102,126,234,0),
      0 4px 15px rgba(102,126,234,.30);
    filter: drop-shadow(0 0 0 rgba(118,75,162,0));
  }
}

.process-step h3 {
    font-size: 1.2rem;
    color: var(--p-text-700);
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--p-text-500);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Секция призыва к действию */
.cta-section {
    background: linear-gradient(135deg, var(--p-brand) 0%, var(--p-brand-2) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.cta-buttons .btn {
    min-width: 280px;
    max-width: 350px;
    width: 100%;
    white-space: nowrap;
    padding: 1rem 2rem;
}
