/* 11 ACTIVE-IT — inner pages */

/* ---------- Page hero ---------- */

.pg-hero {
  position: relative;
  margin-top: -100px;
  padding: 168px 0 72px;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}
.pg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(15, 31, 23, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 31, 23, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 30% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 30% 0%, #000 30%, transparent 75%);
}
.pg-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 560px;
  height: 560px;
  right: -140px;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--em-rgb), .26), transparent 65%);
}
.pg-crumbs { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.pg-crumbs a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-700); text-decoration: none; transition: color .25s; }
.pg-crumbs a:hover { color: var(--em-700); }
.pg-crumbs__sep { font-size: 10px; opacity: .5; }
.pg-crumbs span { color: var(--em-700); }
.pg-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: end; }
.pg-hero__title { margin: 22px 0 0; font-family: var(--font); font-size: clamp(38px, 5.4vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -.045em; color: var(--ink-800); }
.pg-hero__title span { color: var(--em-600); }
.pg-hero__lead { margin: 0 0 8px; font-size: 18px; line-height: 1.7; color: var(--text-muted); }

/* ---------- Split (image + text) ---------- */

.pg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.pg-split--reverse .pg-split__media { order: 2; }
.pg-split__media { position: relative; }
.pg-split__media img { display: block; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.pg-split__badge {
  position: absolute;
  right: -24px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px 16px 16px;
  border-radius: 20px;
  background: var(--ink-900);
  color: #fff;
  box-shadow: var(--shadow-lg);
  animation: x-float 6s ease-in-out infinite;
}
.pg-split__badge i { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--em-500); color: var(--ink-900); font-size: 17px; }
.pg-split__badge strong { display: block; font-size: 16px; }
.pg-split__badge small { font-size: 13px; color: rgba(255, 255, 255, .65); }
.pg-split__text p { margin: 0 0 18px; font-size: 17px; line-height: 1.8; color: var(--text-muted); }
.pg-split__text .x-title { margin-bottom: 26px; }

/* ---------- Value cards ---------- */

.pg-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pg-value {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  overflow: hidden;
  isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.pg-value::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--em-rgb), .14), transparent 60%); opacity: 0; transition: opacity .4s; }
.pg-value:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--em-200), var(--shadow-lg); }
.pg-value:hover::before { opacity: 1; }
.pg-value__icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: 22px; border-radius: 16px; background: var(--ink-800); color: var(--em-400); font-size: 20px; transition: transform .45s var(--ease), background-color .35s, color .35s; }
.pg-value:hover .pg-value__icon { background: var(--em-500); color: var(--ink-900); transform: rotate(-8deg); }
.pg-value h3 { margin: 0 0 10px; font-family: var(--font); font-size: 19px; font-weight: 800; color: var(--ink-800); }
.pg-value p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-muted); }

/* ---------- Focus chips (links to services) ---------- */

.pg-focus { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pg-focus a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s;
}
.pg-focus a:hover { background: rgba(var(--em-rgb), .14); box-shadow: inset 0 0 0 1px rgba(var(--em-rgb), .45); transform: translateY(-3px); color: #fff; }
.pg-focus i { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--em-500); color: var(--ink-900); font-size: 16px; }
.pg-focus a::after { content: "\2192"; margin-left: auto; color: var(--em-400); transition: transform .3s var(--ease); }
.pg-focus a:hover::after { transform: translateX(4px); }

.pg-dark { position: relative; background: var(--ink-900); color: #fff; overflow: hidden; isolation: isolate; }
.pg-dark::before { content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; left: -200px; bottom: -400px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--em-rgb), .22), transparent 65%); }
.pg-dark .x-title { color: #fff; }
.pg-dark .x-title span { color: var(--em-400); }
.pg-dark .x-lead { color: rgba(255, 255, 255, .7); }

/* ---------- Service rows ---------- */

.pg-services { display: flex; flex-direction: column; gap: 28px; }
.pg-service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  overflow: hidden;
  transition: box-shadow .45s var(--ease), transform .45s var(--ease);
}
.pg-service:hover { box-shadow: inset 0 0 0 1px var(--em-200), var(--shadow-lg); }
.pg-service:nth-child(even) .pg-service__media { order: 2; }
.pg-service__media { position: relative; min-height: 380px; overflow: hidden; background: var(--ink-900); }
.pg-service__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pg-service:hover .pg-service__media img { transform: scale(1.05); }
.pg-service__num {
  position: absolute;
  left: 24px;
  top: 24px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--ink-800);
}
.pg-service__body { display: flex; flex-direction: column; justify-content: center; padding: 56px; }
.pg-service__icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 24px; border-radius: 18px; background: var(--em-50); color: var(--em-700); font-size: 22px; }
.pg-service h2 { margin: 0 0 16px; font-family: var(--font); font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.03em; color: var(--ink-800); }
.pg-service p { margin: 0 0 28px; font-size: 16.5px; line-height: 1.8; color: var(--text-muted); }
.pg-service .x-btn { align-self: flex-start; }

/* ---------- Compact process ---------- */

.pg-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: pstep; }
.pg-process li {
  position: relative;
  list-style: none;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: background-color .35s var(--ease), transform .35s var(--ease);
}
.pg-process li:hover { background: rgba(var(--em-rgb), .12); transform: translateY(-4px); }
.pg-process li::before { counter-increment: pstep; content: counter(pstep, decimal-leading-zero); display: block; margin-bottom: 18px; font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--em-400); }
.pg-process strong { display: block; margin-bottom: 8px; font-size: 19px; color: #fff; }
.pg-process span { font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, .66); }
.pg-process { margin: 0; padding: 0; }

/* ---------- Forms ---------- */

.x-form { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.x-form fieldset { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
.x-form legend {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  float: none;
  width: auto;
  margin: 10px 0 2px;
  padding: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--em-700);
}
.x-form legend::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.x-field { grid-column: span 6; min-width: 0; }
.x-field--half { grid-column: span 3; }
.x-field--third { grid-column: span 2; }
.x-field--two-thirds { grid-column: span 4; }
.x-field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--ink-800); }
.x-field label em { font-style: normal; color: var(--em-600); }
.x-input {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink-800);
  outline: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
  -webkit-appearance: none;
  appearance: none;
}
textarea.x-input { height: auto; min-height: 160px; padding: 16px 18px; resize: vertical; line-height: 1.6; }
.x-input::placeholder { color: #9AA8A0; }
.x-input:hover { border-color: var(--em-200); }
.x-input:focus { border-color: var(--em-500); box-shadow: 0 0 0 4px rgba(var(--em-rgb), .18); }
.x-form__submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.x-form__note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.x-form__note i { color: var(--em-600); }

.x-card-box { padding: 44px; border-radius: var(--radius-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow); }
.x-card-box__title { margin: 0 0 8px; font-family: var(--font); font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--ink-800); }
.x-card-box__sub { margin: 0 0 30px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Contact ---------- */

.pg-contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
.pg-contact__info { display: flex; flex-direction: column; gap: 14px; }
.pg-info {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  color: inherit;
  text-decoration: none !important;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
a.pg-info:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--em-200), var(--shadow); }
.pg-info i { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: var(--em-50); color: var(--em-700); font-size: 19px; transition: background-color .3s, color .3s; }
a.pg-info:hover i { background: var(--em-500); color: var(--ink-900); }
.pg-info small { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.pg-info strong { display: block; font-size: 16.5px; font-weight: 700; color: var(--ink-800); word-break: break-word; }
.pg-map { position: relative; height: 300px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.pg-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }

/* ---------- Job page ---------- */

.pg-job { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.pg-job__head { padding: 40px; border-radius: var(--radius-xl); background: var(--ink-900); color: #fff; position: relative; overflow: hidden; isolation: isolate; margin-bottom: 28px; }
.pg-job__head::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--em-rgb), .4), transparent 65%); }
.pg-job__head h2 { margin: 16px 0 0; font-family: var(--font); font-size: clamp(26px, 3vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: #fff; }
.pg-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pg-tags span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .08); font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.pg-tags i { color: var(--em-400); }
.pg-job__desc { margin-bottom: 28px; }
.pg-job__aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 18px; }
.pg-facts { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.pg-facts h3 { margin: 0 0 16px; font-family: var(--font); font-size: 18px; font-weight: 800; color: var(--ink-800); }
.pg-facts ul { list-style: none; margin: 0; padding: 0; }
.pg-facts li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--border); font-size: 15px; color: var(--text-muted); }
.pg-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.pg-facts li b { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-muted); }
.pg-facts li b i { width: 18px; color: var(--em-600); text-align: center; }
.pg-facts li span { font-weight: 800; color: var(--ink-800); text-align: right; }
.pg-mini-steps { padding: 28px; border-radius: var(--radius-lg); background: var(--em-50); }
.pg-mini-steps h3 { margin: 0 0 16px; font-family: var(--font); font-size: 18px; font-weight: 800; color: var(--ink-800); }
.pg-mini-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: ms; display: flex; flex-direction: column; gap: 14px; }
.pg-mini-steps li { position: relative; padding-left: 44px; font-size: 15px; line-height: 1.5; color: var(--ink-700); }
.pg-mini-steps li::before { counter-increment: ms; content: counter(ms); position: absolute; left: 0; top: -2px; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 10px; background: var(--ink-800); color: var(--em-400); font-size: 13px; font-weight: 800; }
.pg-mini-steps strong { display: block; color: var(--ink-800); }

/* ---------- Prose (legal + rich text) ---------- */

.x-prose { font-size: 16.5px; line-height: 1.8; color: var(--text); overflow-wrap: break-word; }
.x-prose h2, .x-prose h3, .x-prose h4 { font-family: var(--font); font-weight: 800; letter-spacing: -.02em; color: var(--ink-800); }
.x-prose h2 { font-size: 30px; margin: 0 0 18px; }
.x-prose h3 { font-size: 24px; margin: 34px 0 14px; }
.x-prose h4 { font-size: 20px; margin: 28px 0 12px; }
.x-prose p { margin: 0 0 16px; }
.x-prose a { color: var(--em-700); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(var(--em-rgb), .4); text-underline-offset: 3px; }
.x-prose a:hover { color: var(--ink-800); text-decoration-color: var(--ink-800); }
.x-prose strong, .x-prose b { color: var(--ink-800); }
.x-prose ul, .x-prose ol { margin: 0 0 18px; padding-left: 22px; }
.x-prose li { margin-bottom: 6px; }
.x-prose hr { margin: 28px 0; border: 0; border-top: 1px solid var(--border); opacity: 1; }
.x-prose span[style*="font-size:21px"] { display: inline-block; margin-top: 18px; color: var(--ink-800); font-weight: 800 !important; }

.x-prose .clickjob_wrapper { max-width: none; font-family: inherit; color: inherit; line-height: inherit; }
.x-prose .clickjob_title, .x-prose .clickjob_subtitle { font-family: var(--font); font-weight: 800; letter-spacing: -.02em; color: var(--ink-800); }
.x-prose .clickjob_title { font-size: 28px; margin: 0 0 14px; }
.x-prose .clickjob_subtitle { font-size: 22px; margin: 34px 0 12px; }
.x-prose .clickjob_text { font-size: inherit; margin: 0 0 14px; }
.x-prose .clickjob_info { color: var(--em-700); }
.x-prose .clickjob_list { list-style: none; padding-left: 0; margin: 0 0 18px; }
.x-prose .clickjob_list li { position: relative; margin-bottom: 10px; padding-left: 32px; }
.x-prose .clickjob_list li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%; background: var(--em-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E7A46' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

.pg-legal { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.pg-legal__aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 12px; }
.pg-legal__card { padding: 26px; border-radius: var(--radius-lg); background: var(--ink-900); color: rgba(255, 255, 255, .75); font-size: 15px; line-height: 1.7; }
.pg-legal__card h3 { margin: 0 0 12px; font-family: var(--font); font-size: 17px; font-weight: 800; color: #fff; }
.pg-legal__card a { color: var(--em-400); text-decoration: none; word-break: break-word; }
.pg-legal__nav { display: flex; flex-direction: column; gap: 6px; }
.pg-legal__nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: 14px; background: var(--bg); color: var(--ink-800); font-weight: 700; text-decoration: none; transition: background-color .25s, color .25s; }
.pg-legal__nav a:hover, .pg-legal__nav a.is-active { background: var(--em-100); color: var(--em-800); }
.pg-legal__body { padding: 48px; border-radius: var(--radius-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
  .pg-values, .pg-focus, .pg-process { grid-template-columns: repeat(2, 1fr); }
  .pg-job { grid-template-columns: 1fr 320px; gap: 28px; }
}

@media (max-width: 991px) {
  .pg-hero { padding: 150px 0 56px; }
  .pg-hero__grid { grid-template-columns: 1fr; gap: 20px; }
  .pg-split { grid-template-columns: 1fr; gap: 48px; }
  .pg-split--reverse .pg-split__media { order: 0; }
  .pg-split__badge { right: 16px; }
  .pg-service { grid-template-columns: 1fr; }
  .pg-service:nth-child(even) .pg-service__media { order: 0; }
  .pg-service__media { min-height: 260px; }
  .pg-service__body { padding: 36px; }
  .pg-contact { grid-template-columns: 1fr; }
  .pg-job { grid-template-columns: 1fr; }
  .pg-job__aside { position: static; }
  .pg-legal { grid-template-columns: 1fr; gap: 24px; }
  .pg-legal__aside { position: static; order: 2; }
}

@media (max-width: 600px) {
  .pg-hero { padding: 122px 0 44px; }
  .pg-crumbs { margin-bottom: 22px; }
  .pg-hero__title { font-size: clamp(34px, 10vw, 44px); }
  .pg-hero__lead { font-size: 16.5px; }
  .pg-split__media img { aspect-ratio: 1 / 1; }
  .pg-split__badge { left: 12px; right: 12px; bottom: 12px; }
  .pg-values, .pg-focus, .pg-process { grid-template-columns: 1fr; }
  .pg-service__media { min-height: 210px; }
  .pg-service__body { padding: 28px 24px; }
  .pg-service .x-btn { align-self: stretch; justify-content: space-between; }
  .x-card-box { padding: 26px 20px; border-radius: var(--radius-lg); }
  .x-card-box__title { font-size: 24px; }
  .x-field--half { grid-column: span 6; }
  .x-form__submit .x-btn { width: 100%; justify-content: space-between; }
  .pg-map { height: 240px; }
  .pg-job__head { padding: 28px 22px; }
  .pg-legal__body { padding: 26px 20px; border-radius: var(--radius-lg); }
  .x-prose { font-size: 15.5px; }
}
