/* ============================================================
   AMAN — services.css
   Десктоп + мобильная версия
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   DESKTOP — базовые стили
══════════════════════════════════════════════════════════ */

.services-page {
  display: flex;
  padding-top: 140px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ── Sidebar ─────────────────────────────────────────────── */

.services-sidebar {
  width: 280px;
  padding: 50px;
  position: sticky;
  top: 120px;
  align-self: flex-start;
  height: auto;
  z-index: 1;
}

.service-link {
  display: block;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  color: white;
  text-decoration: none;
  transition: .4s;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  letter-spacing: .5px;
}

.service-link:hover {
  background: #d8c38a;
  color: black;
  border-color: #d8c38a;
}

.active-link {
  background: #d8c38a;
  color: black;
  border-color: #d8c38a;
}

/* ── Content ─────────────────────────────────────────────── */

.services-content {
  flex: 1;
  padding: 60px;
  max-width: 1000px;
  z-index: 1;
}

.service-block {
  margin-bottom: 45px;
  padding: 34px;
  background: rgba(255,255,255,.03);
  border-radius: 30px;
  transition: background .45s ease, box-shadow .45s ease, border .45s ease;
  border: 1px solid transparent;
}

.service-block.active-service {
  background: linear-gradient(135deg,
    rgba(216,194,138,.72),
    rgba(216,194,138,.58));
  border: 1px solid rgba(216,194,138,.55);
  box-shadow: 0 0 45px rgba(216,194,138,.18),
              inset 0 0 35px rgba(216,194,138,.12);
  backdrop-filter: blur(14px);
}

.service-hero-image {
  width: 100%;
  border-radius: 28px;
  margin-bottom: 18px;
  display: block;
  object-fit: cover;
}

.service-block h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 48px;
  margin-bottom: 30px;
  line-height: 1.1;
}

.service-block h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  margin-top: 28px;
  margin-bottom: 12px;
  color: #d8c38a;
  font-size: 28px;
}

.service-block p {
  line-height: 1.7;
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 14px;
}

.service-block li {
  margin-bottom: 16px;
  line-height: 1.6;
  font-size: 18px;
}

.compact-text {
  white-space: normal;
  line-height: 1.55;
  margin: 0;
}

/* ── Order button ────────────────────────────────────────── */

.service-order-btn {
  display: inline-block;
  margin-top: 50px;
  padding: 18px 42px;
  background: #d8c38a;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  border-radius: 18px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 1px;
  transition: .3s;
}

.service-order-btn:hover {
  background: #e8d4a0;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(216,194,138,.3);
}

/* ── Accordion ───────────────────────────────────────────── */

.accordion {
  margin-top: 30px;
}

.accordion-item {
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
}

.accordion-btn {
  width: 100%;
  padding: 22px;
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  text-align: left;
  cursor: pointer;
  transition: .3s;
  line-height: 1.4;
}

.accordion-btn:hover {
  background: rgba(216,194,138,.1);
  color: #d8c38a;
}

.accordion-item.active .accordion-btn {
  color: #d8c38a;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  line-height: 1.7;
  font-size: 16px;
  white-space: pre-line;
  transition: max-height .45s ease, padding .3s ease;
}

.accordion-content p {
  margin: 0 0 12px;
}

.accordion-item.active .accordion-content {
  max-height: 5000px;
  padding: 8px 22px 20px;
}

/* ── Header z-index fix ──────────────────────────────────── */

.header {
  z-index: 5000;
  position: fixed;
}

.logo {
  position: relative;
  z-index: 100000;
  pointer-events: auto;
  cursor: pointer;
}

.menu,
.lang-switcher {
  position: relative;
  z-index: 100000;
}

/* ══════════════════════════════════════════════════════════
   TABLET  (≤ 1200px)
══════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {

  .services-content {
    padding: 40px;
    max-width: 100%;
  }

  .service-block { padding: 40px; }
  .service-block h1 { font-size: 40px; }
  .service-block p  { font-size: 18px; }
}

/* ══════════════════════════════════════════════════════════
   MOBILE  (≤ 768px)
   Хедер: бургер справа (из mobile-menu.js)
   Сайдбар: горизонтальные табы с прокруткой
══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── Header — убираем меню и языки, бургер из JS ──────── */
  .header {
    padding: 14px 20px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .menu         { display: none !important; }
  .lang-switcher { display: none !important; }

  /* ── Page layout ─────────────────────────────────────────── */
  .services-page {
    flex-direction: column;
    padding-top: 70px;
  }

  /* ── Sidebar → горизонтальные табы ───────────────────────── */
  .services-sidebar {
    position: sticky;
    top: 58px;
    z-index: 100;
    width: 100%;
    padding: 0;
    background: rgba(7,9,13,.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(216,194,138,.12);
    display: flex;
    gap: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .services-sidebar::-webkit-scrollbar { display: none; }

  .service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 16px 24px;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: rgba(240,237,230,.55);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: transparent;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color .3s ease, border-color .3s ease;
  }

  .service-link:hover {
    background: transparent;
    color: #d8c38a;
    border-bottom-color: rgba(216,194,138,.4);
  }

  .active-link {
    background: transparent !important;
    color: #d8c38a !important;
    border-bottom: 2px solid #d8c38a !important;
  }

  /* ── Content ─────────────────────────────────────────────── */
  .services-content {
    padding: 20px 16px 40px;
  }

  /* Скрываем неактивные блоки на мобилке */
  .service-block {
    display: none;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .service-block.active-service {
    display: block;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
  }

  /* ── Hero image ──────────────────────────────────────────── */
  .service-hero-image {
    border-radius: 20px;
    margin-bottom: 20px;
    max-height: 240px;
    object-fit: cover;
    object-position: center top;
  }

  /* ── Typography ──────────────────────────────────────────── */
  .service-block h1 {
    font-size: 30px;
    margin-bottom: 16px;
    line-height: 1.2;
  }

  .service-block h2 {
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 10px;
  }

  .service-block p {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 12px;
  }

  .service-block li {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .service-block ul {
    padding-left: 20px;
  }

  /* ── Accordion ───────────────────────────────────────────── */
  .accordion { margin-top: 20px; }

  .accordion-item {
    margin-bottom: 10px;
    border-radius: 14px;
    border-color: rgba(255,255,255,.07);
  }

  .accordion-btn {
    font-size: 15px;
    padding: 16px 18px;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 500;
    line-height: 1.4;
  }

  .accordion-btn:hover {
    background: rgba(216,194,138,.08);
    color: #d8c38a;
  }

  .accordion-content {
    font-size: 14px;
    line-height: 1.7;
    padding: 0 18px;
  }

  .accordion-item.active .accordion-content {
    padding: 6px 18px 16px;
  }

  /* ── Order button ────────────────────────────────────────── */
  .service-order-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 28px;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }
}

@media (max-width: 380px) {
  .service-link { padding: 14px 16px; font-size: 11px; }
  .service-block h1 { font-size: 26px; }
  .service-hero-image { max-height: 200px; }
}