/* Additional styles for service pages and other components */

/* ==========================================
   SERVICES HERO SECTION (COMPACT)
   ========================================== */
.services-hero {
  padding: 40px 0 50px;
  background: var(--white);
}

.services-hero__content {
  display: grid;
  grid-template-columns: 1fr minmax(0, 380px);
  gap: 40px;
  align-items: start;
}

.services-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-gray);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.services-badge i {
  font-size: 14px;
}

.services-hero__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text-color);
}

.services-hero__description {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.services-hero__stats {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.services-hero__cta {
  position: sticky;
  top: 100px;
}

.cta-card {
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.cta-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color);
}

.cta-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.cta-card .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}

.cta-card__note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.cta-card__note i {
  color: var(--success-color);
  font-size: 14px;
}

@media (max-width: 1024px) {
  .services-hero__content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .services-hero__cta {
    position: static;
  }
  
  .services-hero__stats {
    justify-content: space-around;
  }
}

@media (max-width: 768px) {
  .services-hero {
    padding: 30px 0 40px;
  }
  
  .services-hero__title {
    font-size: 28px;
  }
  
  .services-hero__description {
    font-size: 15px;
  }
  
  .services-hero__stats {
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .stat-number {
    font-size: 20px;
  }
  
  .stat-label {
    font-size: 12px;
  }
}

/* ==========================================
   SERVICE LIST
   ========================================== */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.service-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 30px;
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-item__icon {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--white);
  flex-shrink: 0;
}

.service-item__content {
  flex: 1;
}

.service-item__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
}

.service-item__title a {
  color: var(--text-color);
  transition: var(--transition);
}

.service-item__title a:hover {
  color: var(--primary-color);
}

.service-item__description {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-item__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.service-item__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.service-item__features i {
  color: var(--success-color);
  font-size: 16px;
}

.service-item__aside {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
  align-items: stretch;
}

.service-item__price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
}

/* ==========================================
   IMPROVED SERVICE BLOCKS
   ========================================== */
.service-single__content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  margin: 30px 0 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
}

.service-single__content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color);
  margin: 25px 0 15px;
  position: relative;
  padding-left: 20px;
}

.service-single__content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Было: строки во всю ширину, разделённые волосяной линией, с большими
   вертикальными зазорами. На широкой колонке страницы услуги короткий пункт
   вроде «Чистка вентилятора» тянул за собой 900 px пустоты, и блок читался
   как незаполненная таблица. Собираем пункты в плитки по две в ряд — строка
   становится короткой, а список перестаёт быть дырявым. */
.check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  background: var(--bg-gray);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-color);
  transition: var(--transition);
}

.check-list li:hover {
  background: var(--white);
  border-color: var(--primary-color);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
}

/* в прежней версии у последнего пункта снималась нижняя граница —
   у плитки рамка нужна со всех сторон */
.check-list li:last-child {
  border-bottom: 1px solid var(--border-color);
}

.check-list li:last-child:hover {
  border-bottom-color: var(--primary-color);
}

/* Галочка — не просто зелёный значок в строке, а бейдж: он держит левый край
   и не даёт пунктам разной длины расползаться. */
.check-list li i {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* «Почему важна регулярная чистка» — там перечислены риски, а не плюсы,
   поэтому бейдж жёлтый, а плитка с тёплой подложкой. */
.check-list li i.fa-exclamation-triangle {
  background: #f59e0b;
  color: var(--white);
}

.check-list li:has(i.fa-exclamation-triangle) {
  background: #fffbeb;
  border-color: #fde68a;
}

.check-list li:has(i.fa-exclamation-triangle):hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.16);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--bg-gray);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.process-step:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.process-step__number {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.process-step__text {
  font-weight: 500;
  color: var(--text-color);
}

.faq {
  margin: 25px 0;
}

.faq details {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.faq details:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.faq summary {
  padding: 20px;
  background: var(--bg-gray);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-color);
  transition: var(--transition);
  list-style: none;
  position: relative;
}

.faq summary:hover {
  background: var(--white);
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--primary-color);
  transition: var(--transition);
}

.faq details[open] summary::after {
  content: '−';
}

.faq details[open] summary {
  background: var(--primary-color);
  color: var(--white);
}

.faq details p {
  padding: 20px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   SERVICE SINGLE PAGE
   ========================================== */
.service-single {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 32px;
}

.service-single__image {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
}

.service-single__image img {
  width: 100%;
  height: auto;
}

.service-single__content h2 {
  font-size: 32px;
  margin-bottom: 15px;
  margin-top: 30px;
}

.service-single__content h2:first-child {
  margin-top: 0;
}

.service-single__content h3 {
  font-size: 24px;
  margin-bottom: 15px;
  margin-top: 25px;
}

.service-single__content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--bg-gray);
  border-radius: 8px;
}

.process-step__number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.process-step__text {
  font-size: 16px;
  font-weight: 500;
}

.service-single__sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.service-sidebar-card {
  background: var(--white);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.service-sidebar-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.service-sidebar-card__price {
  text-align: center;
  margin-bottom: 20px;
}

.service-sidebar-card__price .label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.service-sidebar-card__price .value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
}

.service-sidebar-card--accent {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: var(--white);
}

.service-sidebar-card--accent h3 {
  color: var(--white);
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}

.sidebar-list i {
  color: var(--success-color);
  font-size: 16px;
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.contact-card {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: var(--bg-gray);
  border-radius: 12px;
  transition: var(--transition);
}

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

.contact-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.contact-card__label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.contact-card__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
}

.contact-card__value a {
  color: var(--primary-color);
}

.social-buttons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--bg-gray);
  transition: var(--transition);
  font-weight: 500;
}

.social-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.social-button i {
  font-size: 20px;
}

.contact-form-wrapper {
  background: var(--bg-gray);
  padding: 40px;
  border-radius: 12px;
}

.contact-form-wrapper h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.contact-form-wrapper p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.map-placeholder {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ==========================================
   ABOUT PAGE
   ========================================== */
.about-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-text h3 {
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 15px;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 15px;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.stats-section {
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat-card {
  text-align: center;
}

.stat-card__number {
  font-size: 56px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.stat-card__label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  gap: 20px;
}

.feature-item__icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.feature-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature-item p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   REVIEWS PAGE
   ========================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.review-card {
  background: var(--white);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.review-card__author {
  display: flex;
  gap: 15px;
  align-items: center;
}

.review-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 24px;
}

.review-card__name {
  font-weight: 600;
  margin-bottom: 3px;
}

.review-card__date {
  font-size: 12px;
  color: var(--text-muted);
}

.review-card__rating {
  color: #fbbf24;
  font-size: 16px;
}

.review-card__text {
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--text-color);
}

.review-card__service {
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

/* ==========================================
   ORGANIZATION PAGE
   ========================================== */
.org-content h2 {
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
}

.org-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.org-benefit {
  text-align: center;
  padding: 30px;
  background: var(--bg-gray);
  border-radius: 12px;
}

.org-benefit i {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.org-benefit h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.org-benefit p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   LEGAL PAGES
   ========================================== */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 28px;
  margin-top: 30px;
  margin-bottom: 15px;
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 15px;
}

/* ==========================================
   CTA BOX
   ========================================== */
.cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border-radius: 16px;
  padding: 50px;
  box-shadow: var(--shadow-lg);
  gap: 40px;
}

.cta-box__content {
  flex: 1;
}

.cta-box__title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-box__text {
  font-size: 18px;
  color: var(--text-muted);
}

.cta-box__actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Trusted By */
/* Логотипы клиентов — бесконечная лента.
   Было: grid auto-fit. Девять логотипов не делятся на четыре, последняя плитка
   оставалась одна и растягивалась во всю строку, а внутри неё знак раздувался
   до ширины ячейки. Лента снимает вопрос числа колонок вообще и заодно читается
   как «клиентов много», а не «клиентов ровно девять». */
.trusted-by {
  position: relative;
  padding: 30px 0;
}

.trusted-marquee {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  /* края уводим в прозрачность, иначе логотипы обрубаются по линии контейнера */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.trusted-track {
  display: flex;
  width: max-content;
  animation: trusted-scroll 58s linear infinite;
}

/* Сдвиг ровно на половину дорожки = на один полный набор. Поэтому отступ
   задаётся полем плитки, а не gap у флекса: с gap между двумя наборами
   появляется лишний зазор, и на стыке лента дёргается. */
@keyframes trusted-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.trusted-marquee:hover .trusted-track,
.trusted-marquee:focus-within .trusted-track {
  animation-play-state: paused;
}

/* Плитка убрана: знаки лежат прямо на белом фоне секции. Осталась только
   «коробка» под размер — она нужна, чтобы логотипы разной пропорции
   (у «Додо Пиццы» 6.5:1, у Alanya 0.85:1) не скакали по высоте ленты. */
.trusted-item {
  flex: 0 0 auto;
  width: 230px;
  height: 115px;
  margin-right: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* object-fit: contain — знак вписывается в коробку и НИКОГДА не растягивается,
   какое бы у исходника ни было соотношение сторон.
   max-width: none обязателен: глобальное правило img { max-width: 100% }
   иначе режет широкие знаки раньше, чем сработает contain. */
.trusted-item img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  /* серый фильтр убран: знаки клиентов и так почти все монохромные, а под
     grayscale + opacity 0.7 они выцветали до состояния «заглушка» */
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.trusted-marquee:hover .trusted-item img {
  opacity: 1;
}

/* Анимация — украшение. Если система просит покой, отдаём обычную ленту,
   которую можно пролистать пальцем или колесом. */
@media (prefers-reduced-motion: reduce) {
  .trusted-track {
    animation: none;
  }

  .trusted-marquee {
    overflow-x: auto;
  }
}

@media (max-width: 768px) {
  .trusted-item {
    width: 170px;
    height: 88px;
    margin-right: 40px;
  }

  .trusted-track {
    animation-duration: 34s;
  }
}


/* прежняя мобильная сетка логотипов удалена — теперь лента, её медиазапрос выше */

/* ==========================================
   RESPONSIVE - ADDITIONAL
   ========================================== */
@media (max-width: 1024px) {
  .service-single {
    grid-template-columns: 1fr;
  }
  
  .service-single__sidebar {
    position: static;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .service-item {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  
  .service-item__aside {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
    width: 100%;
    gap: 10px;
  }
  
  .service-item__aside .btn {
    flex: 1;
    min-width: 120px;
  }
  
  .contact-cards {
    grid-template-columns: 1fr;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
  
  .cta-box__actions {
    width: 100%;
    justify-content: center;
  }
  
  .service-item__features {
    grid-template-columns: 1fr;
  }
}

/* Forms generic */
.contact-form input,
.contact-form select,
.contact-form textarea,
.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

@media (max-width: 480px) {
  .contact-form-wrapper {
    padding: 24px;
  }
  .map-placeholder iframe {
    width: 100% !important;
  }
}

/* ==========================================
   SEO CONTENT SECTION
   ========================================== */
.seo-section {
  background: linear-gradient(180deg, #eef3fc 0%, var(--bg-gray) 100%);
  position: relative;
}
.seo-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #4f46e5);
}

.seo-content {
  max-width: 940px;
  margin: 0 auto;
  line-height: 1.8;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 44px 48px;
  box-shadow: var(--shadow-lg);
}

.seo-content > h2:first-child {
  margin-top: 0;
}

.seo-content h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 34px 0 16px;
  color: var(--text-color);
  line-height: 1.28;
  letter-spacing: -0.02em;
  padding-left: 18px;
  position: relative;
}
.seo-content h2::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary-color), #4f46e5);
}

.seo-content h3 {
  font-size: 19px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--text-color);
}

.seo-content p {
  color: #46566f;
  margin-bottom: 15px;
  font-size: 16px;
}

.seo-content p strong,
.seo-content b {
  color: var(--text-color);
  font-weight: 700;
}

/* Маркированные списки — плитки с иконкой */
.seo-content ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 22px;
  display: grid;
  gap: 10px;
}
.seo-content ul li {
  position: relative;
  padding: 13px 16px 13px 46px;
  background: var(--bg-gray);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 15.5px;
  color: #46566f;
  line-height: 1.55;
  transition: var(--transition);
}
.seo-content ul li:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: var(--shadow-sm);
}
.seo-content ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--primary-color), #4f46e5);
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Нумерованный список этапов — бейджи с номерами */
.seo-content ol {
  list-style: none;
  counter-reset: seo-step;
  padding: 0;
  margin: 10px 0 22px;
  display: grid;
  gap: 12px;
}
.seo-content ol li {
  counter-increment: seo-step;
  position: relative;
  padding: 15px 18px 15px 60px;
  background: var(--bg-gray);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 15.5px;
  color: #46566f;
  line-height: 1.6;
}
.seo-content ol li::before {
  content: counter(seo-step);
  position: absolute;
  left: 14px; top: 14px;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-color), #4f46e5);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
}

.seo-list {
  list-style: none;
  margin: 16px 0;
  padding-left: 0;
}

.seo-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

.seo-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success-color);
  font-weight: 700;
  font-size: 18px;
}

.seo-list li strong {
  color: var(--text-color);
  font-weight: 600;
}

/* прежний дубль правил .check-list удалён — рабочий набор выше, у плиток */

.seo-cta {
  margin-top: 28px;
  padding: 28px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border-radius: 16px;
  text-align: center;
  color: var(--white);
}

.seo-cta h3 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 12px;
  margin-top: 0;
}

.seo-cta p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  margin-bottom: 18px;
}

.seo-cta .btn {
  margin-top: 10px;
}

.seo-cta-inline {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  padding: 30px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.seo-cta-text {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================
   ERROR PAGES
   ========================================== */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-code {
  font-size: 120px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 20px;
}

.error-title {
  font-size: 32px;
  margin-bottom: 15px;
}

.error-text {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.error-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================
   RESPONSIVE IMPROVEMENTS
   ========================================== */
@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .process-step {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .service-single__content h2 {
    font-size: 22px;
  }
  
  .service-single__content h3 {
    font-size: 18px;
  }
  
  .check-list li {
    padding: 12px 14px;
  }
  
  .faq summary {
    padding: 15px;
  }
  
  .faq details p {
    padding: 15px;
  }
}

/* ==========================================
   FAQ
   ========================================== */
.faq {
  max-width: 900px;
  margin-top: 18px;
}

.faq details {
  background: var(--bg-gray);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0 14px;
}

.faq details + details { margin-top: 10px; }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--primary-color);
  font-weight: 700;
  font-size: 18px;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p { margin: 0 0 14px 0; color: var(--text-muted); }

/* ==========================================
   SEO RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  .seo-content {
    padding: 26px 20px;
    border-radius: 16px;
  }
  .seo-content ul li {
    padding: 12px 14px 12px 42px;
    font-size: 15px;
  }
  .seo-content ol li {
    padding: 14px 15px 14px 56px;
  }
  .seo-content h2 {
    font-size: 22px;
  }

  .seo-content h3 {
    font-size: 18px;
  }

  .seo-cta {
    padding: 22px 16px;
  }
  
  .seo-cta h3 {
    font-size: 20px;
  }
  
  .seo-cta p {
    font-size: 14px;
  }
  
  .seo-cta-inline {
    flex-direction: column;
    text-align: center;
  }
  
  .error-code {
    font-size: 80px;
  }
  
  .error-title {
    font-size: 24px;
  }
  
  .error-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .error-actions .btn {
    width: 100%;
  }
}

/* Уплотнение отступов на страницах услуг */
body.page-services .section,
body.page-service-single .section {
  padding: 48px 0;
}

@media (max-width: 480px) {
  body.page-services .section,
  body.page-service-single .section { padding: 36px 0; }
  .service-single { gap: 20px; }
}

/* Мобильные устройства ≤420px (в т.ч. 380px) — как на других страницах */
@media (max-width: 420px) {
  .container {
    padding: 0 12px;
  }
  
  .services-hero__content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .services-hero {
    padding: 24px 0 32px;
  }
  
  .services-hero__title {
    font-size: 24px;
  }
  
  .services-hero__stats {
    gap: 16px;
    flex-wrap: wrap;
  }
  
  .stat-item {
    min-width: calc(50% - 8px);
  }
  
  .stat-number {
    font-size: 18px;
  }
  
  .stat-label {
    font-size: 11px;
  }
  
  .service-item {
    padding: 16px;
    gap: 16px;
  }
  
  .service-item__icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
  
  .service-item__title {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .service-item__description {
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .service-item__aside {
    flex-direction: column;
    gap: 10px;
  }
  
  .service-item__aside .btn {
    width: 100%;
    min-width: 0;
  }
  
  .service-item__price {
    font-size: 22px;
    text-align: left;
  }
  
  .service-item__features {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .cta-box {
    padding: 20px 16px;
  }
  
  .cta-box__title {
    font-size: 22px;
  }
  
  .cta-box__text {
    font-size: 15px;
  }
  
  .cta-box__actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-box__actions .btn {
    width: 100%;
  }
  
  .seo-content h2 {
    font-size: 20px;
  }
  
  .seo-content h3 {
    font-size: 17px;
  }
  
  .seo-cta {
    padding: 18px 14px;
  }
  
  .seo-cta h3 {
    font-size: 18px;
  }
  
  .seo-cta .btn {
    width: 100%;
  }
}


/* ==========================================
   ФОТОГРАФИИ И ДОВЕРИЕ (20.08.2026)

   Сайт с самого начала был свёрстан под фотографии — пустые .hero__image,
   .about-image и .service-single__image стояли в разметке с запуска. Здесь
   они наконец оформлены, плюс подписи под кадрами: подпись объясняет, что
   именно на снимке, и работает на доверие сильнее самого снимка.
   ========================================== */

/* --- первый экран: фото фоном на всю секцию --- */
/* Кадр лежит подложкой под всей секцией и уходит в лёгкий blur: фотография
   создаёт настроение и доказывает, что работу делают руками, но не спорит с
   заголовком за внимание. Разметку не трогаем — .hero__image просто выходит
   из потока грида, и текстовый блок сам занимает левую половину. */
.hero {
  position: relative;
  overflow: hidden;
  /* фон до загрузки кадра — чтобы белый текст не оказался на белом */
  background: #1e3a8a;
  min-height: 520px;
  display: flex;
  align-items: center;
}

/* ВАЖНО: .container позиционировать НЕЛЬЗЯ. .hero__image лежит внутри него,
   и position:relative на контейнере делает его containing block — кадр тогда
   садится по ширине контейнера с его отступами вместо всей секции, а вуаль
   накрывает заголовок. Поднимаем над фото сам текстовый блок. */
.hero .container {
  width: 100%;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__image,
.hero__image picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  display: block;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  border-radius: 0;
  box-shadow: none;
  filter: blur(4px);
  /* blur размывает и сами края кадра — увеличиваем, чтобы не было светлой каймы */
  transform: scale(1.08);
}

/* Синяя вуаль поверх фото: слева плотная под текст, справа прозрачнее,
   чтобы мастер и оборудование остались узнаваемыми. */
.hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(23, 46, 110, 0.94) 0%, rgba(30, 64, 175, 0.88) 38%,
                    rgba(37, 99, 235, 0.62) 70%, rgba(59, 130, 246, 0.46) 100%);
}

/* --- фото с подписью (о компании, страница услуги) --- */
.about-image,
.service-single__image {
  margin: 0;
}

.about-image img,
.service-single__image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* На странице услуги колонка шире, и кадр 3:2 съедал почти весь первый экран —
   текст услуги уходил под сгиб. Режем до 16:9. */
.service-single__image img {
  aspect-ratio: 16 / 9;
}

.about-image figcaption,
.service-single__image figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  padding-left: 12px;
  border-left: 3px solid var(--primary-color);
}

.service-single__image {
  margin-bottom: 30px;
}

/* --- фото в карточке услуги --- */
/* Карточка имеет padding 30px, а снимок должен доходить до её краёв —
   отсюда отрицательные поля. Иконка «наезжает» на нижний край фото:
   так остаётся привычный иконочный язык сайта и появляется глубина. */
.service-card__photo {
  display: block;
  margin: -30px -30px 0;
  overflow: hidden;
  background: var(--bg-gray);
}

.service-card__photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card__photo img {
  transform: scale(1.04);
}

.service-card__photo + .service-card__icon {
  position: relative;
  margin-top: -32px;
  margin-bottom: 16px;
  border: 3px solid var(--white);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

/* --- фото в строке списка услуг --- */
.service-item__photo {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-gray);
  align-self: start;
}

.service-item__photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-item:hover .service-item__photo img {
  transform: scale(1.04);
}

.service-item__photo .service-item__icon {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 17px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
}

/* колонка под фото вместо прежних 80px под иконку */
.services-list .service-item {
  grid-template-columns: 220px 1fr auto;
}

@media (max-width: 992px) {
  .services-list .service-item {
    grid-template-columns: 160px 1fr;
  }
}

@media (max-width: 640px) {
  .services-list .service-item {
    grid-template-columns: 1fr;
  }
  .service-item__photo .service-item__icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

/* --- фото документов на странице для организаций --- */
.org-figure {
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: 24px;
  align-items: center;
}

.org-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
}

.org-figure figcaption {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

.org-figure figcaption strong {
  color: var(--text-color);
}

@media (max-width: 768px) {
  .org-figure {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ==========================================
   КНОПКА МЕССЕНДЖЕРА МАКС
   ========================================== */

.icon-max {
  display: block;
  width: 1em;
  height: 1em;
}

.floating-btn--max {
  background: linear-gradient(135deg, #4b6cf6 0%, #8b5cf6 100%);
  font-size: 30px;
}

.social-link--max:hover,
.social-button--max:hover {
  background: linear-gradient(135deg, #4b6cf6 0%, #8b5cf6 100%);
  border-color: transparent;
  color: var(--white);
}

.social-link .icon-max {
  font-size: 17px;
}

.social-button .icon-max {
  font-size: 20px;
}

/* --- первый экран: вторая кнопка на синем --- */
/* .btn-outline красится в --primary-color, а фон первого экрана теперь тоже
   синий — кнопка «Наши услуги» на нём практически исчезала. */
.hero .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.hero .btn-outline:hover {
  background: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
}

/* --- аватары в отзывах --- */
/* Шесть одинаковых серых силуэтов читались как заглушка. Инициалы на
   спокойном фоне выглядят как живые люди и ничего о них не выдумывают. */
.review-card__avatar {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--white);
  flex-shrink: 0;
}

.review-card__avatar--1 { background: #2563eb; }
.review-card__avatar--2 { background: #0ea5e9; }
.review-card__avatar--3 { background: #1e40af; }
.review-card__avatar--4 { background: #14b8a6; }
.review-card__avatar--5 { background: #6366f1; }

/* На узких экранах текст занимает всю ширину и ложится уже на весь кадр —
   вуаль делаем равномерной и чуть плотнее, иначе строки попадают на светлое
   окно в левой части снимка. */
@media (max-width: 1024px) {
  .hero {
    min-height: 0;
  }

  /* Плотность подбиралась по факту: на 0.9 фотография пропадала совсем и первый
     экран выглядел плоской синей плашкой. Держим вуаль плотнее у заголовка и
     отпускаем к низу, где строки короче. */
  .hero__image::after {
    background: linear-gradient(180deg, rgba(23, 46, 110, 0.88) 0%, rgba(30, 64, 175, 0.8) 45%,
                                rgba(29, 78, 216, 0.72) 100%);
  }

  /* на телефоне подключается вертикальный кроп — центрируем его как есть */
  .hero__image img {
    object-position: 50% 40%;
  }
}

/* ==========================================
   ШАПКА НА ПЛАНШЕТАХ
   ========================================== */
/* Бургер включался только с 768px, а горизонтальное меню перестаёт помещаться
   заметно раньше: на 800–950px логотип наезжает на «Главная», «О компании»
   ломается на две строки, а кнопка «Заказать услугу» уезжает за край экрана.
   Переносим переключение на 991px. Выпадающее меню открывается тем же
   .header__nav.active — оно специфичнее и переживает это скрытие. */
@media (min-width: 769px) and (max-width: 991px) {
  .header__nav,
  .header__cta {
    display: none;
  }

  .burger-menu {
    display: flex;
  }
}
