/* IT Helpdesk — yalnız tünd rejim (gündüz rejimi yoxdur) */
:root {
  --bg-deep: #1a1d24;
  --bg-panel: #252830;
  --bg-elevated: #2d323c;
  --bg-hover: #363b47;
  --border: #3d424d;
  --text: #f1f3f5;
  --text-muted: #adb5bd;
  /* Kart və uzun mətn üçün bir qədər yüksək kontrast */
  --text-readable: #c8ced9;
  --accent: #6ea8fe;
  --accent-dim: rgba(110, 168, 254, 0.18);
  --accent-hover: #9ec5fe;
  /* Yalnız mega axtarış düyməsi üçün tünd qırmızı */
  --danger: #9f1818;
  --danger-hover: #7a1212;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --font-display: "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --shadow-soft: 0 1px 4px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 2px 14px rgba(0, 0, 0, 0.35);
  --header-h: 4.25rem;
  --max: 72rem;
  --doc-sidebar-bg: #252830;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-deep);
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.site-logo--branded {
  flex-shrink: 0;
}

.site-logo__picture {
  display: block;
  line-height: 0;
}

.site-logo__img {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 520px) {
  .site-logo__img {
    height: 2.25rem;
    max-width: 2.75rem;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  cursor: pointer;
  color: var(--text);
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 1.25rem;
  margin: 0 auto;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.site-nav__link {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}

.site-nav__link:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.site-nav__link.is-active {
  color: #fff;
  background: var(--accent);
}

.site-main {
  padding-bottom: 4rem;
}

/* Sections */
.section {
  padding: 3.5rem 1.25rem;
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__head {
  margin-bottom: 2rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

.section__intro {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

/* Top mega search: sharp hotel-booking style bar + filter chips */
.mega-search {
  padding: 1.25rem 1.25rem 1rem;
  position: relative;
  z-index: 1;
}

.mega-search__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.mega-search__kicker {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 1.1rem;
  line-height: 1.25;
}

.mega-search__frame {
  padding: 4px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: var(--shadow-soft);
}

.mega-search__stack {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 0;
}

/* Sətir 1: tam enində axtarış + Axtar */
.mega-search__primary-row {
  display: flex;
  align-items: stretch;
  min-height: 3.75rem;
}

.mega-search__primary-row .mega-search__segment--query {
  flex: 1;
  min-width: 0;
  border-right: 1px solid var(--border);
}

.mega-search__primary-row .mega-search__submit {
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 9.5rem);
}

@media (max-width: 480px) {
  .mega-search__primary-row {
    flex-direction: column;
  }

  .mega-search__primary-row .mega-search__segment--query {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .mega-search__primary-row .mega-search__submit {
    min-width: 100%;
    min-height: 3.25rem;
  }
}

/* Sətir 2: kateqoriya və prioritet */
.mega-search__secondary-row {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
}

@media (min-width: 560px) {
  .mega-search__secondary-row {
    grid-template-columns: 1fr 1fr;
  }

  .mega-search__secondary-row .mega-search__segment--select:first-child {
    border-right: 1px solid var(--border);
  }
}

.mega-search__segment {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border: 0;
  min-height: 3.35rem;
}

.mega-search__secondary-row .mega-search__segment--select:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

@media (min-width: 560px) {
  .mega-search__secondary-row .mega-search__segment--select:not(:last-child) {
    border-bottom: 0;
  }
}

.mega-search__segment--query {
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}

.mega-search__seg-icon {
  flex-shrink: 0;
  color: #fff;
  font-size: 1rem;
  opacity: 0.95;
}

.mega-search__query-label {
  flex: 1;
  min-width: 0;
  display: block;
}

.mega-search__query-label--typewriter {
  position: relative;
}

.mega-search__typewriter-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem 0;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-height: 1.5em;
  pointer-events: none;
  user-select: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.mega-search__typewriter-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.mega-search__typewriter-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mega-search__typewriter-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  flex-shrink: 0;
  background: var(--text-muted);
  animation: mega-search-tw-caret 1s steps(1, end) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .mega-search__typewriter-caret {
    animation: none;
    opacity: 1;
  }
}

@keyframes mega-search-tw-caret {
  50% {
    opacity: 0;
  }
}

.mega-search__input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0;
  outline: none;
}

@media (min-width: 640px) {
  .mega-search__input {
    font-size: 1.1rem;
  }

  .mega-search__typewriter-overlay {
    font-size: 1.1rem;
  }
}

.mega-search__input::placeholder {
  color: var(--text-muted);
  opacity: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Xüsusi select: tünd panel, kəskin künclər (native OS siyahısı əvəzi) */
.mega-search__segment--select .mega-custom-select {
  flex: 1;
  min-width: 0;
  position: relative;
}

.mega-custom-select__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: 0;
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.mega-custom-select__trigger:hover {
  background: var(--bg-hover);
}

.mega-custom-select__trigger[aria-expanded="true"] {
  background: var(--bg-panel);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.mega-custom-select__trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mega-custom-select__trigger[aria-expanded="true"] .mega-custom-select__caret i {
  transform: rotate(180deg);
}

.mega-custom-select__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
}

.mega-custom-select__trigger[aria-expanded="true"] .mega-custom-select__value {
  color: var(--text);
}

.mega-custom-select__caret {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.65rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.mega-search .mega-custom-select__caret {
  color: #fff;
}

.mega-custom-select__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 3px);
  z-index: 400;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: var(--shadow-card);
  max-height: 15rem;
  overflow-y: auto;
}

.mega-custom-select__option {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-muted);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.mega-custom-select__option:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.mega-custom-select__option.is-selected {
  background: var(--accent-dim);
  color: var(--accent);
  border-left-color: var(--accent);
}

.mega-search__submit {
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 1rem 1.5rem;
  min-height: 3.5rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--danger);
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.mega-search__submit-icon {
  font-size: 0.95rem;
  opacity: 0.95;
}

.mega-search__submit:hover {
  background: var(--danger-hover);
}

.mega-search__submit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mega-search__hint {
  margin: 0.55rem 0 0;
  min-height: 1.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.mega-search__filters {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.mega-search__filters-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-chip {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.filter-chip:hover {
  color: var(--text);
  border-color: #adb5bd;
}

.filter-chip.is-active {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.filter-chip[data-category="all"].is-active {
  border-color: var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}

.mega-search + .section.services-doc {
  padding-top: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  background: var(--bg-hover);
}

.btn--cta {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  background: var(--accent);
  color: #fff;
  box-shadow: none;
  border-radius: var(--radius-md);
}

.btn--cta:hover {
  background: var(--accent-hover);
}

/* Search */
.search-section {
  padding-top: 0;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 36rem;
  margin-top: 1.25rem;
  padding: 0.65rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.search-field__icon {
  color: var(--accent);
  flex-shrink: 0;
}

.search-field__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  outline: none;
}

.search-field__input::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.search-section__hint {
  margin: 0.75rem 0 0;
  min-height: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Services explorer (index): left nav + main grid + right tools */
.services-doc {
  padding-top: 2rem;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.services-doc__shell {
  max-width: 90rem;
}

.services-doc__layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  grid-template-columns: 1fr;
}

@media (min-width: 1100px) {
  .services-doc__layout {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr) minmax(168px, 200px);
    gap: 1.75rem;
  }

  .services-doc__sidebar--nav {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }

  .services-doc__sidebar--tools {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

.services-doc__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
  padding: 0.5rem 0.65rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.services-doc__sidebar--nav {
  background: var(--doc-sidebar-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  box-shadow: var(--shadow-soft);
}

.category-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (max-width: 1099px) {
  .category-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .category-nav__btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.25rem);
  }
}

.category-nav__btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.category-nav__btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.category-nav__btn.is-active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text);
}

.category-nav__icon {
  width: 1.85rem;
  height: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.category-nav__btn.is-active .category-nav__icon {
  background: var(--accent-dim);
  color: #fff;
}

.category-nav__icon--all {
  background: var(--bg-elevated);
  color: #fff;
}

.category-nav__text {
  flex: 1;
  line-height: 1.3;
}

.doc-main__header {
  margin-bottom: 1.25rem;
}

.doc-main__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.doc-main__intro {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 42rem;
}

.services-doc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .services-doc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .services-doc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.service-card.is-hidden {
  display: none;
}

.service-card--doc {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.2rem 1.25rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 5.75rem;
  box-shadow: var(--shadow-soft);
}

.service-card--doc:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

a.service-card--doc {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.service-card--doc:hover .service-card__title {
  color: var(--accent);
}

a.service-card--doc:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.service-card__icon-ring {
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-dim);
  color: #fff;
  font-size: 1.2rem;
  border: 1px solid rgba(110, 168, 254, 0.35);
}

.service-card__body {
  min-width: 0;
  flex: 1;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.035rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text);
}

.service-card__desc {
  margin: 0;
  font-size: 0.9125rem;
  color: var(--text-readable);
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Right tools column */
.services-doc__sidebar--tools {
  background: var(--doc-sidebar-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-soft);
}

.doc-tools__edit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}

.doc-tools__edit:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
}

.doc-tools__block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.doc-tools__block-label,
.doc-tools__block .doc-tools__block-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.doc-tools__select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.doc-tools__select-icon {
  position: absolute;
  left: 0.65rem;
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}

.doc-tools__select {
  width: 100%;
  padding: 0.5rem 0.65rem 0.5rem 2.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  appearance: none;
}

.doc-tools__hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.doc-tools__font {
  display: flex;
  gap: 0.35rem;
}

.doc-tools__font-btn {
  flex: 1;
  min-height: 2.5rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.doc-tools__font-btn:hover {
  background: var(--bg-hover);
}

.doc-tools__icon-btn {
  min-height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.doc-tools__icon-btn:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

@media print {
  .site-header,
  .site-footer,
  .mega-search,
  .services-doc__sidebar,
  .cta-section,
  .testimonials {
    display: none !important;
  }

  .services-doc__layout {
    display: block;
  }

  .service-card--doc {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* CTA */
.cta-section {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.cta-section__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

@media (min-width: 720px) {
  .cta-section__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.cta-section__lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 32rem;
}

.cta-section--inline .cta-section__inner {
  margin-top: 2rem;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  margin: 0;
  padding: 1.35rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.testimonial-card__quote {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.55;
}

.testimonial-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testimonial-card__author {
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 2.5rem 1.25rem 2rem;
}

.page-hero--compact .section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.page-hero__lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

/* Search results page */
.search-results-hero {
  padding-bottom: 1.25rem;
}

.search-results__meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.search-results__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  font-size: 0.8rem;
  color: var(--text-readable);
}

.search-results__meta-item strong {
  color: var(--text);
  font-weight: 600;
}

.search-results-section {
  padding-top: 1rem;
}

.search-results__empty {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  padding: 1.5rem;
  max-width: 42rem;
}

.search-results__empty h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.search-results__empty p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

/* Services səhifəsi: indeksdəki kimi widget kartları */
.services-page-grid-section .section__inner {
  max-width: 90rem;
}

.services-page-grid .service-card--doc {
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

.services-page-grid .service-card__desc {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* Contact */
.contact-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contact-section__grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.contact-card {
  padding: 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.contact-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-card__list li {
  margin-bottom: 1rem;
}

.contact-card__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-card__list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-card__list a:hover {
  text-decoration: underline;
}

.contact-card__note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-form-wrap {
  padding: 0;
}

.contact-form {
  padding: 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.contact-form__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 1.25rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 520px) {
  .contact-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form__field {
  display: block;
  margin-bottom: 1rem;
}

.contact-form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.contact-form__field--message {
  margin-bottom: 1rem;
}

.contact-form__textarea-wrap {
  position: relative;
  display: block;
}

.contact-form__textarea-wrap textarea {
  padding-bottom: 2rem;
  min-height: 8rem;
  resize: vertical;
}

.contact-form__counter {
  position: absolute;
  right: 0.65rem;
  bottom: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
  line-height: 1;
}

.contact-form__captcha {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.contact-form__captcha-hint {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.contact-form__captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.contact-form__captcha-img {
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.contact-form__field--captcha-input {
  margin-bottom: 0;
}

.contact-form__field--captcha-input input {
  max-width: 12rem;
  letter-spacing: 0.04em;
}

.contact-success {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
}

.contact-success .fa-circle-check {
  color: var(--accent);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-success p {
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 3rem 1.25rem 2rem;
  margin-top: 2rem;
}

.site-footer__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer__logo-link {
  display: inline-block;
  margin: 0 0 1rem;
  line-height: 0;
  text-decoration: none;
}

.site-footer__logo-picture {
  display: block;
}

.site-footer__logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 3rem;
  max-width: min(240px, 100%);
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 420px) {
  .site-footer__logo {
    max-height: 2.5rem;
    max-width: 2.75rem;
  }
}

.site-footer__blurb {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 28rem;
}

.site-footer__heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.site-footer__heading--sub {
  margin-top: 1.25rem;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links li {
  margin-bottom: 0.5rem;
}

.site-footer__links a {
  color: var(--text);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--accent);
}

.site-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__contact li {
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
}

.site-footer__contact a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer__contact a:hover {
  text-decoration: underline;
}

.site-footer__contact i {
  margin-right: 0.5rem;
  opacity: 0.85;
}

.site-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-panel);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.site-footer__social a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.site-footer__bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer__copy {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.site-footer__legal {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.85;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.2s, visibility 0.2s;
    z-index: 99;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__link {
    border-radius: var(--radius-sm);
  }

  .site-header.is-nav-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.is-nav-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-nav-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (min-width: 769px) {
  .site-header {
    --header-h: 4.5rem;
  }
}

/* Xidmət detalı səhifəsi */
.service-detail {
  padding-bottom: 3rem;
}

.service-detail__hero {
  position: relative;
  margin-bottom: 2.5rem;
}

.service-detail__hero-media {
  position: relative;
  min-height: clamp(12rem, 32vw, 20rem);
  background: var(--bg-deep);
}

.service-detail__hero-img {
  display: block;
  width: 100%;
  height: clamp(12rem, 32vw, 20rem);
  object-fit: cover;
  object-position: center;
}

.service-detail__hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg-deep) 0%,
    rgba(26, 29, 36, 0.72) 45%,
    rgba(26, 29, 36, 0.35) 100%
  );
  pointer-events: none;
}

.service-detail__hero-inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1.75rem;
}

.service-detail__breadcrumb {
  font-size: 0.78rem;
  color: var(--text-readable);
  margin-bottom: 1rem;
}

.service-detail__breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.service-detail__breadcrumb a:hover {
  color: var(--accent);
}

.service-detail__bc-sep {
  margin: 0 0.35rem;
  opacity: 0.55;
}

.service-detail__bc-current {
  color: var(--text);
  font-weight: 500;
}

.service-detail__headline {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.service-detail__icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid rgba(110, 168, 254, 0.45);
  color: #fff;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.service-detail__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.service-detail__summary {
  margin: 0.85rem 0 0;
  max-width: 44rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-readable);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.service-detail__inner {
  max-width: 44rem;
}

.service-detail__prose {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-readable);
}

.service-detail__prose p {
  margin: 0 0 1.15rem;
}

.service-detail__prose p:last-child {
  margin-bottom: 0;
}

.service-detail__actions {
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.service-detail--notfound .service-detail__title {
  text-shadow: none;
}

.service-detail--notfound .service-detail__lead {
  color: var(--text-readable);
  margin: 0 0 1rem;
  line-height: 1.55;
}

.service-detail--notfound .service-detail__lead a {
  color: var(--accent);
}
