/* ==========================================================================
   content.css — article/content pages (services, company, partners, buyers,
   vacancies). Strengthens emphasis (bold labels like «Обязанности:») and
   restores list bullets that the global reset removes. Loaded via content.njk.
   ========================================================================== */

/* clearer bold — «Обязанности:», «Требования:», «Условия:» and inline emphasis */
.prose strong,
.acc-item__body strong {
  font-weight: 700;
  color: var(--text);
}

/* bulleted lists inside prose / accordion bodies (global reset strips markers) */
.prose ul,
.acc-item__body ul {
  list-style: disc;
  padding-left: 22px;
  margin: 8px 0 14px;
}

.prose ol,
.acc-item__body ol {
  list-style: decimal;
  padding-left: 22px;
  margin: 8px 0 14px;
}

.prose li,
.acc-item__body li {
  margin: 5px 0;
  color: var(--text-2);
}

/* label paragraph (a lone <strong>) gets breathing room above its list */
.acc-item__body p {
  margin-top: 14px;
}

.acc-item__body p:first-child {
  margin-top: 0;
}

/* --- about page: history timeline --------------------------------------- */
.timeline {
  margin: 20px 0 10px;
  border-left: 2px solid var(--line-2);
  padding-left: 28px;
}

.timeline__item {
  position: relative;
  padding-bottom: 22px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline__year {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 4px;
}

.timeline__event {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

/* --- about page: figures ------------------------------------------------- */
.about-figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: clamp(20px, 2.4vw, 30px) 0;
}

@media (max-width: 560px) {
  .about-figures {
    grid-template-columns: 1fr;
  }
}

.about-figures__item {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 2.6vw, 30px) clamp(20px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s;
}

/* accent spine wipes in on hover */
.about-figures__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}

.about-figures__item:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}

.about-figures__item:hover::before {
  transform: scaleY(1);
}

.about-figures__n {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.2vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.about-figures__l {
  display: block;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.45;
  margin-top: 12px;
  max-width: 22ch;
}

/* --- reviews page: video grid + client-logo marquee --------------------- */
.reviews-block {
  margin-top: clamp(36px, 5vw, 60px);
}

.reviews-block__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  margin-bottom: clamp(18px, 2.2vw, 26px);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.review-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #05070a;
  transition: border-color 0.3s, transform 0.35s var(--ease);
}

.review-video:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.review-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.review-logo {
  flex: none;
  display: grid;
  place-items: center;
  height: 78px;
  width: 152px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.review-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* textual testimonials as quote cards */
.testimonials {
  display: grid;
  gap: clamp(16px, 2vw, 22px);
  margin-top: clamp(20px, 2.4vw, 30px);
}

.testimonial {
  position: relative;
  margin: 0;
  padding: clamp(26px, 2.8vw, 36px) clamp(24px, 2.6vw, 34px) clamp(22px, 2.4vw, 28px);
  padding-top: clamp(40px, 4vw, 52px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.35s var(--ease);
}

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

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  left: 22px;
  font-family: var(--font-display);
  font-size: 66px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.22;
}

.testimonial__text {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.7;
  text-wrap: pretty;
}

.testimonial__author {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--accent);
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

/* --- hub links (sub-page cards on «Покупателям» etc.) ------------------- */
.hub-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  margin: clamp(20px, 2.4vw, 30px) 0;
}

.hub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 2.2vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.35s var(--ease), box-shadow 0.35s;
}

.hub-link:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.hub-link__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hub-link__text {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}

.hub-link__go {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--accent);
  font-size: 16px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.hub-link:hover .hub-link__go {
  border-color: var(--accent);
  transform: translateX(3px);
}
