/* ═══════════════════════════════════════════════════
   servizi.css — стили для страниц услуг
   Не трогает style.css и главную страницу
   ═══════════════════════════════════════════════════ */

/* ── Nav: tagline вместо ссылок ── */
.nav-tagline {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: #888;
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .nav-tagline {
    display: none;
  }
}

/* ── Hero сервисной страницы ── */
.serv-hero {
  background-color: #f2f2f2;
  min-height: 300px;
}

.serv-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 300px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.serv-hero-text {
  flex: 1;
  max-width: 620px;
}

.serv-hero .serv-hero-title {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-weight: 700;
  font-size: 50px;
  line-height: 1.1;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.serv-hero-sub {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 26px;
  font-weight: 400;
  color: #444;
  margin-bottom: 16px;
}

.serv-hero-whatsapp {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #999;
}

.serv-hero-img {
  flex-shrink: 0;
  width: 242px;
  align-self: stretch;
  overflow: hidden;
}

.serv-hero-photo {
  width: 242px;
  height: 100%;
  min-height: 245px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .serv-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    gap: 24px;
  }

  .serv-hero .serv-hero-title {
    font-size: 38px;
  }

  .serv-hero-sub {
    font-size: 20px;
  }

  .serv-hero-img {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    align-self: center;
  }

  .serv-hero-photo {
    width: 120px;
    height: 120px;
    min-height: unset;
    border-radius: 8px;
  }
}

/* ── Breadcrumbs ── */
.serv-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.serv-breadcrumbs a {
  color: #aaa;
  text-decoration: none;
}

.serv-breadcrumbs a:hover {
  color: #fff;
}

.serv-breadcrumbs span {
  color: #666;
}

.serv-breadcrumb-current {
  color: inherit;
}

/* ── Основной контентный блок ── */
.serv-content {
  background: #fff;
  padding: 64px 0 72px;
}

.serv-content-inner {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

/* Основная колонка */
.serv-main {
  flex: 1;
}

.serv-section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.serv-sub-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #1a1a1a;
  margin-top: 32px;
  margin-bottom: 16px;
}

.serv-text {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #444;
  line-height: 1.7;
  margin-bottom: 16px;
}

.serv-list {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 19px;
  color: #444;
  line-height: 1.7;
  padding-left: 24px;
  margin-bottom: 32px;
}

.serv-list li {
  margin-bottom: 8px;
}

/* Блок цены */
.serv-price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 32px 0 24px;
}

.serv-price-label {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 20px;
  color: #444;
}

.serv-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #006600;
}

/* CTA кнопка */
.serv-cta-btn {
  display: inline-block;
  background: #990099;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 20px;
  padding: 14px 40px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.serv-cta-btn:hover {
  background: #770077;
  transform: translateY(-1px);
}

.serv-cta-note {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 15px;
  color: #999;
  margin-top: 10px;
}

/* Сайдбар */
.serv-sidebar {
  flex-shrink: 0;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.serv-sidebar-box {
  background: #5a7a8a;
  border-radius: 8px;
  padding: 24px;
}

.serv-sidebar-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.serv-sidebar-list {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 17px;
  color: #e8e8e8;
  padding-left: 18px;
  line-height: 1.8;
}

.serv-sidebar-text {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 16px;
  color: #dde4e8;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .serv-content-inner {
    flex-direction: column;
    gap: 40px;
  }

  .serv-sidebar {
    width: 100%;
  }

  .serv-section-title {
    font-size: 24px;
  }
}

/* ── Заголовок с подзаголовком ── */
.serv-title-sub {
  font-size: 0.75em;
  font-weight: 400;
  color: #666;
  letter-spacing: 0;
}

/* ── Блок проблем ── */
.serv-problems-box {
  background: #fff8ff;
  border-left: 3px solid #990099;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.serv-problems-intro {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 18px;
  color: #666;
  margin-bottom: 12px;
}

.serv-problems-list {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 18px;
  color: #444;
  padding-left: 20px;
  line-height: 1.9;
  list-style: none;
  padding-left: 0;
}

.serv-problems-list li::before {
  content: "— ";
  color: #990099;
  font-weight: 700;
}

/* ── FAQ ── */
.serv-faq-title {
  margin-top: 48px;
}

.serv-faq {
  margin: 0 0 32px;
  border-top: 1px solid #e8e8e8;
}

.serv-faq-item {
  border-bottom: 1px solid #e8e8e8;
  padding: 20px 0;
}

.serv-faq-q {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #1a1a1a;
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
}

.serv-faq-q::before {
  content: "Q";
  position: absolute;
  left: 0;
  font-size: 13px;
  font-weight: 700;
  color: #990099;
  background: #f5e6f5;
  border-radius: 4px;
  padding: 1px 5px;
  top: 2px;
}

.serv-faq-a {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 17px;
  color: #555;
  line-height: 1.65;
  padding-left: 24px;
}

/* ── Trust / Stats block ── */
.serv-trust-title {
  margin-top: 48px;
}

.serv-stats {
  display: flex;
  gap: 0;
  margin: 28px 0 24px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
}

.serv-stat-item {
  flex: 1;
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid #e8e8e8;
}

.serv-stat-item:last-child {
  border-right: none;
}

.serv-stat-number {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: #990099;
  line-height: 1;
  margin-bottom: 8px;
}

.serv-stat-label {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 14px;
  color: #888;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .serv-stats {
    flex-wrap: wrap;
  }
  .serv-stat-item {
    flex: 1 1 50%;
    border-right: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
  }
  .serv-stat-item:nth-child(2n) {
    border-right: none;
  }
  .serv-stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

/* ── Dark sidebar box ── */
.serv-sidebar-box--dark {
  background: #333333 !important;
}

.serv-sidebar-box--dark .serv-sidebar-title {
  color: #ffffff;
}

.serv-sidebar-box--dark .serv-sidebar-list {
  color: #dddddd;
}

/* ── FAQ accordion ── */
.serv-faq-a {
  display: none;
}

.serv-faq-open .serv-faq-a {
  display: block;
}

.serv-faq-q {
  cursor: pointer;
  user-select: none;
}

.serv-faq-q::after {
  content: " ＋";
  color: #990099;
  font-weight: 400;
  float: right;
}

.serv-faq-open .serv-faq-q::after {
  content: " −";
}

/* ══════════════════════════════════════════
   ВНУТРЕННИЕ ССЫЛКИ (перелинковка)
   Меняй только цвета — структура останется
   ══════════════════════════════════════════ */

/* Ссылки в основном тексте страницы */
.serv-main a {
  color: #990099;                  /* ← цвет ссылки: меняй здесь */
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.serv-main a:hover {
  color: #770077;                  /* ← цвет при наведении: меняй здесь */
  text-decoration-color: #770077;
}

/* Кнопка CTA внутри .serv-main — защита цвета текста */
.serv-main .serv-cta-btn,
.serv-main .serv-cta-btn:hover {
  color: #fff;
  text-decoration-color: transparent;
}

/* Ссылки внутри FAQ */
.serv-faq-a a {
  color: #990099;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.serv-faq-a a:hover {
  color: #770077;
  text-decoration-color: #770077;
}

/* ══════════════════════════════════════════
   БЛОК SERVIZI CORRELATI (сайдбар)
   ══════════════════════════════════════════ */

.serv-sidebar-box .serv-correlati-title,
.serv-correlati-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #1a1a1a;                  /* ← цвет заголовка блока */
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.serv-correlati-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.serv-correlati-list li {
  padding-left: 14px;
  position: relative;
}

.serv-correlati-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #990099;                  /* ← цвет стрелки: меняй здесь */
  font-size: 14px;
  line-height: 1.6;
}

.serv-correlati-list a {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 16px;
  color: #5a7a8a;                  /* ← цвет ссылок в сайдбаре: меняй здесь */
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.2s;
}

.serv-correlati-list a:hover {
  color: #3d5a68;                  /* ← цвет при наведении: меняй здесь */
  text-decoration: underline;
}

/* ══════════════════════════════════════════
   БЛОК ПЕРЕКРЁСТНЫХ ССЫЛОК (serv-links-box)
   Карточка-мост между услугами внутри текста
   ══════════════════════════════════════════ */

.serv-links-box {
  background: #f4f8ff;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  padding: 22px 26px;
  margin: 28px 0;
}

.serv-links-box p {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #2d2d2d;
  margin: 0 0 16px;
}

.serv-links-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.serv-links-box li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.serv-links-box li::before {
  content: "→";
  color: #2563eb;
  font-size: 1.1em;
  flex-shrink: 0;
}

.serv-links-box a {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 0.97rem;
  color: #1a3a6e;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #bad0f5;
  transition: color 0.2s, border-color 0.2s;
}

.serv-links-box a:hover {
  color: #2563eb;
  border-color: #2563eb;
}

@media (max-width: 600px) {
  .serv-links-box ul {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════
   МОДИФИКАТОР: блок Servizi correlati
   Независим от остальных sidebar-box блоков
   ══════════════════════════════════════════ */

.serv-sidebar-box--correlati {
  background: transparent;
}

.serv-sidebar-box--correlati .serv-sidebar-title {
  color: #1a1a1a;
}

.serv-sidebar-box--correlati .serv-sidebar-list {
  list-style: none;
  color: #444;
  padding-left: 0;
  margin: 0;
}

.serv-sidebar-box--correlati .serv-sidebar-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 0;
}

.serv-sidebar-box--correlati .serv-sidebar-list li::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-right: 2px solid #5a7a8a;
  border-bottom: 2px solid #5a7a8a;
  transform: rotate(-45deg);
}

.serv-sidebar-box--correlati .serv-sidebar-list a {
  color: #5a7a8a;
  text-decoration: underline;
  text-decoration-color: #5a7a8a;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.serv-sidebar-box--correlati .serv-sidebar-list a:hover {
  color: #3d5a68;
  text-decoration-color: #3d5a68;
}


/* ══════════════════════════════════════════
   HUB HERO (/servizi/)
   Фото прибито к низу, голова вылезает в навбар
   ══════════════════════════════════════════ */

/* Навбар поверх картинки — клики работают */
.band-nav {
  position: relative;
  z-index: 20;
}

/* Герой: overflow visible, чтобы картинка вылезала вверх */
.hub-hero {
  overflow: visible !important;
}

/* Inner становится точкой отсчёта для absolute-картинки */
.hub-hero .serv-hero-inner {
  position: relative;
  align-items: center;
}

/* Картинка вырвана из потока — не раздувает блок */
.hub-hero-photo-wrap {
  position: absolute;
  right: 155px;
  bottom: 0;
  pointer-events: none;
  z-index: 25; /* выше навбара (20), клики проходят сквозь */
}

.hub-hero-photo {
  display: block;
  height: 348px;   /* 280px герой + 68px вылезающих в навбар */
  width: auto;
  object-fit: contain;
  object-position: bottom center;
}

@media (max-width: 768px) {
  .hub-hero-photo-wrap {
    position: static;
    align-self: flex-end;
    margin-top: auto;
  }
  .hub-hero-photo {
    height: 200px;
    width: auto;
  }
  .hub-hero.serv-hero,
  .hub-hero .serv-hero-inner {
    min-height: auto;
    padding-bottom: 0;
  }
}


/* ── Мобильное меню: убираем лишние отступы между пунктами ── */
.mobile-nav a {
  padding-top: 12px;
  padding-bottom: 12px;
}


/* ── Intro блок: иконка + текст ── */
.hub-intro-row {
  display: flex;
  align-items: center;
  gap: 52px;
}

.hub-intro-icon {
  flex-shrink: 0;
  width: 187px;
  opacity: 0.35;
}

.hub-intro-icon img {
  display: block;
  width: 187px;
  height: 172px;
}

@media (max-width: 768px) {
  .hub-intro-icon {
    display: none;
  }
}


/* ── Hub stats bar ── */
.hub-stats {
  display: flex;
  margin-top: 36px;
  background: #5a7a8a;
  border-radius: 10px;
  overflow: hidden;
}

.hub-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px 20px;
  border-right: 1px solid rgba(255,255,255,0.25);
}

.hub-stat-item:last-child {
  border-right: none;
}

.hub-stat-icon {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.hub-stat-icon img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 1;
}

.hub-stat-number {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #1a1a1a;
  line-height: 1;
  margin-bottom: 8px;
}

.hub-stat-label {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .hub-stats {
    flex-wrap: wrap;
  }
  .hub-stat-item {
    flex: 1 1 50%;
    border-bottom: 1px solid rgba(255,255,255,0.25);
  }
  .hub-stat-item:nth-child(2n) {
    border-right: none;
  }
  .hub-stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}


/* ══════════════════════════════════════════
   HUB /servizi/ — все стили страницы
   ══════════════════════════════════════════ */

.hub-intro {
  background: #fff;
  padding: 56px 0 0;
}

.hub-intro-text {
  flex: 1;
}

.hub-intro-text p {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 20px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* Trust bar (старый, на случай если используется) */
.hub-trust {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 36px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
}

.hub-trust-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-right: 1px solid #e8e8e8;
}

.hub-trust-item:last-child { border-right: none; }

.hub-trust-icon { font-size: 22px; flex-shrink: 0; }

.hub-trust-label {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 15px;
  color: #444;
  line-height: 1.3;
}

.hub-trust-label strong {
  font-weight: 700;
  color: #1a1a1a;
  display: block;
}

@media (max-width: 768px) {
  .hub-trust { flex-direction: column; }
  .hub-trust-item { border-right: none; border-bottom: 1px solid #e8e8e8; width: 100%; }
  .hub-trust-item:last-child { border-bottom: none; }
}

/* Группы услуг */
.hub-groups {
  background: #fff;
  padding: 48px 0 64px;
}

.hub-group { margin-bottom: 48px; }
.hub-group:last-child { margin-bottom: 0; }

.hub-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.hub-group-icon {
  font-size: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.hub-group-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.hub-card {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hub-card:hover {
  border-color: #990099;
  box-shadow: 0 2px 12px rgba(153,0,153,0.07);
}

.hub-card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #333333;
  margin-bottom: 8px;
  line-height: 1.3;
}

.hub-card-desc {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 20px;
  color: #666;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
}

.hub-card-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #006600;
  margin-bottom: 10px;
  display: block;
}

.hub-card-footer {
  margin-top: auto;
}

.hub-card-link {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #990099;
  text-decoration: none;
  white-space: normal;
  transition: color 0.2s;
}

.hub-card-link:hover {
  color: #770077;
  text-decoration: underline;
}

.hub-card-link::after { content: " →"; }

/* Global CTA */
.hub-cta {
  background: #f9f2f9;
  border-top: 1px solid #e8d0e8;
  border-bottom: 1px solid #e8d0e8;
  padding: 48px 0;
  text-align: center;
}

.hub-cta-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.hub-cta-sub {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 18px;
  color: #555;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* GEO блок */
.hub-geo {
  background: #fff;
  padding: 40px 0;
  border-bottom: 1px solid #f0f0f0;
}

.hub-geo-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.hub-geo-list {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 18px;
  color: #444;
  margin-bottom: 6px;
}

.hub-geo-note {
  font-family: 'Source Sans 3', 'Myriad Pro', sans-serif;
  font-size: 15px;
  color: #888;
}

/* FAQ */
.hub-faq {
  background: #fff;
  padding: 48px 0 64px;
}

.hub-faq-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
