/* ============================================================
   SERVICES.CSS — стили страницы услуг
   Подключается после style.css и mobile.css
   ============================================================ */


/* ============================================================
   NAVBAR — активная ссылка (текущая страница) неактивна
   ============================================================ */
.navbar__link--active {
  color: #2ea865 !important;   /* зелёный, чуть темнее */
  pointer-events: none;        /* некликабельна */
  cursor: default;
  opacity: 0.65;
}
.navbar__link--active:hover {
  color: #2ea865 !important;
}


/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 28px;
}
.breadcrumb a {
  color: var(--accent);
  font-weight: 600;
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb__sep { color: var(--border); }


/* ============================================================
   HERO SECTION
   ============================================================ */
.srv-hero {
  padding: 110px 0 60px;
  background: #ffffff;
}
.srv-hero h1 { margin-bottom: 0; }
.srv-hero .section-intro { margin-bottom: 40px; }


/* ============================================================
   CATEGORY NAV
   ============================================================ */
.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.cat-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 22px 12px 14px;
  border-radius: 50px;
  border: 2px solid var(--border);
  color: var(--text-light);
  background: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cat-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-light);
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease;
}

.cat-nav__icon img {
  display: block;
  transition: transform 0.25s ease;
}

.cat-nav__label {
  position: relative;
  z-index: 1;
}

.cat-nav__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: inherit;
}

.cat-nav__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,150,90,0.18);
}

.cat-nav__btn:hover .cat-nav__icon {
  transform: scale(1.15) rotate(-8deg);
  background: rgba(200,150,90,0.15);
}

.cat-nav__btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 24px rgba(200,150,90,0.35);
}

.cat-nav__btn.active .cat-nav__icon {
  background: rgba(255,255,255,0.2);
}

.cat-nav__btn.active:hover {
  transform: translateY(-2px);
  color: #fff;
}


/* ============================================================
   SECTION WRAPPER
   ============================================================ */
.srv-section {
  padding: 80px 0;
}


/* ============================================================
   CATEGORY HEADER
   ============================================================ */
.srv-cat-header {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 8px;
}

.srv-cat-icon {
  font-size: 52px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  background: var(--accent-light);
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(200,150,90,0.12);
  cursor: default;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    background 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Блик при наведении */
.srv-cat-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.srv-cat-icon img {
  display: block;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.3s ease;
  position: relative;
  z-index: 1;
}

/* Наведение на весь заголовок — иконка оживает */
.srv-cat-header:hover .srv-cat-icon {
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 16px 36px rgba(200,150,90,0.28);
  background: #f5e6d0;
}

.srv-cat-header:hover .srv-cat-icon::before {
  opacity: 1;
}

.srv-cat-header:hover .srv-cat-icon img {
  transform: rotate(-10deg) scale(1.15);
  filter: drop-shadow(0 4px 8px rgba(200,150,90,0.4));
}

/* Каждая секция — своя анимация (чередуем) */
#websites .srv-cat-header:hover .srv-cat-icon img {
  transform: rotate(-10deg) scale(1.15);
}
#seo .srv-cat-header:hover .srv-cat-icon img {
  transform: rotate(360deg) scale(1.12);
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}
#marketing .srv-cat-header:hover .srv-cat-icon img {
  transform: translateY(-6px) scale(1.18);
}
#apps .srv-cat-header:hover .srv-cat-icon img {
  transform: rotate(15deg) scale(1.15);
}
#support .srv-cat-header:hover .srv-cat-icon img {
  transform: scale(1.25) rotate(-8deg);
}
#analytics .srv-cat-header:hover .srv-cat-icon img {
  transform: rotate(360deg) scale(1.1);
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}
#srv-pricing .srv-cat-header:hover .srv-cat-icon img {
  transform: translateY(-8px) rotate(5deg) scale(1.15);
}

/* Пульсирующая анимация в покое (subtle) */
@keyframes iconIdle {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-3px) scale(1.03); }
}

.srv-cat-icon {
  animation: iconIdle 3.5s ease-in-out infinite;
}

/* Стоп анимации покоя при наведении */
.srv-cat-header:hover .srv-cat-icon {
  animation: none;
}

.srv-cat-header .section-intro {
  margin-bottom: 0;
}


/* ============================================================
   SERVICES GRID
   ============================================================ */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}


/* ============================================================
   SERVICE CARD
   ============================================================ */
/* ============================================================
   SERVICE CARD — интерактивная карточка
   ============================================================ */
.srv-card {
  position: relative;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  overflow: hidden;
  transition:
    box-shadow 0.35s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.3s ease,
    background 0.3s ease;
}

/* Полоска сверху — появляется при hover/select */
.srv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark, #b07a3a));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 2;
}
.srv-card:hover::before,
.srv-card.selected::before { transform: scaleX(1); }

/* Hover */
.srv-card:hover {
  box-shadow: 0 16px 40px rgba(200,150,90,0.18);
  transform: translateY(-6px);
  border-color: var(--accent);
}

/* Featured */
.srv-card--featured {
  border-color: var(--accent);
  border-width: 2px;
  background: var(--accent-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}
.srv-card--featured:hover {
  box-shadow: 0 22px 48px rgba(200,150,90,0.26);
  transform: translateY(-10px);
}

/* Selected */
.srv-card.selected {
  border-color: var(--accent) !important;
  border-width: 2px !important;
  background: #fffaf5 !important;
  box-shadow: 0 20px 48px rgba(200,150,90,0.25) !important;
  transform: translateY(-8px) !important;
}
.srv-card.selected .srv-card__price {
  transform: scale(1.12) !important;
  color: var(--accent-dark, #b07a3a) !important;
  text-shadow: 0 2px 12px rgba(200,150,90,0.35);
}
.srv-card.selected::after {
  content: '✓ Выбрано';
  position: absolute;
  top: -11px;
  right: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.05em;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 12px rgba(200,150,90,0.35);
  animation: badgeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 5;
}
@keyframes badgeIn {
  from { opacity: 0; transform: translateY(8px) scale(0.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Unselected (остальные тускнеют) */
.srv-card.unselected {
  opacity: 0.55;
  border-color: var(--border) !important;
  border-width: 1px !important;
  box-shadow: none !important;
  transform: translateY(0) !important;
  background: #fff !important;
}
.srv-card.unselected:hover {
  opacity: 0.8;
  transform: translateY(-3px) !important;
  border-color: var(--accent) !important;
}

/* ── Badge ── */
.srv-card__badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(200,150,90,0.3);
  z-index: 5;
}

/* ── Head & Price ── */
.srv-card__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.srv-card__title {
  font-family: 'Lora', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  transition: color 0.3s ease;
}
.srv-card:hover .srv-card__title { color: var(--accent-dark, #b07a3a); }

.srv-card__price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Poppins', sans-serif;
  display: inline-block;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.3s ease,
    text-shadow 0.3s ease;
}
.srv-card:hover .srv-card__price {
  transform: scale(1.1);
  color: var(--accent-dark, #b07a3a);
  text-shadow: 0 3px 10px rgba(200,150,90,0.3);
}

/* ── Desc ── */
.srv-card__desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
  flex-grow: 0;
  transition: color 0.3s ease;
}
.srv-card:hover .srv-card__desc { color: var(--text); }

/* ── List ── */
.srv-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}
.srv-card__list li {
  font-size: 13px;
  color: var(--text-light);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
  transition: color 0.3s ease, transform 0.2s ease;
}
.srv-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.25s ease;
}
.srv-card:hover .srv-card__list li { color: var(--text); }
.srv-card:hover .srv-card__list li::before { transform: scale(1.2); }

/* ── Tech ── */
.srv-card__tech {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--accent);
  text-transform: uppercase;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  transition: border-color 0.3s ease;
}
.srv-card:hover .srv-card__tech { border-top-color: rgba(200,150,90,0.3); }

/* ── Button ── */
.srv-card .btn {
  align-self: flex-start;
  font-size: 13px;
  padding: 10px 20px;
  width: 100%;
  justify-content: center;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}
.srv-card .btn-secondary { width: 100%; }


/* ============================================================
   CTA SECTION (inherit from index.php)
   ============================================================ */
.bg-dark.cta-section {
  background: #faf8f5;
}
.cta-sub {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.75;
}
.cta-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
}
.cta-online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #43C97E;
  box-shadow: 0 0 0 2px rgba(67,201,126,0.3);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 2px rgba(67,201,126,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(67,201,126,0); }
}


/* ============================================================
   CALCULATOR
   ============================================================ */
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.calc-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc-group__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.calc-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.2s;
}

.calc-option input { display: none; }

.calc-option__check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.calc-option input[type="checkbox"] ~ .calc-option__check {
  border-radius: 4px;
}

.calc-option input:checked ~ .calc-option__check {
  border-color: var(--accent);
  background: var(--accent);
}

.calc-option input:checked ~ .calc-option__check::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
}

.calc-option input[type="checkbox"]:checked ~ .calc-option__check::after {
  border-radius: 1px;
  inset: 2px 3px;
  background: transparent;
  border: 2px solid #fff;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
  top: 3px;
}

.calc-option__name {
  flex: 1;
  font-size: 14px;
  color: var(--text-light);
  transition: color 0.2s;
}

.calc-option input:checked ~ .calc-option__check ~ .calc-option__name {
  color: var(--text);
  font-weight: 600;
}

.calc-option__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* ── Результат — sticky ── */
.calc-result {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}

.calc-result__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.calc-result__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-result__list li {
  font-size: 13px;
  color: var(--text-light);
  padding-left: 16px;
  position: relative;
}

.calc-result__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.calc-result__empty {
  color: var(--text-light) !important;
  font-style: italic;
}

.calc-result__empty::before { display: none !important; }

.calc-result__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 2px solid var(--border);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.calc-result__total span:last-child {
  font-size: 22px;
  color: var(--accent);
}

.calc-result__note {
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .calc-wrap {
    grid-template-columns: 1fr;
  }
  .calc-result {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .calc-result { padding: 20px 16px; }
}
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: background var(--transition), transform var(--transition);
}
#back-to-top:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}
#back-to-top.visible { display: flex; }
#back-to-top.show { display: flex; }


/* ============================================================
   RESPONSIVE — ПЛАНШЕТ (≤ 1200px)
   ============================================================ */
@media (max-width: 1200px) {
  .srv-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .srv-grid { grid-template-columns: repeat(2, 1fr); }
  .srv-cat-icon { width: 68px; height: 68px; border-radius: 18px; font-size: 40px; }
}


/* ============================================================
   RESPONSIVE — МОБИЛЬНЫЙ (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

  .srv-hero { padding: 90px 0 48px; }
  .srv-section { padding: 56px 0; }

  .cat-nav { gap: 8px; }
  .cat-nav__btn { font-size: 12px; padding: 8px 14px; }

  .srv-cat-header { flex-direction: column; gap: 12px; }
  .srv-cat-icon { width: 58px; height: 58px; border-radius: 16px; font-size: 36px; }

  .srv-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .srv-card { padding: 24px 20px 20px; }
  .srv-card__title { font-size: 16px; }
  .srv-card__price { font-size: 18px; }
}


/* ============================================================
   RESPONSIVE — МАЛЕНЬКИЙ МОБИЛЬНЫЙ (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .srv-hero { padding: 80px 0 40px; }
  .breadcrumb { font-size: 12px; }
  .cat-nav__btn { font-size: 11px; padding: 7px 12px; }
}


/* ── PRICING PLANS ── */
.srv-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  align-items: start;
}

.srv-plan {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px 32px;
  position: relative;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.srv-plan:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.srv-plan--popular {
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(200,150,90,0.2);
  transform: translateY(-8px);
}

.srv-plan--popular:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 48px rgba(200,150,90,0.28);
}

.srv-plan__badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 20px;
  border-radius: 50px;
  white-space: nowrap;
}

.srv-plan__name {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.srv-plan__sub {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 20px;
}

.srv-plan__price {
  margin-bottom: 24px;
  line-height: 1;
}

.srv-plan__price span {
  font-family: 'Poppins', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.srv-plan__price em {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  font-style: normal;
  margin-left: 4px;
}

.srv-plan__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.srv-plan__list li {
  font-size: 14px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.srv-plan__list li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

.srv-plan__list li.yes {
  color: var(--text-dark);
}

.srv-plan__list li.yes::before {
  background-color: rgba(200,150,90,0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5l2.5 2.5 4.5-4.5' stroke='%23c8965a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

.srv-plan__list li.no {
  color: #bbb;
  text-decoration: line-through;
}

.srv-plan__list li.no::before {
  background-color: #f5f5f5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.5 2.5l5 5M7.5 2.5l-5 5' stroke='%23ccc' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.srv-plan__chosen {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.srv-plan__chosen.visible {
  opacity: 1;
}

@media (max-width: 900px) {
  .srv-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .srv-plan--popular {
    transform: none;
    order: -1;
  }
}


/* ============================================================
   PRICING CARDS (тарифы) — hover, selected, unselected
   ============================================================ */
#srv-pricing .pricing-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
#srv-pricing .pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 48px rgba(200,150,90,0.18);
  border-color: var(--accent);
}
#srv-pricing .pricing-card:hover .pricing-card__price {
  transform: scale(1.08);
}
#srv-pricing .pricing-card__price {
  transition: transform 0.3s ease;
}
#srv-pricing .pricing-card--featured {
  transform: translateY(-8px);
}
#srv-pricing .pricing-card--featured:hover {
  transform: translateY(-16px);
  box-shadow: 0 24px 56px rgba(200,150,90,0.28);
  background: #fffaf5;
}
#srv-pricing .pricing-card--featured.unselected {
  border-color: var(--border);
  border-width: 1px;
  box-shadow: none;
  transform: translateY(0);
}
#srv-pricing .pricing-card.selected {
  transform: translateY(-12px);
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 24px 56px rgba(200,150,90,0.25);
  background: #fffaf5;
}
#srv-pricing .pricing-card.selected .pricing-card__price {
  transform: scale(1.08);
}
#srv-pricing .pricing-card.selected::after {
  content: '✓ Выбран';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.05em;
}


/* ============================================================
   PRICING CARDS — переопределяем style.css
   ============================================================ */
#srv-pricing .pricing-card {
  cursor: pointer !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease !important;
}
#srv-pricing .pricing-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 20px 48px rgba(200,150,90,0.18) !important;
  border-color: var(--accent) !important;
}
#srv-pricing .pricing-card:hover .pricing-card__price {
  transform: scale(1.08) !important;
}
#srv-pricing .pricing-card__price {
  transition: transform 0.3s ease !important;
}
#srv-pricing .pricing-card--featured {
  transform: translateY(-8px) !important;
}
#srv-pricing .pricing-card--featured:hover {
  transform: translateY(-16px) !important;
  box-shadow: 0 24px 56px rgba(200,150,90,0.28) !important;
  background: #fffaf5 !important;
}
#srv-pricing .pricing-card--featured.unselected {
  border-color: var(--border) !important;
  border-width: 1px !important;
  box-shadow: none !important;
  transform: translateY(0) !important;
}
#srv-pricing .pricing-card.selected {
  transform: translateY(-12px) !important;
  border-color: var(--accent) !important;
  border-width: 2px !important;
  box-shadow: 0 24px 56px rgba(200,150,90,0.25) !important;
  background: #fffaf5 !important;
}
#srv-pricing .pricing-card.selected .pricing-card__price {
  transform: scale(1.08) !important;
}
#srv-pricing .pricing-card.selected::after {
  content: '✓ Выбран';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.05em;
}


/* ============================================================
   TYPEWRITER — Hero
   ============================================================ */
/* ── Typewriter: строки скрыты до старта JS ── */
.srv-hero__title .srv-typewriter-line {
  opacity: 0;
  visibility: hidden;
}
.srv-hero__title .srv-typewriter-line[data-typed] {
  opacity: 1;
  visibility: visible;
}
.srv-typewriter-accent { /* наследует стиль <em> страницы */ }

/* Мигающий курсор */
.srv-typewriter-cursor {
  display: inline-block;
  color: var(--accent, #c8923a);
  font-weight: 300;
  margin-left: 2px;
  opacity: 0;
  animation: srvTwBlink 0.75s step-end infinite;
}
.srv-typewriter-cursor.active  { opacity: 1; }
.srv-typewriter-cursor.done    { animation: srvTwFadeOut 0.4s ease 1.2s forwards; }

@keyframes srvTwBlink   { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes srvTwFadeOut { to{opacity:0} }

/* Элементы после заголовка — скрыты до окончания печати */
.srv-hero-after {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.srv-hero-after.srv-hero-after--visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   FAQ ACCORDION
   ============================================================ */
/* ── FAQ Accordion ── */
      .faq-accordion { border-top: 1px solid rgba(0,0,0,0.08); }

      .faq-item { border-bottom: 1px solid rgba(0,0,0,0.08); }

      .faq-item__btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        width: 100%;
        padding: 22px 4px;
        background: none;
        border: none;
        cursor: pointer;
        text-align: left;
        font-size: 17px;
        font-weight: 600;
        color: var(--text, #1a1a1a);
        line-height: 1.4;
        transition: color 0.2s;
      }
      .faq-item__btn:hover { color: var(--accent, #c8923a); }

      /* Иконка + / × */
      .faq-item__icon {
        flex-shrink: 0;
        position: relative;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        border: 2px solid currentColor;
        transition: transform 0.35s ease, border-color 0.2s;
      }
      .faq-item__icon::before,
      .faq-item__icon::after {
        content: '';
        position: absolute;
        top: 50%; left: 50%;
        width: 10px; height: 2px;
        background: currentColor;
        border-radius: 2px;
        transform: translate(-50%, -50%);
        transition: transform 0.35s ease, opacity 0.2s;
      }
      .faq-item__icon::after {
        transform: translate(-50%, -50%) rotate(90deg);
      }

      /* Открытое состояние */
      .faq-item__btn[aria-expanded="true"] { color: var(--accent, #c8923a); }
      .faq-item__btn[aria-expanded="true"] .faq-item__icon {
        transform: rotate(45deg);
        border-color: var(--accent, #c8923a);
      }

      /* Тело — анимация через max-height */
      .faq-item__body {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.38s ease;
      }
      .faq-item__body > p {
        overflow: hidden;
        margin: 0;
        padding-bottom: 0;
        font-size: 15px;
        line-height: 1.7;
        color: var(--text-muted, #555);
        transition: padding-bottom 0.38s ease;
      }
      .faq-item__body.open {
        grid-template-rows: 1fr;
      }
      .faq-item__body.open > p {
        padding-bottom: 22px;
      }
/* ============================================================
   SRV-CARD — полный фарш анимации (как ws-stack-card / flip-wrap)
   ============================================================ */

@keyframes srv-float {
  0%,100% { transform: translateY(0px) scale(1); }
  30%     { transform: translateY(-7px) scale(1.01); }
  60%     { transform: translateY(-4px) scale(1.007); }
}
@keyframes srv-glow {
  0%,100% { box-shadow: 0 2px 8px rgba(200,150,90,0), 0 0 0 2px transparent; }
  50%     { box-shadow: 0 10px 36px rgba(200,150,90,.2), 0 0 0 2px rgba(200,150,90,.15); }
}
@keyframes srv-shine {
  0%   { left:-80%; opacity:0; }
  8%   { opacity:1; }
  48%  { left:130%; opacity:.45; }
  49%  { opacity:0; }
  100% { left:130%; opacity:0; }
}
@keyframes srv-border-pulse {
  0%,100% { border-color: var(--border); }
  50%     { border-color: rgba(200,150,90,.4); }
}
@keyframes srv-price-pulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.04); text-shadow: 0 0 16px rgba(200,150,90,.3); }
}
@keyframes srv-list-wave {
  0%,100% { color: var(--text-light); }
  50%     { color: var(--text); }
}

/* Анимация появления */
.srv-card {
  animation: srv-float 5.5s ease-in-out infinite, srv-glow 4s ease-in-out infinite, srv-border-pulse 4.5s ease-in-out infinite;
}

/* Разные задержки в каждой сетке */
.srv-grid .srv-card:nth-child(1)  { animation-delay: 0s,    0s,    0s;    }
.srv-grid .srv-card:nth-child(2)  { animation-delay: .5s,   .4s,   .3s;   }
.srv-grid .srv-card:nth-child(3)  { animation-delay: 1s,    .8s,   .6s;   }
.srv-grid .srv-card:nth-child(4)  { animation-delay: 1.5s,  1.2s,  .9s;   }
.srv-grid .srv-card:nth-child(5)  { animation-delay: 2s,    1.6s,  1.2s;  }
.srv-grid .srv-card:nth-child(6)  { animation-delay: 2.5s,  2s,    1.5s;  }
.srv-grid .srv-card:nth-child(7)  { animation-delay: 3s,    2.4s,  1.8s;  }
.srv-grid .srv-card:nth-child(8)  { animation-delay: 3.5s,  2.8s,  2.1s;  }

/* Блик скользит */
.srv-card::after {
  content: '' !important;
  position: absolute !important;
  top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,220,150,.1), transparent);
  transform: skewX(-15deg);
  pointer-events: none; z-index: 1;
  animation: srv-shine 7s ease-in-out infinite;
}
.srv-grid .srv-card:nth-child(2)::after  { animation-delay: 1s; }
.srv-grid .srv-card:nth-child(3)::after  { animation-delay: 2s; }
.srv-grid .srv-card:nth-child(4)::after  { animation-delay: 3s; }
.srv-grid .srv-card:nth-child(5)::after  { animation-delay: 4s; }
.srv-grid .srv-card:nth-child(6)::after  { animation-delay: 5s; }
.srv-grid .srv-card:nth-child(7)::after  { animation-delay: 6s; }
.srv-grid .srv-card:nth-child(8)::after  { animation-delay: .5s; }

/* Цена дышит */
.srv-card__price {
  animation: srv-price-pulse 3.5s ease-in-out infinite;
}
.srv-grid .srv-card:nth-child(2) .srv-card__price { animation-delay: .5s; }
.srv-grid .srv-card:nth-child(3) .srv-card__price { animation-delay: 1s; }
.srv-grid .srv-card:nth-child(4) .srv-card__price { animation-delay: 1.5s; }

/* Список пунктов светлеет волной */
.srv-card__list li {
  animation: srv-list-wave 4s ease-in-out infinite;
}
.srv-card__list li:nth-child(2) { animation-delay: .3s; }
.srv-card__list li:nth-child(3) { animation-delay: .6s; }
.srv-card__list li:nth-child(4) { animation-delay: .9s; }

/* Hover — усиливаем и останавливаем float */
.srv-card:hover {
  animation: none !important;
}
.srv-card:hover::after {
  animation: srv-shine .8s ease-in-out infinite !important;
}

/* Выбранная — без float */
.srv-card.selected,
.srv-card.unselected {
  animation: none !important;
}

/* ── CAT-NAV — бейджи с pulse ── */
@keyframes cat-nav-pulse {
  0%,100% { box-shadow: 0 6px 24px rgba(200,150,90,.35); }
  50%     { box-shadow: 0 8px 32px rgba(200,150,90,.55), 0 0 0 4px rgba(200,150,90,.15); }
}
@keyframes cat-nav-icon-dance {
  0%,100% { transform: scale(1) rotate(0deg); }
  40%     { transform: scale(1.15) rotate(-8deg); }
  70%     { transform: scale(1.08) rotate(4deg); }
}

.cat-nav__btn.active {
  animation: cat-nav-pulse 2.5s ease-in-out infinite;
}
.cat-nav__btn .cat-nav__icon {
  animation: cat-nav-icon-dance 4s ease-in-out infinite;
}
.cat-nav__btn:nth-child(2) .cat-nav__icon { animation-delay: .5s; }
.cat-nav__btn:nth-child(3) .cat-nav__icon { animation-delay: 1s; }
.cat-nav__btn:nth-child(4) .cat-nav__icon { animation-delay: 1.5s; }
.cat-nav__btn:nth-child(5) .cat-nav__icon { animation-delay: 2s; }
.cat-nav__btn:nth-child(6) .cat-nav__icon { animation-delay: 2.5s; }

/* ── SRV-CAT-ICON — idle animation уже есть, усиливаем ── */
@keyframes iconIdlePlus {
  0%,100% { transform: translateY(0) scale(1) rotate(0deg); box-shadow: 0 4px 16px rgba(200,150,90,.12); }
  25%     { transform: translateY(-4px) scale(1.04) rotate(-2deg); box-shadow: 0 8px 28px rgba(200,150,90,.22); }
  60%     { transform: translateY(-2px) scale(1.02) rotate(1deg); box-shadow: 0 6px 20px rgba(200,150,90,.18); }
}
.srv-cat-icon {
  animation: iconIdlePlus 3.5s ease-in-out infinite !important;
}
