/* =============================================================
   components.css — All Reusable UI Components
   gestaltme.com | v1.0 | 2026-03
   =============================================================
   DEPENDS ON: tokens.css, base.css, layout.css
   ============================================================= */


/* ═══════════════════════════════════════════════════════════
   BUTTONS
   Base: .btn
   Variants: .btn--primary | .btn--secondary | .btn--white | .btn--ghost | .btn--sage
   Sizes: .btn--sm | .btn--lg
   ═══════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 48px;
  padding-inline: var(--sp-6);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  text-decoration: none;
  user-select: none;
  transition:
    background var(--ease),
    color var(--ease),
    transform var(--ease),
    box-shadow var(--ease),
    border-color var(--ease);
}

.btn:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(1px);
}

/* Icon inside button */
.btn svg,
.btn img {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* --- Primary: dark charcoal --- */
.btn--primary {
  background: var(--c-charcoal);
  color: var(--c-white);
  box-shadow: 0 6px 20px rgba(37,35,32,.22);
}

.btn--primary:hover {
  background: #3a3632;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37,35,32,.28);
}

/* --- Secondary: outlined --- */
.btn--secondary {
  background: transparent;
  color: var(--c-charcoal);
  border: 1.5px solid rgba(37,35,32,.2);
}

.btn--secondary:hover {
  background: var(--c-linen);
  border-color: rgba(37,35,32,.3);
}

/* --- Sage: green CTA --- */
.btn--sage {
  background: var(--c-sage);
  color: var(--c-white);
  box-shadow: 0 4px 14px rgba(122,158,142,.35);
}

.btn--sage:hover {
  background: var(--c-sage-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(122,158,142,.45);
}

/* --- White: for use on dark/green backgrounds --- */
.btn--white {
  background: var(--c-white);
  color: var(--c-sage-dk);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.2);
}


/* --- WhatsApp: outlined green, same hover behaviour as primary --- */
/* Same lift + shadow animation as btn--primary, branded green color */
.btn--whatsapp {
  background: transparent;
  color: #1DA851;
  border: 1.5px solid #1DA851;
  box-shadow: none;
}

.btn--whatsapp:hover {
  background: #1DA851;
  color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(29,168,81,.28);
}
/* --- Ghost: transparent white border for dark bg --- */
.btn--ghost {
  background: rgba(255,255,255,.14);
  color: var(--c-white);
  border: 1.5px solid rgba(255,255,255,.38);
}

.btn--ghost:hover {
  background: rgba(255,255,255,.24);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.2);
}

/* --- Sizes --- */
.btn--sm {
  height: 38px;
  padding-inline: var(--sp-5);
  font-size: var(--text-xs);
}

.btn--lg {
  height: 56px;
  padding-inline: var(--sp-8);
  font-size: var(--text-base);
}

/* --- Full width --- */
.btn--full {
  width: 100%;
}

/* --- Group of buttons --- */
.btn-group {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  align-items: center;
}

.btn-group--center {
  justify-content: center;
}

.btn-group--col {
  flex-direction: column;
  align-items: stretch;
}

/* Equal-width buttons */
.btn-group--equal .btn {
  flex: 1;
  min-width: 160px; /* wrap to next line if too narrow */
  justify-content: center;
}

@media (max-width: 600px) {
  .btn-group--equal .btn {
    flex: none;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }
}


/* ═══════════════════════════════════════════════════════════
   BADGE / TAG
   ═══════════════════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.badge--sage {
  background: var(--c-sage-lt);
  color: var(--c-sage-dk);
}

.badge--linen {
  background: var(--c-linen);
  color: var(--c-brown);
  border: 1px solid rgba(0,0,0,.06);
}

.badge--white {
  background: var(--c-white);
  color: var(--c-brown);
  border: 1px solid var(--c-linen);
  box-shadow: var(--shadow-xs);
}

.badge--dark {
  background: rgba(122,158,142,.18);
  color: var(--c-sage-lt);
}

/* Trust badge with icon */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: var(--c-white);
  border: 1px solid var(--c-linen);
  border-radius: var(--radius-pill);
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--c-brown);
  box-shadow: var(--shadow-xs);
}

.trust-badge svg {
  width: 14px;
  height: 14px;
  color: var(--c-sage);
  flex-shrink: 0;
}

.trust-badges {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════
   CARDS
   Base: .card
   Variants: .card--service | .card--service-featured | .card--for-whom | .card--stat
   ═══════════════════════════════════════════════════════════ */

/* --- Base card --- */
.card {
  background: var(--c-white);
  border: 1px solid var(--c-linen);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--ease-bounce),
    box-shadow var(--ease),
    border-color var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* --- Service card (dark bg variant) --- */
.card--service {
  background: var(--c-dark-surface);
  border: 1px solid var(--c-dark-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6);
  position: relative;
  overflow: clip;
  transition:
    transform var(--ease-bounce),
    box-shadow var(--ease);
}



.card--service:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.25);
}



.card--service__icon {
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: var(--sp-5);
  color: var(--c-sage-lt);
  flex-shrink: 0;
}

.card--service h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--c-white);
  margin-bottom: var(--sp-3);
  line-height: var(--leading-snug);
}

.card--service p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-5);
}

.card--service .link-service {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--c-sage-lt);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: gap var(--ease-bounce), color var(--ease);
}

/* Stretched link: ::after is absolute relative to card--service (position:relative)
   z-index:1 places it above static content, making the whole card surface clickable */
.card--service .link-service::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card--service:hover .link-service {
  gap: var(--sp-3);
}

/* Keep cursor pointer on the card */
.card--service {
  cursor: pointer;
}

/* card--service-featured removed */

/* --- For-whom card (light) --- */
.card--for-whom {
  background: var(--c-white);
  border: 1px solid var(--c-linen);
  border-radius: var(--radius-md);
  padding: var(--sp-6) var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--ease),
    box-shadow var(--ease),
    transform var(--ease-bounce);
}

.card--for-whom:hover {
  border-color: var(--c-sage-lt);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card--for-whom__icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: var(--sp-4);
  color: var(--c-sage-dk);
  flex-shrink: 0;
}

.card--for-whom h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--c-charcoal);
  margin-bottom: var(--sp-2);
  letter-spacing: 0;
}

.card--for-whom p {
  font-size: var(--text-xs);
  color: var(--c-muted);
  line-height: var(--leading-relaxed);
}

/* --- Stat pill card --- */
.card--stat {
  background: var(--c-white);
  border: 1px solid var(--c-linen);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-md);
  text-align: center;
  min-width: 90px;
}

.card--stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--fw-bold);
  color: var(--c-sage-dk);
  line-height: 1;
}

.card--stat span {
  font-size: var(--text-xs);
  color: var(--c-muted);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  display: block;
  margin-top: var(--sp-1);
}


/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════ */

.testimonial-card {
  background: var(--c-white);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

.testimonial-card__quote {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: var(--fw-bold);
  color: var(--c-sage-lt);
  line-height: 0.45;
  margin-bottom: var(--sp-5);
  display: block;
  user-select: none;
}

.testimonial-card__stars {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  color: #F4B942;
  font-size: var(--text-xs);
  letter-spacing: 2px;
}

.testimonial-card__text {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: var(--c-brown);
  font-style: italic;
  flex: 1;
  margin-bottom: var(--sp-6);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-sage-lt), var(--c-linen));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--c-sage-dk);
  flex-shrink: 0;
  border: 2px solid var(--c-sage-lt);
}

.testimonial-card__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__name {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--c-charcoal);
  line-height: 1.2;
}

.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--c-muted);
  margin-top: 2px;
}

/* Testimonials slider wrapper */
.testimonials-slider {
  position: relative;
  overflow: clip;
}

.testimonials-track {
  display: flex;
  gap: var(--sp-5);
  transition: transform var(--ease-slow);
}

.testimonials-track .testimonial-card {
  flex: 0 0 calc(33.333% - var(--sp-4));
  min-width: 0;
}

.testimonials-controls {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}

.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-sage-lt);
  border: none;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
  padding: 0;
}

.testimonials-dot.is-active {
  background: var(--c-sage);
  transform: scale(1.3);
}

@media (max-width: 1024px) {
  .testimonials-track .testimonial-card {
    flex: 0 0 calc(50% - var(--sp-3));
  }
}

@media (max-width: 640px) {
  .testimonials-track .testimonial-card {
    flex: 0 0 100%;
  }
}


/* ═══════════════════════════════════════════════════════════
   FAQ  (uses native <details>/<summary>)
   ═══════════════════════════════════════════════════════════ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.faq-item {
  background: var(--c-white);
  border: 1px solid var(--c-linen);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.faq-item summary {
  padding: var(--sp-5) var(--sp-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  list-style: none;
  transition: background var(--ease);
  line-height: var(--leading-snug);
}

/* Hide default marker */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--c-cream);
}

/* +/x icon */
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--c-sage);
  flex-shrink: 0;
  transition: transform var(--ease-bounce);
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item__body {
  padding: var(--sp-4) var(--sp-6) var(--sp-5);
  font-size: var(--text-sm);
  color: var(--c-brown);
  line-height: var(--leading-relaxed);
  border-top: 1px solid var(--c-linen);
}

/* Hide border when item is closed so no 1px line shows at height:0 */
.faq-item:not([open]) .faq-item__body {
  border-top-width: 0;
}

.faq-item__body p + p {
  margin-top: var(--sp-3);
}

.faq-item__body strong {
  color: var(--c-charcoal);
  font-weight: var(--fw-semibold);
}


/* ═══════════════════════════════════════════════════════════
   FREE CALL BANNER
   Prominent sage-green strip with CTA
   ═══════════════════════════════════════════════════════════ */

.free-call-banner {
  background: linear-gradient(135deg, var(--c-sage) 0%, var(--c-sage-dk) 100%);
  border-radius: var(--radius-lg);
  padding: var(--sp-10) var(--sp-12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  box-shadow: var(--shadow-sage);
  position: relative;
  overflow: clip;
}

/* Decorative circle */
.free-call-banner::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}

.free-call-banner__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: var(--fw-bold);
  color: var(--c-white);
  margin-bottom: var(--sp-2);
}

.free-call-banner__text p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.8);
  max-width: 44ch;
  line-height: var(--leading-relaxed);
}

.free-call-banner__actions {
  display: flex;
  gap: var(--sp-3);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .free-call-banner {
    flex-direction: column;
    padding: var(--sp-8) var(--sp-6);
    text-align: center;
  }

  .free-call-banner__text p {
    max-width: 100%;
  }

  .free-call-banner__actions {
    flex-direction: column;
    width: 100%;
  }

  .free-call-banner__actions .btn {
    width: 100%;
  }
}


/* ═══════════════════════════════════════════════════════════
   FINAL CTA SECTION
   Dark full-width section with centered CTA
   ═══════════════════════════════════════════════════════════ */

.cta-section {
  text-align: center;
}

.cta-section .lead {
  margin: var(--sp-5) auto var(--sp-8);
  color: rgba(255,255,255,.6);
}

.cta-section__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  margin-top: var(--sp-6);
  font-size: var(--text-xs);
  color: rgba(255,255,255,.38);
  letter-spacing: var(--tracking-wide);
}

.cta-section__meta span::before {
  content: '✓ ';
  color: var(--c-sage);
}


/* ═══════════════════════════════════════════════════════════
   CREDENTIALS LIST
   Used on About page
   ═══════════════════════════════════════════════════════════ */

.credentials {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-block: var(--sp-6);
}

.credential {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-white);
  border: 1px solid var(--c-linen);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--c-brown);
  box-shadow: var(--shadow-xs);
  line-height: var(--leading-snug);
}

.credential__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-sage);
  flex-shrink: 0;
  margin-top: 5px;
}


/* ═══════════════════════════════════════════════════════════
   ARTICLE CARD  (blog index)
   ═══════════════════════════════════════════════════════════ */

.article-card {
  background: var(--c-white);
  border: 1px solid var(--c-linen);
  border-radius: var(--radius-lg);
  overflow: clip;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--ease-bounce),
    box-shadow var(--ease),
    border-color var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-sage-lt);
}

.article-card__img {
  aspect-ratio: 16/9;
  overflow: clip;
  background: linear-gradient(135deg, var(--c-linen), var(--c-sage-lt));
}

.article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}

.article-card:hover .article-card__img img {
  transform: scale(1.04);
}

.article-card__body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: var(--text-xs);
  color: var(--c-muted);
}

.article-card__category {
  background: var(--c-sage-lt);
  color: var(--c-sage-dk);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  padding: 2px var(--sp-2);
  border-radius: var(--radius-pill);
}

.article-card h3 {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  margin-bottom: var(--sp-3);
  color: var(--c-charcoal);
  transition: color var(--ease);
}

.article-card:hover h3 {
  color: var(--c-sage-dk);
}

.article-card__excerpt {
  font-size: var(--text-sm);
  color: var(--c-muted);
  line-height: var(--leading-relaxed);
  flex: 1;
  margin-bottom: var(--sp-5);
}

.article-card__link {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--c-sage-dk);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: gap var(--ease-bounce);
}

.article-card:hover .article-card__link {
  gap: var(--sp-3);
}


/* ═══════════════════════════════════════════════════════════
   PROCESS STEPS
   Used on service pages: How it works
   ═══════════════════════════════════════════════════════════ */

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  counter-reset: steps;
}

.step {
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
  counter-increment: steps;
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-sage-lt);
  color: var(--c-sage-dk);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step__number::before {
  content: counter(steps);
}

.step__content h4 {
  font-size: var(--text-lg);
  color: var(--c-charcoal);
  margin-bottom: var(--sp-2);
}

.step__content p {
  font-size: var(--text-sm);
  color: var(--c-brown);
  line-height: var(--leading-relaxed);
}


/* ═══════════════════════════════════════════════════════════
   FLOATING BADGE (hero photo overlay)
   ═══════════════════════════════════════════════════════════ */

.float-badge {
  background: var(--c-white);
  border: 1px solid var(--c-linen);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-5);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}

.float-badge__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-sage-lt);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.float-badge__label {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--c-charcoal);
  line-height: 1.2;
}

.float-badge__sub {
  font-size: var(--text-xs);
  color: var(--c-muted);
}


/* ═══════════════════════════════════════════════
   RELATED SERVICES / ARTICLE RELATED
   Кросс-линковка между страницами услуг и из статей блога.
   Светлая версия карточек услуг для фона section--light.
═══════════════════════════════════════════════ */
.related-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  max-width: 960px;
  margin: 0 auto;
}

.related-services--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
}

.card--related {
  background: var(--c-white);
  border: 1px solid var(--c-linen);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  position: relative;
  overflow: clip;
  transition:
    transform var(--ease-bounce),
    box-shadow var(--ease),
    border-color var(--ease);
  cursor: pointer;
}

.card--related:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(107,91,78,.08);
  border-color: var(--c-sage-lt);
}

.card--related__icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: var(--sp-4);
  color: var(--c-sage);
  flex-shrink: 0;
}

.card--related h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--c-charcoal);
  margin-bottom: var(--sp-2);
  line-height: var(--leading-snug);
}

.card--related p {
  font-size: var(--text-sm);
  color: var(--c-brown);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-4);
}

.card--related .link-service {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--c-sage-dk);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: gap var(--ease-bounce);
}

.card--related .link-service::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card--related:hover .link-service {
  gap: var(--sp-3);
}

/* ─── Article related (блок в конце статьи блога) ─── */
.article-related {
  max-width: 720px;
  margin: var(--sp-12) auto var(--sp-10);
  padding: var(--sp-8) var(--sp-6);
  background: var(--c-sage-bg);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--c-sage);
}

.article-related__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-sage-dk);
  margin-bottom: var(--sp-3);
}

.article-related__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--c-charcoal);
  margin: 0 0 var(--sp-3);
  line-height: var(--leading-snug);
}

.article-related__text {
  font-size: var(--text-base);
  color: var(--c-brown);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-4);
}

.article-related__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.article-related__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-white);
  border: 1px solid var(--c-sage-lt);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-sage-dk);
  transition: all var(--ease);
}

.article-related__link:hover {
  background: var(--c-sage);
  border-color: var(--c-sage);
  color: var(--c-white);
  transform: translateY(-1px);
}

/* ─── Адаптив ─── */
@media (max-width: 900px) {
  .related-services,
  .related-services--two {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

@media (max-width: 600px) {
  .article-related {
    padding: var(--sp-6) var(--sp-5);
    margin: var(--sp-10) auto var(--sp-8);
  }
  .article-related__links {
    flex-direction: column;
    align-items: stretch;
  }
  .article-related__link {
    justify-content: center;
  }
}
