/* Прайм — стили страниц услуг */

/* ─── Секции ─── */
.service-section {
  padding: 60px 0;
}
.service-section--alt {
  background-color: #f8f9fa;
}
@media (max-width: 767.98px) {
  .service-section {
    padding: 40px 0;
  }
}

/* ─── Вводный текст секции ─── */
.section-intro {
  font-size: 1.125rem;
  color: #6c757d;
  max-width: 800px;
  margin-bottom: 2rem;
}

/* ─── Hero услуги ─── */
.service-hero__text {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 800px;
}
.service-hero__text p {
  margin-bottom: 1rem;
}

/* ─── Карточки услуг ─── */
.service-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  height: 100%;
  transition: box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.service-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.service-card__icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: block;
}
.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ─── Сравнение (конструктор vs своё) ─── */
.comparison-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  height: 100%;
}
.comparison-card--con {
  background-color: #fef2f2;
}
.comparison-card--pro {
  background-color: #f0fdf4;
}
.comparison-card h3 {
  font-size: 1.125rem;
}
.comparison-card h3 i {
  margin-right: 0.5rem;
}
.comparison-card--con h3 i {
  color: #dc3545;
}
.comparison-card--pro h3 i {
  color: #198754;
}
.comparison-card ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
}
.comparison-card li {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ─── Таймлайн ─── */
.service-timeline {
  position: relative;
  padding-left: 60px;
}
.service-timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-border);
}
.service-timeline__item {
  position: relative;
  margin-bottom: 2rem;
}
.service-timeline__item:last-child {
  margin-bottom: 0;
}
.service-timeline__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  position: absolute;
  left: -60px;
  top: 0;
  z-index: 1;
}
.service-timeline__item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.service-timeline__item p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}
@media (max-width: 767.98px) {
  .service-timeline {
    padding-left: 50px;
  }
  .service-timeline::before {
    left: 15px;
  }
  .service-timeline__number {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
    left: -50px;
  }
}

/* ─── Таблица цен ─── */
.pricing-table thead {
  background-color: var(--color-accent);
  color: #fff;
}
.pricing-table thead th {
  border: none;
  font-weight: 600;
}
.pricing-table td,
.pricing-table th {
  padding: 12px 16px;
  vertical-align: middle;
}
.pricing-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}
.price-note {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 1rem;
}

/* ─── FAQ ─── */
.service-faq .accordion-item {
  border: none;
  border-bottom: 1px solid var(--color-border);
}
.service-faq .accordion-item:last-child {
  border-bottom: none;
}
.service-faq .accordion-button {
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1rem 0;
  background: transparent;
}
.service-faq .accordion-button:not(.collapsed) {
  color: var(--color-accent);
  background: transparent;
  box-shadow: none;
}
.service-faq .accordion-button:focus {
  box-shadow: none;
}
.service-faq .accordion-button::after {
  flex-shrink: 0;
}
.service-faq .accordion-body {
  padding: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ─── CTA услуги ─── */
.service-cta {
  background-color: #212529;
  color: #fff;
  padding: 60px 0;
}
.service-cta h2 {
  color: #fff;
}
.service-cta p {
  color: rgba(255,255,255,0.85);
  max-width: 600px;
}
.service-cta .btn-primary {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  padding: 10px 32px;
}
.service-cta .btn-primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}
.service-cta input.form-control {
  border-radius: 8px;
  padding: 10px 16px;
}
@media (max-width: 767.98px) {
  .service-cta {
    padding: 40px 0;
  }
}

/* ─── Блок-акцент (кейс в тексте) ─── */
.case-highlight {
  border-left: 4px solid var(--color-accent);
  background-color: var(--color-surface);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}
.case-highlight h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.case-highlight p {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
.case-highlight .card-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
}
.case-highlight .card-link:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

/* ─── Таблица сравнения ─── */
.comparison-table thead {
  background-color: var(--color-accent);
  color: #fff;
}
.comparison-table thead th {
  border: none;
  font-weight: 600;
}
.comparison-table td,
.comparison-table th {
  padding: 12px 16px;
  vertical-align: top;
}
.comparison-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

/* ─── Кросс-продажа (Директ и т.п.) ─── */
.service-crosssell {
  background-color: #f8f0f3;
  padding: 40px 0;
}
.service-crosssell h2 {
  color: var(--color-text);
}

/* ─── Warning-карточки (без сопровождения) ─── */
.warning-card {
  background-color: #fef2f2;
  border-radius: 12px;
  padding: 24px;
  height: 100%;
}
.warning-card__icon {
  font-size: 2rem;
  color: #dc3545;
  margin-bottom: 1rem;
  display: block;
}
.warning-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.warning-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ─── Карточка модели (рекомендованная) ─── */
.model-card--recommended {
  border-color: var(--color-accent);
  border-width: 2px;
}

/* ─── Нейтральные карточки сравнения (Директ vs SEO и т.п.) ─── */
.comparison-card--neutral {
  background-color: #f8f9fa;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  height: 100%;
}
.comparison-card--neutral h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}
.comparison-card--neutral p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}
.comparison-card--neutral p:last-child {
  margin-bottom: 0;
}

/* ─── Модалка аудита ─── */
#auditModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
#auditModal .modal-header { padding: 24px 24px 0; }
#auditModal .modal-body { padding: 16px 24px 24px; overflow: visible; }
#auditModal .wpcf7-form { overflow: visible; }
#auditModal .cf7-consent { word-break: break-word; }

.modal-messengers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.modal-messengers a {
    display: inline-flex;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.modal-messengers a:hover { opacity: 1; }

/* ─── CTA мессенджеры ─── */
.service-cta__messengers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.service-cta__messengers span { opacity: 0.7; font-size: 0.9rem; }
.service-cta__messengers a {
    display: inline-flex;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.service-cta__messengers a:hover { opacity: 1; }

/* ─── CF7 стилизация ─── */
.cf7-form .wpcf7-form-control {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
}
.cf7-form .wpcf7-acceptance .wpcf7-form-control,
.cf7-form .wpcf7-form-control.wpcf7-acceptance {
    width: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: inherit;
    box-shadow: none;
}
.cf7-form .wpcf7-form-control:focus {
    border-color: #992449;
    outline: none;
    box-shadow: 0 0 0 3px rgba(153, 36, 73, 0.1);
}
.btn-accent {
    background: #992449;
    color: white;
    border: none;
    padding: 8px 32px;
    border-radius: 8px;
    font-weight: 600;
}
.btn-accent:hover { background: #733146; color: white; }

/* ─── Карточка продукта (страница «Решения») ─── */
.product-card {
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 40px;
    background: #fff;
}
@media (max-width: 767px) {
    .product-card { padding: 24px; }
}

.product-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #198754;
    background: #d1e7dd;
    border-radius: 4px;
    padding: 3px 10px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    margin-bottom: 16px;
}

.product-features {
    margin-top: 20px;
}
.product-features .col-sm-6 {
    font-size: 0.9375rem;
    color: #212529;
}
.product-features i {
    color: #992449;
    margin-right: 8px;
}

.stat-item {
    text-align: center;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}
.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #992449;
}
.stat-label {
    display: block;
    font-size: 0.8125rem;
    color: #6c757d;
}

/* ─── Страница «Обо мне» ─── */
.about-stat {
    text-align: center;
    padding: 24px 16px;
}
.about-stat__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #992449;
    line-height: 1;
    margin-bottom: 8px;
}
.about-stat__label {
    display: block;
    font-size: 0.9375rem;
    color: #6c757d;
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    position: sticky;
    top: 100px;
}

.edu-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
}
.edu-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.edu-card__link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #992449;
    text-decoration: none;
}
.edu-card__link:hover {
    color: #733146;
    text-decoration: underline;
}

/* ─── Страница «Контакты» ─── */
.contact-messenger-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    margin-bottom: 12px;
}
.contact-messenger-btn--telegram {
    background: #26A5E4;
    color: white;
}
.contact-messenger-btn--telegram:hover {
    background: #1e8fc7;
    color: white;
}
.contact-messenger-btn--max {
    background: #f8f9fa;
    color: #212529;
    border: 1px solid #e9ecef;
}
.contact-messenger-btn--max:hover {
    border-color: #992449;
    color: #992449;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.contact-item i {
    font-size: 1.25rem;
    color: #992449;
    margin-top: 2px;
}
.contact-label {
    display: block;
    font-size: 0.8125rem;
    color: #6c757d;
    margin-bottom: 2px;
}
.contact-item a {
    color: #212529;
    text-decoration: none;
    font-size: 1.05rem;
}
.contact-item a:hover {
    color: #992449;
}

.contact-legal h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.contact-form-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 32px;
}
@media (max-width: 767px) {
    .contact-form-card { padding: 24px; }
}

.cf7-form .wpcf7-form-control[name="your-message"] {
    height: 60px;
    min-height: 60px;
    resize: vertical;
}
