/* =========================================================
   softwareheroes.html üçün stil faylı
   HTML-də heç nə dəyişmədən işləyir. Rənglər HTML-in içindəki
   --theme-* dəyişənlərindən götürülür.
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* ---------- Əsas dəyişənlər ---------- */
:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --content: 960px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(19, 25, 39, .04), 0 6px 24px rgba(19, 25, 39, .06);
  --border: var(--theme-table-border-color, #e5e7eb);
  --accent: var(--theme-default-elements-color, #c60000);
  --muted: #5b6170;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  background: var(--theme-page-bg-color, #f3f4f6);
  color: var(--theme-page-txt-color, #000);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
    background:
    radial-gradient(900px 400px at 85% 120%, rgba(206, 109, 35, .55), transparent 70%),
    linear-gradient(120deg, var(--theme-page-welcome-gradient-1, #131927) 35%, var(--theme-page-welcome-gradient-2, #ce6d23) 140%);
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration: none; }
p { margin: 0 0 1em; }
:is(h1, h2, h3, h4, h5, h6) {
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
}
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
h4 { font-size: 1.15rem; }

.wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--theme-page-header-bg, #212121);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.header-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}
.header__holder {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header__navigation {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}
.header__logo { flex-shrink: 0; }
.header__logo .custom-logo-link,
.header__logo .get-image { display: block; }
.header__logo .custom-logo {
  max-width: var(--theme-header-logo-max-width, 180px);
  max-height: 52px;
  width: auto;
}

.header__menu { flex: 1; }
.header__menu .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.header__menu .menu > li { position: relative; }
.header__menu .menu > li > a {
  display: block;
  padding: 24px 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.header__menu .menu > li::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  transform: scaleX(0);
  transition: transform .25s;
}
.header__menu .menu > li:hover::after { transform: scaleX(1); }
.header__menu .menu > li > a:hover { color: #fff !important; }

.header__buttons { margin-left: auto; }
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid;
  border-radius: 999px;
  width: 220px;
  transition: width .25s, box-shadow .2s;
}
.search-form:focus-within { width: 260px; box-shadow: 0 0 0 3px rgba(226, 53, 27, .35); }
.search-form svg { width: 20px; height: 20px; flex-shrink: 0; }
.search-form input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  width: 100%;
  min-width: 0;
}

/* Hamburger (yalnız mobil) */
.header__hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.header__hamburger:hover { background: rgba(255, 255, 255, .08); }
.hamburger { display: inline-flex; padding: 0; background: none; border: 0; }
.hamburger-box { position: relative; width: 24px; height: 18px; display: block; }
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--theme-menu-text-color, #eaeaea);
  transition: transform .25s, top .25s, opacity .2s;
}
.hamburger-inner { top: 50%; margin-top: -1px; display: block; }
.hamburger-inner::before,
.hamburger-inner::after { content: ""; }
.hamburger-inner::before { top: -8px; }
.hamburger-inner::after { top: 8px; }

/* Açıq vəziyyət: JS-in əlavə edə biləcəyi class-lar + JS olmadan :focus */
:is(.hamburger.is-active, .header__hamburger.is-active, .header__hamburger.active, .header__hamburger:focus) .hamburger-inner { transform: rotate(225deg); }
:is(.hamburger.is-active, .header__hamburger.is-active, .header__hamburger.active, .header__hamburger:focus) .hamburger-inner::before { top: 0; opacity: 0; }
:is(.hamburger.is-active, .header__hamburger.is-active, .header__hamburger.active, .header__hamburger:focus) .hamburger-inner::after { top: 0; transform: rotate(-90deg); }

/* ---------- Hero ---------- */
.welcome-section-hero {
  position: relative;
  overflow: hidden;
}
.welcome-section-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.welcome-container {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 20px 88px;
}
.welcome-section-hero__main { max-width: 820px; }
.welcome-section-hero__title {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 18px;
}
.welcome-section-hero__text {
  font-size: 1.08rem;
  line-height: 1.7;
  opacity: .92;
  margin-bottom: 26px;
}
.welcome-section-hero__text p:last-child { margin-bottom: 0; }
.welcome-section-hero__info { display: flex; flex-wrap: wrap; gap: 10px; }
.welcome-section-hero__info_row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(4px);
}
.welcome-section-hero__info_row svg { width: 16px; height: 16px; }
.welcome-section-hero__info_row svg path { stroke: currentColor; }

/* ---------- Kontent ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.page-content__holder {

  margin: 0 auto 0 0ı
  position: relative;
}
.wp-block-hc-container { display: flex; flex-direction: column; gap: 24px; }

/* Üst səviyyə bölmələr — ağ kartlar */
.wp-block-hc-container > .wp-block-hc-alternate-group-section {
  background: var(--theme-blocks-primary-bg, #fff);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 44px);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
/* Daxili alt-bölmələr */
.wp-block-hc-alternate-group-section .wp-block-hc-alternate-group-section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* Sol xətli başlıqlar */
.is-style-heading-bordered {
  position: relative;

}


/* Siyahılar */
.wp-block-list { margin: 0 0 1.2em; padding-left: 0; list-style: none; }
.wp-block-list > li { position: relative; padding-left: 30px; margin-bottom: .55em; }
ul.wp-block-list > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
ol.wp-block-list { counter-reset: ol; }
ol.wp-block-list > li { counter-increment: ol; }
ol.wp-block-list > li::before {
  content: counter(ol);
  position: absolute;
  left: 0;
  top: .2em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

/* ---------- Cədvəllər ---------- */
.wp-block-table {
  margin: 1.4em 0 1.6em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.wp-block-table table { min-width: 560px; font-size: 15px; line-height: 1.5; border: 0 !important; }
.wp-block-table th,
.wp-block-table td { padding: 12px 14px; text-align: left; vertical-align: top; }
.wp-block-table thead th {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  border-bottom: 2px solid var(--accent) !important;
}
.wp-block-table tbody td:first-child { font-weight: 700; }
.wp-block-table tbody tr:hover td { filter: brightness(.97); }
.wp-block-table figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); }

/* ---------- Düymələr ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 34px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--theme-active-btn-txt-color, #fff) !important;
  background: var(--theme-active-btn-bg, #ce0000) !important;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 20px -6px rgba(206, 0, 0, .55);
  transition: background-color .2s, transform .15s, box-shadow .2s;
}
.wp-block-button__link:hover {
  background: var(--theme-active-btn-hover-bg, #e05900) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(224, 89, 0, .6);
}
.wp-block-button__link:active {
  background: var(--theme-active-btn-pressed-bg, #00850f) !important;
  transform: translateY(0);
}

/* ---------- Media blok (mətn + şəkil) ---------- */
.media-block-v2 { margin: 1.8em 0; }
.media-block-v2-border {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
  background: #fafafb;
}
.media-block-v2__holder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 28px;
  align-items: start;
}
.media-block-v2__holder.left { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.media-block-v2__holder.left .media-block-v2__img-holder { order: -1; }
/* HTML-dəki inline width:60%/40% grid-i pozmasın */
.media-block-v2__content,
.media-block-v2__img-holder,
.media-block-v2__img-holder-mobile { width: auto !important; }
.media-block-v2__content > :last-child { margin-bottom: 0; }
.media-block-v2__img-holder,
.media-block-v2__img-holder-mobile { border-radius: var(--radius-sm); overflow: hidden; }
.media-block-v2__img-holder { position: sticky; top: calc(var(--header-h) + 16px); }
.media-block-v2__img-holder img,
.media-block-v2__img-holder-mobile img { width: 100%; height: auto; object-fit: cover; }
.media-block-v2__img-holder-mobile { display: none; margin: 0 0 16px; }

/* ---------- Addımlar ---------- */
.steps { counter-reset: step; display: grid; gap: 14px; margin: 1.6em 0; }
.step {
  counter-increment: step;
  position: relative;
  padding: 18px 20px 18px 74px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.step:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--theme-best-bk-bg-color, #131927);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
}
.step__title { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; color: var(--theme-blocks-heading-color, #131927); }
.step__text { color: var(--muted); font-size: 15.5px; line-height: 1.65; }

/* ---------- Plus / minus ---------- */
.pros_cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 1.4em 0 1.8em;
}
.pros_cons__elem {
  border-radius: var(--radius-sm);
  padding: 16px 18px 8px;
  font-size: 15.5px;
  line-height: 1.55;
  background: #ecfbef;
  border: 1px solid #bfe9c7;
}
.pros_cons__elem:has(.cons__list),
.pros_cons__elem:nth-child(2) { background: #fdf0f0; border-color: #f3c9c9; }
.pros_cons__elem > .title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #12822a;
}
.pros_cons__elem:has(.cons__list) > .title,
.pros_cons__elem:nth-child(2) > .title { color: #b81414; }
.pros_cons__list__elem { position: relative; padding-left: 28px; margin-bottom: 10px; }
.pros_cons__list__elem::before {
  position: absolute;
  left: 0;
  top: .1em;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
}
.pros__list .pros_cons__list__elem::before { content: "+"; background: #16b528; }
.cons__list .pros_cons__list__elem::before { content: "−"; background: #d92323; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; margin: 1.2em 0 1.6em; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.faq-item:hover { border-color: #cfd3da; box-shadow: var(--shadow); }
.faq-item--question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.45;
  cursor: pointer;
  user-select: none;
}
.faq-item--chevron {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--theme-page-bg-color, #f3f4f6);
  display: grid;
  place-items: center;
  transform: rotate(90deg);
  transition: transform .25s, background-color .2s;
}
.faq-item--answer {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}
.faq-item--answer > :last-child { margin-bottom: 0; }

/* Cavablar defolt görünür (JS olmasa da oxunur).
   JS .faq-item-ə "closed" class-ı versə — gizlənir; "active/open" — açıq qalır. */
.faq-item:is(.closed, .is-closed) .faq-item--answer { display: none; }
.faq-item:is(.closed, .is-closed) .faq-item--chevron { transform: rotate(0deg); }
.faq-item:is(.active, .open, .is-open, .is-active) .faq-item--chevron { transform: rotate(-90deg); background: var(--accent); }
.faq-item:is(.active, .open, .is-open, .is-active) .faq-item--chevron svg path { fill: #fff; }

/* ---------- Footer ---------- */
.footer {
  background: var(--theme-page-footer-bg, #212121);
  color: var(--theme-page-footer-txt-color, #fff);
  margin-top: auto;
}
.footer-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 32px;
}
.footer__top-holder:empty,
.footer__menu-holder:empty { display: none; }
.footer__bottom-holder { display: flex; flex-direction: column; gap: 24px; }
.footer__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer__logo img {
  height: 32px;
  width: auto;
  opacity: .75;
  transition: opacity .2s;
}
.footer__logo img:hover { opacity: 1; }
.footer__content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
  font-size: 13.5px;
  line-height: 1.65;
}
.footer__text { flex: 1 1 520px; opacity: .7; }
.footer__text p:last-child { margin: 0; }
.footer__copyright { opacity: .55; white-space: nowrap; }
.footer a { color: inherit; }

/* ---------- Yuxarı qalx düyməsi ---------- */
.sgt-scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .4);
  transition: transform .2s, background-color .2s;
}
.sgt-scroll-top:hover { transform: translateY(-3px); background: var(--theme-active-btn-hover-bg, #e05900); }
.sgt-scroll-top svg { width: 22px; height: 22px; }
.sgt-scroll-top svg :is(path, polyline, line) { stroke: #fff; }

/* ---------- Fokus (klaviatura) ---------- */
:focus-visible { outline: 3px solid var(--theme-menu-accent-color, #e2351b); outline-offset: 2px; }

/* =========================================================
   Responsiv
   ========================================================= */
@media (max-width: 1080px) {
  .search-form { width: 170px; }
  .search-form:focus-within { width: 200px; }
  .header__menu .menu > li > a { padding-inline: 9px; font-size: 14px; }
}

@media (max-width: 991px) {
  :root { --header-h: 64px; }
  .header__hamburger { display: inline-flex; }
  .header__navigation { gap: 12px; }
  .header__buttons { margin-left: auto; }

  /* Mobil menyu paneli */
  .header__menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--theme-page-header-bg, #212121);
    padding: 8px 20px 32px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .header__menu .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .header__menu .menu > li > a { padding: 16px 4px; font-size: 16px; white-space: normal; }
  .header__menu .menu > li::after { display: none; }

  /* Menyunun açılması: JS class-ları və ya JS olmadan hamburgerə fokus */
  .header:is(.active, .is-active, .open, .menu-open) .header__menu,
  .header__menu:is(.active, .is-active, .open),
  body:is(.menu-open, .no-scroll, .overflow-hidden) .header__menu,
  .header-container:has(.header__hamburger:is(:focus, .active, .is-active)) .header__menu,
  .header-container:has(.hamburger.is-active) .header__menu,
  .header__menu:focus-within {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }

  .page-content__holder { margin-top: -36px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .header-container { padding: 0 16px; }
  .header__logo .custom-logo { max-height: 40px; max-width: 130px; }
  .search-form { width: 42px; padding: 0 10px; justify-content: center; }
  .search-form input { width: 0; padding: 0; }
  .search-form:focus-within { width: min(60vw, 240px); justify-content: flex-start; }
  .search-form:focus-within input { width: 100%; }

  .welcome-container { padding: 40px 16px 64px; }
  .container { padding: 0 16px; }
  .wp-block-hc-container { gap: 16px; }

  .media-block-v2__holder,
  .media-block-v2__holder.left { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .media-block-v2__img-holder { display: none; }
  .media-block-v2__img-holder-mobile { display: block; }

  .pros_cons { grid-template-columns: 1fr; }
  .step { padding: 16px 16px 16px 66px; }
  .step::before { left: 14px; top: 16px; width: 36px; height: 36px; font-size: 14px; }

  .wp-block-buttons { justify-content: center; }
  .wp-block-buttons .wp-block-button { width: 100%; }
  .wp-block-button__link { width: 100%; }

  .footer__content { flex-direction: column; }
  .footer__copyright { white-space: normal; }
  .sgt-scroll-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
