/* ── SERVICE PAGE SHARED STYLES ── */
/* Используется в страницах услуг */

.ai-showcase-section {
  display: grid;
  grid-template-columns: minmax(520px, 0.98fr) minmax(0, 1.02fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  max-width: 1760px;
  margin: 0 auto;
  padding: 100px clamp(20px, 3vw, 56px);
}

.ai-showcase-copy .section-title,
.ai-showcase-copy .section-subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.ai-showcase-copy .section-label {
  font-size: clamp(15px, 1.1vw, 20px);
  letter-spacing: 6px;
  margin-bottom: 28px;
}

.ai-showcase-copy .section-title {
  max-width: 920px;
  font-size: clamp(46px, 5.7vw, 88px);
  line-height: 1.08;
}

.ai-showcase-copy .section-subtitle {
  max-width: 720px;
  font-size: clamp(17px, 1.25vw, 22px);
  line-height: 1.65;
  margin-top: 24px;
}

.ai-showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(190px, 1fr));
  gap: 14px;
  height: clamp(520px, 48vw, 780px);
  min-height: clamp(480px, 42vw, 720px);
}

.ai-shot {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
}

.ai-shot--large {
  grid-row: 1 / span 2;
}

.ai-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.14) contrast(1.04);
  transform: scale(1.01);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ai-shot:hover img {
  filter: grayscale(0) contrast(1.08);
  transform: scale(1.045);
}

.ai-shot figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(9,9,9,0.58);
  color: rgba(255,255,255,0.74);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.ld-details-section {
  padding: 100px 0;
  max-width: 1760px;
  margin: 0 auto;
  padding-left: clamp(20px, 3vw, 56px);
  padding-right: clamp(20px, 3vw, 56px);
}

.ld-details-section .section-label {
  font-size: 14px;
  letter-spacing: 3.6px;
  margin-bottom: 22px;
}

.ld-details-section .section-title {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(36px, 4.85vw, 66px);
  line-height: 1.12;
}

.ld-details-section .section-subtitle {
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(15px, 1.08vw, 18px);
  line-height: 1.65;
}

.ld-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(56px, 7vw, 150px);
  margin-top: 56px;
  counter-reset: detail-card;
}

.ld-detail-item {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  position: relative;
  min-height: 0;
  padding: 26px 54px 26px 0;
  border-bottom: 1px solid rgba(255,255,255,0.075);
  background: transparent;
  counter-increment: detail-card;
}

.ld-detail-item::after {
  content: "0" counter(detail-card);
  position: absolute;
  top: 30px;
  right: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.22);
}

.ld-detail-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.72);
}

.ld-detail-icon svg {
  width: 22px;
  height: 22px;
}

.ld-detail-body h3 {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  font-weight: 600;
  color: #e8e8e8;
  margin: 0 0 10px;
  letter-spacing: 0;
  line-height: 1.25;
}

.ld-detail-body p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
  margin: 0;
}

.ld-highlight-bar {
  margin-top: 46px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  background: rgba(255,255,255,0.025);
  overflow: hidden;
}

.ld-highlight-stat {
  text-align: center;
  padding: 24px 28px;
  border-right: 1px solid rgba(255,255,255,0.07);
}

.ld-highlight-stat:last-child {
  border-right: none;
}

.ld-highlight-stat .val {
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  font-weight: 700;
  color: #fff;
  display: block;
  letter-spacing: 0;
}

.ld-highlight-stat .label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
  display: block;
  line-height: 1.4;
}

.process-steps--six {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.process-section--wide {
  max-width: 100%;
  padding-left: clamp(20px, 2vw, 36px);
  padding-right: clamp(20px, 2vw, 36px);
}

.process-section--wide .section-header {
  margin-bottom: 68px;
}

.process-section--wide .section-label {
  font-size: 14px;
  letter-spacing: 3.6px;
  margin-bottom: 22px;
}

.process-section--wide .section-title {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(36px, 4.85vw, 66px);
  line-height: 1.12;
}

.process-section--wide .section-subtitle {
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(15px, 1.08vw, 18px);
  line-height: 1.65;
}

.process-section--wide .process-marquee {
  margin: 44px calc(50% - 50vw) 44px;
}

.process-steps--wide {
  width: 100%;
  max-width: min(2360px, calc(100vw - 40px));
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.process-steps--wide .process-card {
  min-height: 202px;
  padding: 18px 28px;
  border: 1px solid rgba(255,255,255,0.085);
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
  box-shadow: none;
}

.process-steps--wide .process-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}

.process-steps--wide .process-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 13px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  box-shadow: none;
}

.process-steps--wide .process-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.process-steps--wide .process-num {
  display: block;
  margin-bottom: 10px;
}

.process-steps--wide .process-card h3 {
  margin-bottom: 9px;
  font-size: clamp(24px, 1.85vw, 32px);
  line-height: 1.12;
  font-weight: 400;
}

.process-steps--wide .process-card p {
  max-width: 680px;
  font-size: 14px;
  line-height: 1.36;
  color: rgba(255,255,255,0.62);
}

@media (min-width: 1900px) and (min-height: 1200px) {
  .process-section--wide {
    max-width: 100%;
    padding-top: 72px;
    padding-bottom: 72px;
    padding-left: 48px;
    padding-right: 48px;
  }

  .process-section--wide .section-header {
    margin-bottom: 38px;
  }

  .process-section--wide .section-label {
    margin-bottom: 12px;
  }

  .process-section--wide .section-title {
    font-size: clamp(44px, 2.45vw, 58px);
  }

  .process-section--wide .section-subtitle {
    margin-top: 12px;
    line-height: 1.55;
  }

  .process-section--wide .process-marquee {
    margin-top: 28px;
    margin-bottom: 28px;
  }

  .process-steps--wide {
    max-width: calc(100vw - 40px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .process-steps--wide .process-card {
    min-height: 186px;
    padding: 14px 26px;
  }

  .process-steps--wide .process-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    border-radius: 10px;
  }

  .process-steps--wide .process-icon svg {
    width: 19px;
    height: 19px;
  }

  .process-steps--wide .process-num {
    margin-bottom: 7px;
    font-size: 11px;
  }

  .process-steps--wide .process-card h3 {
    margin-bottom: 7px;
    font-size: clamp(23px, 1.36vw, 30px);
  }

  .process-steps--wide .process-card p {
    max-width: 520px;
    font-size: 13px;
    line-height: 1.36;
  }

  .process-section--wide .ld-cta-strip {
    margin-top: 26px;
    padding: 24px 32px;
  }
}

/* ── CTA STRIP ── */
.ld-cta-strip {
  margin-top: 60px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 40px 48px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  text-align: left;
}

.ld-cta-strip p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  max-width: 780px;
  line-height: 1.5;
}

.ld-cta-strip p strong {
  color: #fff;
}

@media (max-width: 900px) {
  .ai-showcase-section {
    grid-template-columns: 1fr;
  }
  .ai-showcase-copy .section-title {
    max-width: 860px;
  }
  .ai-showcase-grid {
    min-height: 560px;
  }
  .ld-details-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ld-detail-item {
    padding: 24px 48px 24px 0;
  }
  .process-steps--six {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-section--wide .section-title {
    font-size: clamp(36px, 7vw, 60px);
  }
  .process-section--wide .section-subtitle {
    font-size: 17px;
  }
  .process-steps--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .ld-highlight-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0;
  }
  .ld-highlight-stat {
    border-right: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 24px;
  }
  .ld-highlight-stat:nth-child(2n) {
    border-right: none;
  }
  .ld-highlight-stat:nth-last-child(-n+2) {
    border-bottom: none;
  }
  .ld-cta-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }
}

@media (max-width: 768px) {
  .ld-highlight-bar {
    grid-template-columns: 1fr;
  }

  .ld-highlight-stat,
  .ld-highlight-stat:nth-child(2n),
  .ld-highlight-stat:nth-last-child(-n+2) {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .ld-highlight-stat:last-child {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .ai-showcase-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .ai-showcase-copy .section-title {
    font-size: clamp(38px, 10vw, 58px);
  }
  .ai-showcase-copy .section-subtitle {
    font-size: 16px;
    margin-top: 18px;
  }
  .ai-showcase-grid {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: 0;
  }
  .ai-shot,
  .ai-shot--large {
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }
  .ld-detail-item {
    gap: 16px;
    padding-right: 36px;
  }
  .ld-highlight-bar {
    grid-template-columns: 1fr;
  }
  .ld-highlight-stat,
  .ld-highlight-stat:nth-child(2n),
  .ld-highlight-stat:nth-last-child(-n+2) {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .ld-highlight-stat:last-child {
    border-bottom: none;
  }
  .process-section--wide .section-header {
    margin-bottom: 42px;
  }
  .process-section--wide .section-label {
    font-size: 12px;
    letter-spacing: 3.4px;
    margin-bottom: 20px;
  }
  .process-section--wide .section-title {
    font-size: clamp(34px, 10vw, 48px);
  }
  .process-section--wide .section-subtitle {
    margin-top: 18px;
    font-size: 16px;
  }
  .process-steps--six {
    grid-template-columns: 1fr;
  }
  .process-steps--wide {
    gap: 14px;
  }
  .process-steps--wide .process-card {
    min-height: 0;
    padding: 30px 24px;
  }
  .process-steps--wide .process-card h3 {
    font-size: clamp(24px, 8vw, 32px);
  }
  .process-steps--wide .process-card p {
    font-size: 15px;
  }
}

/* ── FAQ ── */
.faq-section--landing {
  padding: 120px 24px;
  max-width: 100%;
  box-sizing: border-box;
}

.faq-landing-head {
  margin-bottom: 48px;
}

.faq-landing-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
  margin: 12px 0 0;
  line-height: 1.15;
}

.faq-landing-title strong {
  color: rgba(255,255,255,0.45);
  font-weight: 700;
}

.faq-list--landing {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item--landing {
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item--landing:hover {
  border-color: rgba(255,255,255,0.16);
}

.faq-item--landing.is-open {
  border-color: rgba(255,255,255,0.14);
}

.faq-question--landing {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: rgba(232,232,232,0.6);
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.4;
  transition: color 0.3s;
}

.faq-question--landing:hover { color: #e8e8e8; }
.faq-item--landing.is-open .faq-question--landing { color: #fff; font-weight: 500; }

.faq-q-text { flex: 1; }

.faq-plus-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: background 0.25s, transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), color 0.25s;
}

.faq-item--landing.is-open .faq-plus-btn {
  background: rgba(255,255,255,0.1);
  color: #fff;
  transform: rotate(45deg);
}

.faq-item--landing .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.4s ease;
  opacity: 0;
}

.faq-item--landing.is-open .faq-answer {
  max-height: 300px;
  opacity: 1;
}

.faq-item--landing .faq-answer-inner {
  padding: 0 28px 24px;
  font-size: 0.9rem;
  color: rgba(232,232,232,0.4);
  line-height: 1.8;
  max-width: 100%;
  width: 100%;
}

@media (max-width: 768px) {
  .faq-section--landing { padding: 80px 24px; }
}

/* RESPONSIVE STABILIZATION */
@media (min-width: 2200px) {
  .ai-hero,
  .ai-showcase-section,
  .ld-details-section,
  .process-section--wide,
  .ai-portfolio-section,
  .ai-clients-section,
  .faq-section--landing {
    max-width: min(2240px, calc(100vw - 240px));
  }

  .ai-hero {
    grid-template-columns: minmax(760px, 0.9fr) minmax(980px, 1.1fr);
    gap: clamp(80px, 4vw, 160px);
  }

  .ai-hero-title,
  .ai-showcase-copy .section-title,
  .process-section--wide .section-title,
  .ai-portfolio-section .section-title,
  .ai-clients-section .section-title {
    font-size: clamp(72px, 3.1vw, 118px);
  }

  .ai-hero-sub,
  .ai-showcase-copy .section-subtitle,
  .process-section--wide .section-subtitle {
    font-size: clamp(20px, 0.9vw, 26px);
  }

  .ai-showcase-grid {
    height: clamp(720px, 34vw, 1040px);
  }

  .ai-portfolio-grid {
    max-width: min(2600px, calc(100vw - 240px));
    gap: clamp(18px, 1vw, 34px);
  }
}

@media (max-width: 1200px) {
  .ai-hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    padding-top: 96px;
  }

  .ai-hero-title {
    font-size: clamp(44px, 6.5vw, 78px);
  }

  .ai-showcase-section,
  .ld-details-section,
  .process-section--wide,
  .ai-portfolio-section,
  .ai-clients-section {
    padding-left: max(24px, 4vw);
    padding-right: max(24px, 4vw);
  }
}

@media (max-width: 1024px) {
  .ai-hero {
    grid-template-columns: 1fr;
    padding-top: 110px;
    padding-bottom: 72px;
  }

  .ai-hero-copy {
    max-width: 820px;
  }

  .ai-hero-title {
    max-width: 860px;
  }

  .ai-hero-visual {
    max-width: 860px;
    margin: 0 auto;
  }

  .ld-details-grid,
  .process-steps--wide,
  .ai-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ai-hero {
    padding: 96px 18px 60px;
  }

  .ai-hero-title {
    font-size: clamp(42px, 12.5vw, 62px);
    line-height: 0.98;
  }

  .ai-hero-sub {
    font-size: 16px;
    line-height: 1.55;
  }

  .ai-hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .ai-hero-actions .btn-primary,
  .ai-hero-actions .btn-ghost {
    width: 100%;
  }

  .ai-showcase-section,
  .ld-details-section,
  .process-section--wide,
  .ai-portfolio-section,
  .ai-clients-section,
  .faq-section--landing {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ai-showcase-copy .section-title,
  .process-section--wide .section-title,
  .ai-portfolio-section .section-title,
  .ai-clients-section .section-title {
    font-size: clamp(36px, 11vw, 54px);
    line-height: 1.03;
  }

  .process-section--wide .process-marquee .marquee {
    animation-duration: 4s;
  }

  .ld-details-grid,
  .process-steps--wide,
  .ai-portfolio-grid,
  .ai-clients-grid {
    grid-template-columns: 1fr;
  }

  .ld-detail-item {
    padding: 22px 0;
  }

  .ld-highlight-stat {
    min-height: 124px;
  }

  .faq-question--landing {
    gap: 14px;
    padding: 20px 18px;
    font-size: 1rem;
  }

  .faq-plus-btn {
    width: 38px;
    height: 38px;
  }

  .faq-item--landing .faq-answer-inner {
    padding: 0 18px 22px;
  }
}

@media (max-width: 420px) {
  .ai-showcase-grid {
    gap: 10px;
  }

  .ai-shot,
  .ai-shot--large {
    border-radius: 12px;
  }

  .ai-shot-caption {
    left: 12px;
    bottom: 12px;
    font-size: 12px;
  }

  .ld-highlight-stat .val {
    font-size: clamp(34px, 13vw, 48px);
  }
}
