/* =========================================================
   RHR+ — refactored theme stylesheet
   Consolidated from legacy styles.css + rhrplus-final.css.
   Goal: preserve the approved visual while removing iterative overrides.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --red: #CF2B23;
  --red-dark: #B6241D;
  --navy: #1F6082;
  --navy-strong: #1F6082;
  --rhr-blue: #1F6082;
  --rhr-blue-dark: #174F6D;
  --text: #526B7D;
  --muted: #64748B;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --line: rgba(31, 96, 130, .10);
  --shadow-soft: 0 18px 60px rgba(31, 96, 130, .10);
  --shadow-card: 0 14px 44px rgba(31, 96, 130, .08);
  --radius-button: 14px;
  --radius-card: 32px;
  --radius-section: 40px;
  --container: 1180px;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(207, 43, 35, .07), transparent 34rem),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Manrope, Inter, sans-serif;
  color: var(--navy-strong);
  letter-spacing: -.04em;
}

h1 {
  font-size: clamp(48px, 6vw, 82px);
  line-height: .98;
  max-width: 760px;
}

h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
}

h3 {
  font-size: 24px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(31, 96, 130, .08);
}

.header-inner {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 128px;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  width: auto;
}

.site-nav > .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.site-nav > .nav-item:first-child {
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 31px 0;
  color: var(--rhr-blue-dark);
  font-weight: 600;
  transition: color .2s;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 3px;
  border-radius: 999px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}

.nav-link:hover,
.has-dropdown:hover .nav-link {
  color: var(--red);
}

.nav-link:hover::before,
.has-dropdown:hover .nav-link::before {
  transform: scaleX(1);
}

.has-dropdown > .nav-link::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 9px;
  margin-bottom: 3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: .6;
  transform: rotate(45deg);
}

.submenu-toggle {
  display: none;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--navy);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 1000;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(14px);
  transition: .22s;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-small {
  width: max-content;
  min-width: 280px;
  max-width: min(420px, calc(100vw - 48px));
}

.dropdown-wide {
  left: auto;
  right: 0;

  width: max-content;
  min-width: 700px;
  max-width: calc(100vw - 48px);

  grid-template-columns:
    repeat(2, minmax(300px, max-content));

  transform: translateY(14px);
}

.has-dropdown:hover .dropdown-wide,
.has-dropdown:focus-within .dropdown-wide {
  transform: translateY(0);
}

.dropdown-mega {
  width: max-content;
  min-width: 860px;
  max-width: calc(100vw - 48px);

  grid-template-columns:
    repeat(3, minmax(240px, max-content));

  padding: 20px;
}

.dropdown a {
  display: block;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--navy);
  font-weight: 700;

  white-space: normal;
  overflow-wrap: break-word;

  transition: .18s;
}

.dropdown a:hover {
  color: var(--red);
  background: rgba(207, 43, 35, .08);
}

/* ---------- Buttons ---------- */
.btn,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius-button);
  font-weight: 500;
  letter-spacing: 0;
  transition: .22s;
}

.btn {
  padding: 13px 22px;
}

.nav-cta {
  flex: 0 0 auto;
  min-width: 118px;
  margin-left: auto;
  padding: 12px 18px;
  border-radius: 13px;
}

.nav-cta,
.btn-primary {
  color: #fff;
  background: var(--red);
  box-shadow: none;
}

.nav-cta:hover,
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.btn-glass {
  color: var(--navy);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: var(--shadow-card);
}

.hero-actions a,
.talk-card .btn-primary {
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: none;
}

.hero-actions a {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* ---------- Homepage hero ---------- */
.hero,
.pillars,
.about {
  padding: 86px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 64px;
  padding-bottom: 92px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 22%, rgba(207, 43, 35, .13), transparent 24rem),
    radial-gradient(circle at 22% 72%, rgba(31, 96, 130, .10), transparent 28rem);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 72px;
  align-items: center;
}

.hero-copy > .eyebrow:first-child {
  display: none;
}

.hero-copy h1 {
  max-width: 650px;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(54px, 5.4vw, 78px);
  font-weight: 400;
  line-height: .94;
  letter-spacing: -.05em;
  color: var(--rhr-blue);
}

.hero-copy h1 span {
  display: block;
  position: relative;
  font-weight: 400;
}

.hero-copy h1 span::after {
  display: none;
}

.hero-copy h1 .h-blue {
  color: var(--rhr-blue);
}

.hero-copy h1 .h-red {
  color: var(--red);
}

.lead,
.hero-copy .lead {
  max-width: 720px;
  margin: 34px 0 34px;
  color: #657B8D;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  min-height: 500px;
}

.photo-card {
  position: absolute;
  inset: 10px 0 18px 28px;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, .62);
  border-radius: 46px;
  box-shadow: 0 22px 68px rgba(31, 96, 130, .13);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}

.floating-card {
  position: absolute;
  z-index: 2;
  width: 290px;
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, .94);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .72));
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 52px rgba(31, 96, 130, .12);
}

.floating-card .icon,
.floating-card .mini-icon,
.floating-card svg,
.floating-card img {
  display: none;
}

.floating-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--rhr-blue);
  font-family: Manrope, Inter, sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
}

.floating-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.floating-card--top {
  top: 6px;
  left: -8px;
}

.floating-card--bottom {
  right: -12px;
  bottom: 2px;
}

/* ---------- Services ---------- */
.pillars {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.pillars .container {
  position: relative;
}

.pillars .container::before {
  content: "";
  position: absolute;
  inset: -44px -28px 40px -28px;
  z-index: -1;
  border-radius: 56px;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 28%, rgba(207, 43, 35, .045), transparent 24rem),
    radial-gradient(circle at 82% 60%, rgba(31, 96, 130, .045), transparent 26rem);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2 {
  color: var(--rhr-blue);
  font-weight: 500;
}

.cards-grid,
.cards-grid--pulse {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cards-grid--pulse {
  position: relative;
  isolation: isolate;
}

.cards-grid--pulse::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 25%;
  z-index: 3;
  height: 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1500 180'%3E%3Cpath d='M0 105 L210 105 L252 74 L292 105 L332 44 L384 145 L430 105 L635 105 L675 74 L718 105 L762 34 L818 151 L870 105 L1070 105 L1112 74 L1154 105 L1198 46 L1250 142 L1300 105 L1500 105' fill='none' stroke='%23CF2B23' stroke-width='1' stroke-linecap='round' stroke-linejoin='round' opacity='0.58'/%3E%3C/svg%3E");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 0;
}

.glass-card,
.service-card {
  position: relative;
  z-index: 1;
  min-height: 350px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(31, 96, 130, .11);
  border-radius: var(--radius-card);
  background: linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .66));
  backdrop-filter: blur(3px);
  box-shadow: 0 18px 52px rgba(31, 96, 130, .08);
  transition: .25s;
  background-clip: text;
}

.glass-card:hover,
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(31, 96, 130, .13);
}

.service-card::before,
.service-card::after,
.glass-card::after {
  content: none;
  display: none;
}

.service-card > *,
.glass-card > * {
  position: relative;
  z-index: 4;
}

.service-card .service-icon,
.service-card .icon,
.glass-card .icon {
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 10px 24px rgba(31, 96, 130, .18);
}

.service-card .service-icon svg,
.service-card .icon svg,
.glass-card .icon svg {
  display: block;
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #fff;
  color: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card .icon img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.service-card .icon .field,
.service-card .icon .field__item {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card h3,
.glass-card h3 {
  color: var(--rhr-blue);
  font-weight: 600;
}

.service-card p,
.glass-card p {
  margin: 16px 0 24px;
  color: #657B8D;
  font-weight: 400;
  line-height: 1.7;
}

.service-card a,
.glass-card a {
  color: var(--red);
  font-weight: 600;
}

/* ---------- CTA ---------- */
.talk-section {
  padding: 40px 0 84px;
  background: transparent;
}

.talk-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 40px;
  background: linear-gradient(135deg, #1F6082 0%, #28779B 100%);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 64px rgba(31, 96, 130, .20);
}

.talk-card::before,
.talk-card::after {
  content: none;
  display: none;
}

.talk-card h2 {
  max-width: 680px;
}

.talk-card h2,
.talk-card p,
.talk-card .eyebrow {
  color: #fff;
}

.talk-card p:not(.eyebrow) {
  max-width: 680px;
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.7;
}

.talk-card .btn-primary {
  color: #fff;
  background: var(--red);
}

/* ---------- Breadcrumbs / generic subpages ---------- */
.breadcrumb-bar {
  display: none;
}

.breadcrumb-strip {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, .88);
  border-top: 1px solid rgba(31, 96, 130, .05);
  border-bottom: 1px solid rgba(31, 96, 130, .08);
}

.breadcrumb-strip .container div {
  padding-top: 14px;
  padding-bottom: 14px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #64748B;
  font-size: 14px;
  line-height: 1.4;
}

.breadcrumb a {
  color: #64748B;
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb strong {
  color: var(--navy);
  font-weight: 800;
}

.subpage-hero {
  padding: 46px 0 42px;
  background: linear-gradient(135deg, rgba(31, 96, 130, .035), rgba(207, 43, 35, .022));
}

.subpage-hero h1 {
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.subpage-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.subpage-content {
  padding: 56px 0 80px;
}

.content-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 48px;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 110px;
  padding: 20px;
  border: 1px solid rgba(207, 43, 35, .11);
  border-radius: 24px;
  background: rgba(255, 255, 255, .68);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(31, 96, 130, .075);
}

.side-nav > a {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--navy);
  font-weight: 700;
}

.side-nav > a::before {
  content: "+";
  margin-right: 8px;
  color: var(--red);
}

.side-nav > a:hover,
.side-nav > a.active {
  color: var(--red);
  background: rgba(207, 43, 35, .065);
}

.content-card {
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 36px;
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--shadow-card);
}

.content-card p {
  color: var(--text);
  font-size: 18px;
  line-height: 1.85;
}

.mission-card {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid rgba(207, 43, 35, .12);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(207, 43, 35, .08), rgba(255, 255, 255, .84));
}

/* ---------- About subpage ---------- */
.subpage--about {
  background:
    radial-gradient(circle at 92% 0%, rgba(207, 43, 35, .045), transparent 22rem),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.subpage-intro {
  padding: 54px 0 58px;
  background: linear-gradient(135deg, rgba(31, 96, 130, .035), rgba(207, 43, 35, .022));
}

.subpage-intro h1 {
  margin: 0;
  color: var(--navy-strong);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.04em;
}

.subpage-intro p {
  max-width: 760px;
  margin: 20px 0 0;
  color: #60718A;
  font-size: 20px;
  line-height: 1.65;
}

.subpage-body {
  padding: 56px 0 86px;
}

.subpage-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 48px;
  align-items: start;
}

.side-nav--about {
  top: 118px;
  padding: 20px;
  border: 1px solid rgba(207, 43, 35, .14);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .56));
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 50px rgba(31, 96, 130, .075);
}

.side-menu {
  display: grid;
  gap: 4px;
}

.side-menu a {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.3;
}

.side-menu a::before {
  content: "+";
  margin-right: 8px;
  color: var(--red);
}

.side-menu a:hover,
.side-menu a.active {
  color: var(--red);
  background: rgba(207, 43, 35, .07);
}

.mini-service-grid,
.side-nav--about .mini-service-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(31, 96, 130, .10);
}

.mini-card,
.side-nav--about .mini-card {
  display: block;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .52));
  box-shadow: 0 8px 22px rgba(31, 96, 130, .055);
  transition: transform .18s;
}

.mini-card:hover {
  color: var(--red);
  transform: translateY(-2px);
}

.mini-card::before {
  display: none;
}

.mini-icon,
.side-nav--about .mini-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--red);
  background: rgba(207, 43, 35, .09);
  font-size: 0;
}

.mini-icon svg,
.side-nav--about .mini-icon svg,
.mini-icon--lean svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-card strong,
.side-nav--about .mini-card strong {
  display: block;
  color: var(--navy);
  font-weight: 800;
}

.mini-card small,
.side-nav--about .mini-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.content-card--about {
  padding: 46px 52px;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 38px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 20px 60px rgba(31, 96, 130, .075);
}

.content-card--about p {
  color: #0F2035;
  font-size: 19px;
  line-height: 1.78;
}

.content-card--about .lead-paragraph {
  margin-top: 0;
}

.mission-card--about {
  margin-top: 30px;
  padding: 30px;
  border: 1px solid rgba(207, 43, 35, .13);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(207, 43, 35, .07), rgba(255, 255, 255, .78));
}

.mission-card--about h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

.mission-card--about p {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid rgba(31, 96, 130, .10);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.45fr .8fr .9fr 1fr;
  gap: 48px;
  padding: 46px 0 42px;
  align-items: start;
}

.footer-brand img {
  width: 126px;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 330px;
  margin: 0;
  color: #60778A;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
}

.site-footer .footer-column h2,
.site-footer h3,
.footer-contact h3 {
  margin: 0 0 16px;
  color: var(--rhr-blue-dark);
  font-family: Manrope, Inter, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.site-footer .footer-column p {
  margin: 0 0 8px;
  color: #60778A;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}

#block-rhrplus-oferta p {
  margin: 0 0 8px;
}

#block-rhrplus-firma p {
  line-height: 2;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #60778A;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--red);
}

.footer-contact p {
  margin: 18px 0 0;
  color: #60778A;
  font-size: 15px;
  line-height: 1.65;
}

.footer-contact .contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: var(--rhr-blue-dark);
  font-weight: 600;
}

.footer-contact .contact-link::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.footer-contact a[href^="tel:"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6082' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.33 1.78.62 2.63a2 2 0 0 1-.45 2.11L8 9.73a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.85.29 1.73.5 2.63.62A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.footer-contact a[href^="mailto:"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6082' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
}

.footer-bottom {
  padding: 17px 0;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid rgba(31, 96, 130, .10);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay {
  transition-delay: .12s;
}

.reveal-delay-2 {
  transition-delay: .22s;
}

/* ---------- Responsive: tablet / mobile navigation ---------- */
@media (max-width: 1040px) {
  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    z-index: 999;
  }

  .header-inner {
    height: 74px;
  }

  .brand img {
    width: 110px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 88px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 108px);
    overflow: auto;
    padding: 18px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(31, 96, 130, .10);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .18);
    backdrop-filter: blur(24px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > .nav-item,
  .nav-item {
    position: relative;
    display: block;
    margin: 0;
    border-bottom: 1px solid rgba(31, 96, 130, .10);
  }

  .site-nav > .nav-item:first-child {
    margin-left: 0;
  }

  .nav-item:last-of-type {
    border-bottom: 0;
  }

  .nav-link,
  .site-nav > a:not(.nav-cta) {
    display: block;
    padding: 17px 52px 17px 2px;
    color: var(--navy);
    line-height: 1.3;
  }

  .nav-link::before,
  .has-dropdown > .nav-link::after {
    display: none;
  }

  .submenu-toggle {
    position: absolute;
    right: 0;
    top: 5px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 14px;
    background: rgba(207, 43, 35, .07);
    cursor: pointer;
  }

  .submenu-toggle::after {
    content: "+";
    color: var(--red);
    font-size: 24px;
    line-height: 1;
  }

  .nav-item.is-open .submenu-toggle::after {
    content: "−";
  }

  .dropdown,
  .dropdown-small,
  .dropdown-wide,
  .dropdown-mega {
    position: static;
    width: auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 2px;
    margin: 0 0 14px;
    padding: 8px;
    background: rgba(248, 250, 252, .92);
    border: 1px solid rgba(31, 96, 130, .08);
    border-radius: 20px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-item.is-open .dropdown {
    display: grid;
  }

  .dropdown a {
    padding: 12px 13px;
    border-radius: 14px;
    color: var(--navy);
    font-size: 14px;
    line-height: 1.35;
  }

  .dropdown a:hover {
    color: var(--red);
    background: rgba(207, 43, 35, .08);
  }

  .nav-cta,
  .site-nav .nav-cta {
    width: 100%;
    min-width: 0;
    margin: 16px 0 0;
    justify-content: center;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
  }

  .cards-grid--pulse::before {
    display: none;
  }

  .talk-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .subpage-layout {
    grid-template-columns: 1fr;
  }

  .side-nav--about {
    display: none;
  }

  .subpage-intro {
    padding: 42px 0 46px;
  }

  .subpage-intro p {
    font-size: 18px;
  }

  .content-card--about {
    padding: 30px;
    border-radius: 28px;
  }
}

/* ---------- Responsive: phones ---------- */
@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-nav {
    top: 86px;
    left: 14px;
    right: 14px;
  }

  /* Hero */
  .hero {
    padding: 36px 0 52px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .hero-copy {
    order: 1;
    width: 100%;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: 48px;
    line-height: .95;
  }

  .hero-copy h1 .h-blue,
  .hero-copy h1 .h-red {
    display: block;
  }

  .lead,
  .hero-copy .lead {
    margin: 24px 0 26px;
    font-size: 17px;
    line-height: 1.7;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions a,
  .btn {
    width: 100%;
  }

  .hero-visual {
    order: 2;
    width: 100%;
    min-height: 300px;
  }

  .photo-card {
    inset: 24px 0 14px 0;
    border-radius: 28px;
  }

  .floating-card {
    width: 195px;
    padding: 15px 16px;
    border-radius: 22px;
  }

  .floating-card--top {
    top: 0;
    left: 0;
  }

  .floating-card--bottom {
    right: 0;
    bottom: 0;
  }

  .floating-card strong {
    font-size: 16px;
  }

  .floating-card span {
    font-size: 12px;
  }

  /* Services */
  .pillars {
    padding: 52px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading .eyebrow {
    margin-bottom: 10px;
  }

  .section-heading h2 {
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -.035em;
  }

  .cards-grid,
  .cards-grid--pulse {
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
  }

  .service-card,
  .glass-card {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 26px;
    border-radius: 28px;
  }

  .cards-grid--pulse::before {
    content: none;
    display: none;
  }

  .service-card .service-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
  }

  .service-card .service-icon svg {
    width: 29px;
    height: 29px;
  }

  .service-card h3 {
    font-size: 23px;
    line-height: 1.15;
  }

  .service-card p {
    margin: 14px 0 20px;
    font-size: 16px;
    line-height: 1.65;
  }

  /* CTA */
  .talk-section {
    padding: 24px 0 52px;
  }

  .talk-card {
    gap: 24px;
    padding: 28px 24px;
    border-radius: 28px;
  }

  .talk-card h2 {
    font-size: 34px;
    line-height: 1.06;
  }

  .talk-card p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.65;
  }

  .talk-actions,
  .talk-actions .btn,
  .talk-card .btn-primary {
    width: 100%;
  }

  .talk-card .btn-primary {
    margin-top: 10px;
  }

  /* Generic content */
  .content-card {
    padding: 28px;
    border-radius: 28px;
  }

  /* Footer */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 38px 0 34px;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .site-footer .footer-column h2,
  .site-footer .footer-contact h3 {
    font-size: 18px;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 6px;
  }
}

/* =========================================================
   HEADER — FINAL ALIGNMENT
   ========================================================= */

@media (min-width: 1041px) {

  .header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* logo zawsze przy lewej krawędzi kontenera */
  .brand {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  /* cały obszar nawigacji */
  .site-nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
  }

  .site-nav > .nav-item {
    margin: 0;
    transform: none;
  }

  /* Kontakt niezależnie przy prawej krawędzi */
  .site-nav .nav-cta {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }
}


/* MOBILE / TABLET */
@media (max-width: 1040px) {

  .header-inner {
    display: flex;
    align-items: center;
  }

  .brand {
    position: static;
    transform: none;
    margin-right: auto;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
    margin-right: 0;
    flex: 0 0 48px;
  }

  .site-nav .nav-cta {
    position: static;
    transform: none;
  }
}

/* ---------- Section sidebar menu ---------- */

.side-nav--about .side-menu {
  display: grid;
  gap: 4px;
}

.side-nav--about .side-menu__link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
  transition:
    background .2s ease,
    color .2s ease;
}

.side-nav--about .side-menu__link::before {
  content: "+";
  flex: 0 0 auto;
  color: var(--red);
  font-weight: 800;
}

.side-nav--about .side-menu__link:hover {
  background: rgba(207, 43, 35, .05);
}

.side-nav--about .side-menu__link.is-active {
  color: var(--red);
  background: rgba(207, 43, 35, .08);
}

.side-nav--about .side-menu__link.is-active::before {
  color: var(--red);
}

/* ---------- Sidebar services ---------- */

.side-services {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(31, 96, 130, .10);
}

.side-services p {
  position: relative;
  margin: 0 0 14px;
  padding: 18px 18px 18px 64px;
  min-height: 88px;

  border: 1px solid rgba(31, 96, 130, .06);
  border-radius: 22px;

  background: rgba(255, 255, 255, .96);

  box-shadow:
    0 10px 26px rgba(31, 96, 130, .06);
}

.side-services p:last-child {
  margin-bottom: 0;
}

.side-services p::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;

  width: 34px;
  height: 34px;

  border-radius: 12px;

  background-color: rgba(207, 43, 35, .08);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}

/* Szkolenia */
.side-services p:nth-of-type(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cf2b23' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-5 9 5-9 5-9-5z'/%3E%3Cpath d='M7 11.5V16c3 2 7 2 10 0v-4.5'/%3E%3C/svg%3E");
}

/* Doradztwo HR */
.side-services p:nth-of-type(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cf2b23' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3'/%3E%3Cpath d='M6 20v-2a6 6 0 0112 0v2'/%3E%3C/svg%3E");
}

/* Optymalizacja */
.side-services p:nth-of-type(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cf2b23' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v4M12 18v4M2 12h4M18 12h4M5 5l3 3M16 16l3 3M19 5l-3 3M8 16l-3 3'/%3E%3C/svg%3E");
}

.side-services strong {
  display: block;
  margin: 0 0 4px;

  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.side-services small {
  display: block;

  color: #718096;
  font-size: 12px;
  line-height: 1.35;
}

/* ---------- Highlight box ---------- */

.content-card--about__blocks {
  margin-top: 28px;
}

.highlight-box {
  padding: 26px 30px;
  border: 1px solid rgba(207, 43, 35, .18);
  border-radius: 24px;
  background:
    linear-gradient(
      135deg,
      rgba(207, 43, 35, .055),
      rgba(255, 255, 255, .92)
    );
}

.highlight-box__title {
  margin: 0 0 12px;
  color: var(--rhr-blue);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.highlight-box__text {
  color: var(--navy);
  font-size: 17px;
  line-height: 1.7;
}

.highlight-box__text p {
  margin: 0;
}

/* ---------- About content layout refinement ---------- */

.subpage-body {
  padding: 64px 0 56px;
}

.subpage-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.side-nav--about {
  padding: 20px;
}

.content-card--about {
  padding: 42px 46px;
}

/* Typografia głównej treści */
.content-card--about__text {
  color: var(--navy);
  font-size: 17px;
  line-height: 1.7;
}

.content-card--about__text p {
  margin: 0 0 20px;
}

.content-card--about__text p:last-child {
  margin-bottom: 0;
}

.content-card--about__text h2,
.content-card--about__text h3 {
  color: var(--rhr-blue);
  line-height: 1.2;
}

.content-card--about__text h2 {
  margin: 0 0 22px;
  font-size: 28px;
}

.content-card--about__text h3 {
  margin: 28px 0 14px;
  font-size: 22px;
}

/* Highlight box */
.content-card--about__blocks {
  margin-top: 30px;
}

/* Tablet / mobile */
@media (max-width: 900px) {
  .subpage-body {
    padding: 64px 0 56px;
  }

  .subpage-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .content-card--about {
    padding: 30px;
  }
}

@media (max-width: 640px) {
  .content-card--about {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .content-card--about__text {
    font-size: 16px;
  }

  .highlight-box {
    padding: 22px 20px;
    border-radius: 20px;
  }
}

/* ---------- Sidebar hierarchy ---------- */

.side-nav--about .side-menu__link--root {
  margin-bottom: 8px;
  padding: 8px 12px;
  color: var(--rhr-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: transparent;
}

.side-nav--about .side-menu__link--root::before {
  content: none;
}

.side-nav--about .side-menu__link--root.is-active {
  color: var(--rhr-blue);
  background: transparent;
}

.side-nav--about .side-menu__link--child {
  padding-left: 16px;
}

.side-nav--about .side-menu__link--child.is-active {
  color: var(--red);
  background: rgba(207, 43, 35, .08);
}

/* ---------- Mobile submenu visibility fix ---------- */
@media (max-width: 1040px) {

  .site-nav .dropdown {
    background: #f7fafc;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-nav .nav-item.is-open > .dropdown {
    display: grid;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav .dropdown a {
    display: block;
    color: var(--rhr-blue-dark);
    opacity: 1;
    visibility: visible;
    background: transparent;
  }

  .site-nav .dropdown a:hover,
  .site-nav .dropdown a:focus {
    color: var(--red);
    background: rgba(207, 43, 35, .07);
  }
}

/* ---------- Mobile dropdown position fix ---------- */
@media (max-width: 1040px) {

  .site-nav .has-dropdown > .dropdown,
  .site-nav .has-dropdown:hover > .dropdown,
  .site-nav .has-dropdown:focus-within > .dropdown,
  .site-nav .nav-item.is-open > .dropdown {
    position: static;
    left: auto;
    right: auto;
    width: 100%;
    max-width: none;
    transform: none;
    margin-left: 0;
    margin-right: 0;
  }

}

/* ---------- Breadcrumb refinement ---------- */

.breadcrumb-strip {
  background: rgba(255, 255, 255, .92);
  border-top: 1px solid rgba(31, 96, 130, .04);
  border-bottom: 1px solid rgba(31, 96, 130, .08);
}

.breadcrumb-strip .container {
  padding-top: 12px;
  padding-bottom: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  color: #7A8798;
  font-size: 13px;
  line-height: 1.4;
}

.breadcrumb a {
  color: #6B7A8E;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb span {
  color: rgba(31, 96, 130, .35);
  font-size: 15px;
}

.breadcrumb strong {
  color: var(--rhr-blue);
  font-weight: 700;
}

@media (max-width: 640px) {
  .breadcrumb-strip .container {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .breadcrumb {
    gap: 5px;
    font-size: 12px;
  }
}

.breadcrumb__home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.breadcrumb__home svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* ==========================================================
   CONTACT PAGE
   ========================================================== */

.contact-section {
  padding: 56px 0 82px;
  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(31, 96, 130, .045),
      transparent 28rem
    ),
    linear-gradient(
      180deg,
      rgba(248, 250, 252, .35) 0%,
      #f8fafc 100%
    );
}


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

.contact-card {
  max-width: 1080px;
  margin: 0 auto;
  padding: 42px 48px 38px;

  border: 1px solid rgba(31, 96, 130, .08);
  border-radius: 30px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, .96),
      rgba(255, 255, 255, .86)
    );

  box-shadow:
    0 24px 70px rgba(31, 96, 130, .08);
}


/* ---------- Header ---------- */

.contact-card__header {
  margin-bottom: 30px;
}

.contact-card__title {
  margin: 0 0 6px;

  color: var(--rhr-blue);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.contact-card__intro {
  max-width: 640px;

  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.contact-card__intro p {
  margin: 0;
}


/* ==========================================================
   WEBFORM
   ========================================================== */

.contact-form form {
  margin: 0;
}

.contact-form .form-item {
  margin: 0 0 22px;
}


/* ---------- Labels ---------- */

.contact-form label {
  display: block;
  margin: 0 0 8px;

  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

/* ---------- Required fields ---------- */

.contact-form label.form-required::after {
  content: " *";
  display: inline;
  margin-left: 2px;

  color: var(--red);
  font-size: 15px;
  font-weight: 800;

  background: none;
  vertical-align: baseline;
}


/* ---------- Inputs ---------- */

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;

  padding: 14px 17px;

  color: var(--navy);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;

  border: 1px solid rgba(31, 96, 130, .18);
  border-radius: 15px;

  outline: none;

  background: rgba(248, 250, 252, .72);

  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, .02);

  transition:
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
  min-height: 54px;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}


/* ---------- Placeholder ---------- */

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9aa7b6;
  opacity: 1;
}


/* ---------- Focus ---------- */

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: rgba(31, 96, 130, .55);

  background: #fff;

  box-shadow:
    0 0 0 4px rgba(31, 96, 130, .07);
}


/* ==========================================================
   SUBMIT AREA
   ========================================================== */

.contact-form .form-actions {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
  margin: 28px 0 0;
}


/* ---------- Submit button ---------- */

.contact-form input[type="submit"],
.contact-form button[type="submit"] {
  appearance: none;

  min-width: 245px;
  min-height: 54px;

  padding: 14px 28px;

  border: 0;
  border-radius: 14px;

  color: #fff;

  font-family: inherit;
  font-size: 15px;
  font-weight: 750;
  line-height: 1;

  cursor: pointer;

  background:
    linear-gradient(
      135deg,
      #cf2b23 0%,
      #e23028 100%
    );

  box-shadow:
    0 12px 28px rgba(207, 43, 35, .20);

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.contact-form input[type="submit"]:hover,
.contact-form button[type="submit"]:hover {
  transform: translateY(-1px);

  box-shadow:
    0 16px 34px rgba(207, 43, 35, .26);
}

.contact-form input[type="submit"]:active,
.contact-form button[type="submit"]:active {
  transform: translateY(0);
}


/* ==========================================================
   WEBFORM ERRORS
   ========================================================== */

.contact-form .form-item--error-message {
  margin-top: 7px;

  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}

.contact-form input.error,
.contact-form textarea.error {
  border-color: rgba(207, 43, 35, .55);

  box-shadow:
    0 0 0 4px rgba(207, 43, 35, .06);
}


/* ==========================================================
   WEBFORM MESSAGES
   ========================================================== */

.contact-form .messages {
  margin-bottom: 26px;
  padding: 18px 20px;

  border-radius: 16px;
}

.contact-form .messages--status {
  border: 1px solid rgba(31, 96, 130, .15);

  color: var(--navy);

  background: rgba(31, 96, 130, .055);
}

.contact-form .messages--error {
  border: 1px solid rgba(207, 43, 35, .18);

  color: var(--navy);

  background: rgba(207, 43, 35, .055);
}


/* ==========================================================
   CONTACT PAGE — TABLET
   ========================================================== */

@media (max-width: 900px) {

  .contact-section {
    padding: 46px 0 64px;
  }

  .contact-card {
    padding: 34px 32px;
    border-radius: 26px;
  }

}


/* ==========================================================
   CONTACT PAGE — MOBILE
   ========================================================== */

@media (max-width: 640px) {

  .contact-section {
    padding: 34px 0 48px;
  }

  .contact-card {
    padding: 26px 20px 24px;
    border-radius: 22px;
  }

  .contact-card__header {
    margin-bottom: 26px;
  }

  .contact-card__title {
    font-size: 28px;
  }

  .contact-card__intro {
    font-size: 15px;
  }

  .contact-form .form-item {
    margin-bottom: 19px;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea {
    font-size: 16px;
    border-radius: 13px;
  }

  .contact-form textarea {
    min-height: 145px;
  }

  .contact-form .form-actions {
    display: block;
    margin-top: 24px;
  }

  .contact-form input[type="submit"],
  .contact-form button[type="submit"] {
    width: 100%;
    min-width: 0;
  }

}

/* ==========================================================
   SERVICE PAGE HERO
   ========================================================== */

.subpage-hero--with-image {
  padding: 54px 0;

  background:
    radial-gradient(
      circle at 85% 18%,
      rgba(31, 96, 130, .055),
      transparent 24rem
    ),
    linear-gradient(
      135deg,
      rgba(31, 96, 130, .035),
      rgba(207, 43, 35, .018)
    );
}

.subpage-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .75fr);
  gap: 64px;
  align-items: center;
}

.subpage-hero:not(.subpage-hero--with-image) .subpage-hero__layout {
  display: block;
}

.subpage-hero__content {
  min-width: 0;
}

.subpage-hero--with-image h1 {
  max-width: 680px;
  margin: 10px 0 18px;

  color: var(--rhr-blue);
  font-size: clamp(42px, 4.6vw, 62px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.subpage-hero__text {
  max-width: 650px;

  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.subpage-hero__text p {
  margin: 0;
}


/* ---------- Hero image ---------- */

.subpage-hero__media {
  position: relative;

  max-width: 460px;
  margin-left: auto;
}

.subpage-hero__media::before {
  content: "";

  position: absolute;
  inset: -18px 18px 18px -18px;

  z-index: 0;

  border-radius: 28px;

  background:
    linear-gradient(
      135deg,
      rgba(31, 96, 130, .06),
      rgba(207, 43, 35, .035)
    );
}

.subpage-hero__media > * {
  position: relative;
  z-index: 1;
}

.subpage-hero__media img {
  display: block;

  width: 100%;
  /* aspect-ratio: 4 / 3; */
  /* object-fit: cover; */

  border-radius: 24px;

  box-shadow:
    0 20px 52px rgba(31, 96, 130, .12);
}


/* ==========================================================
   SERVICE TOPICS
   ========================================================== */

.service-topics {
  padding: 64px 0 72px;

  background:
    linear-gradient(
      180deg,
      #fff 0%,
      #f8fafc 100%
    );
}

.service-topics__inner {
  max-width: 1080px;
}

.service-topics__title {
  margin: 0 0 14px;

  color: var(--rhr-blue);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.service-topics__intro {
  max-width: 900px;
  margin-bottom: 34px;

  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.service-topics__intro p {
  margin: 0 0 16px;
}

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

.service-topics__intro a,
.service-topics__footer a {
  color: var(--rhr-blue);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(31, 96, 130, .28);
  text-underline-offset: 3px;

  transition:
    color .2s ease,
    text-decoration-color .2s ease;
}

.service-topics__intro a:hover,
.service-topics__footer a:hover {
  color: var(--red);
  text-decoration-color: rgba(207, 43, 35, .4);
}


/* ---------- Groups ---------- */

.service-topics__groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 28px;
}

.service-topics--single .service-topics__groups {
  grid-template-columns: 1fr;
}

.service-topic-group__title {
  margin: 0 0 14px;

  color: var(--rhr-blue);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.3;
}

.service-topic-group__links {
  display: grid;
  gap: 9px;
}


/* ---------- Topic links ---------- */

.service-topic-link {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  min-height: 56px;
  padding: 13px 17px;

  border: 1px solid rgba(31, 96, 130, .12);
  border-radius: 13px;

  color: var(--navy);

  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;

  background:
    rgba(255, 255, 255, .78);

  box-shadow:
    0 7px 22px rgba(31, 96, 130, .025);

  transition:
    color .2s ease,
    border-color .2s ease,
    background .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.service-topic-link:hover {
  color: var(--red);

  border-color: rgba(207, 43, 35, .18);

  background: #fff;

  transform: translateY(-1px);

  box-shadow:
    0 10px 28px rgba(31, 96, 130, .06);
}

.service-topic-link__arrow {
  flex: 0 0 auto;

  color: var(--red);
  font-size: 18px;
  font-weight: 500;

  transition: transform .2s ease;
}

.service-topic-link:hover .service-topic-link__arrow {
  transform: translateX(3px);
}


/* ---------- Bottom text ---------- */

.service-topics__footer {
  max-width: 920px;
  margin-top: 38px;

  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.service-topics__footer p {
  margin: 0 0 16px;
}

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


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {

  .subpage-hero--with-image {
    padding: 46px 0;
  }

  .subpage-hero__layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .subpage-hero__media {
    width: 100%;
    max-width: 620px;
    margin: 0;
  }

  .service-topics {
    padding: 52px 0 60px;
  }

}


@media (max-width: 640px) {

  .subpage-hero--with-image {
    padding: 36px 0 42px;
  }

  .subpage-hero--with-image h1 {
    font-size: 38px;
  }

  .subpage-hero__media::before {
    inset: -10px 10px 10px -10px;
    border-radius: 22px;
  }

  .subpage-hero__media img {
    border-radius: 20px;
  }

  .service-topics {
    padding: 42px 0 48px;
  }

  .service-topics__groups {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-topic-link {
    min-height: 52px;
    padding: 12px 14px;

    font-size: 14px;
  }

  .service-topics__footer {
    margin-top: 30px;
  }

}

/* ==========================================================
   GLOBAL SUBTLE CTA
   ========================================================== */

.talk-section {
  padding: 32px 0 72px;
  background: #f8fafc;
}

.service-cta-card {
  position: relative;

  margin: 0 auto;

  padding: 34px 40px;

  overflow: hidden;

  text-align: center;

  background:
    linear-gradient(
      135deg,
      rgba(31, 96, 130, .05),
      rgba(255, 255, 255, .95)
    );

  box-shadow:
    0 14px 40px rgba(31, 96, 130, .045);
}

.service-cta-card::before {
  content: "";

  position: absolute;
  width: 240px;
  height: 240px;

  right: -110px;
  top: -130px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(31, 96, 130, .055),
      transparent 70%
    );

  pointer-events: none;
}

.service-cta-card .eyebrow {
  margin-bottom: 8px;
}

.service-cta-card__title {
  position: relative;

  margin: 0 0 8px;

  color: var(--rhr-blue);

  font-size: clamp(25px, 2.7vw, 34px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.service-cta-card__text {
  position: relative;

  max-width: 650px;
  margin: 0 auto 20px;

  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.service-cta-card__text p {
  margin: 0;
}


/* ---------- CTA button ---------- */

.service-cta-card__button {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 16px;

  min-height: 50px;
  padding: 13px 25px;

  border-radius: 13px;

  color: #fff;

  font-size: 14px;
  font-weight: 700;
  line-height: 1;

  background:
    linear-gradient(
      135deg,
      #cf2b23,
      #df3028
    );

  box-shadow:
    0 11px 25px rgba(207, 43, 35, .18);

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.service-cta-card__button:hover {
  color: #fff;

  transform: translateY(-1px);

  box-shadow:
    0 15px 32px rgba(207, 43, 35, .24);
}

.service-cta-card__button span:last-child {
  font-size: 17px;

  transition: transform .2s ease;
}

.service-cta-card__button:hover span:last-child {
  transform: translateX(3px);
}


/* ---------- Mobile ---------- */

@media (max-width: 640px) {

  .talk-section {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .talk-section > .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .service-cta-card {
    width: 100%;
    margin: 0;
    padding: 28px 20px;

    border-radius: 22px;
  }

  .service-cta-card__title {
    font-size: 26px;
  }

  .service-cta-card__button {
    width: 100%;
    max-width: 320px;
  }

}

/* ==========================================================
   SERVICE TOPIC ACCORDION
   ========================================================== */

.service-topic-group__items {
  display: grid;
  gap: 9px;
}


/* ---------- Item shell ---------- */

.service-topic-item {
  overflow: hidden;

  border: 1px solid rgba(31, 96, 130, .12);
  border-radius: 13px;

  background: rgba(255, 255, 255, .78);

  box-shadow:
    0 7px 22px rgba(31, 96, 130, .025);

  transition:
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.service-topic-item:hover {
  border-color: rgba(207, 43, 35, .16);

  background: #fff;
}

.service-topic-item.is-open {
  border-color: rgba(31, 96, 130, .16);

  background: #fff;

  box-shadow:
    0 12px 30px rgba(31, 96, 130, .055);
}


/* ==========================================================
   DIRECT LINK
   ========================================================== */

.service-topic-item__direct {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  min-height: 56px;
  padding: 13px 17px;

  color: var(--navy);

  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;

  transition:
    color .2s ease;
}

.service-topic-item__direct:hover {
  color: var(--red);
}

.service-topic-item__arrow {
  flex: 0 0 auto;

  color: var(--red);
  font-size: 18px;

  transition: transform .2s ease;
}

.service-topic-item__direct:hover
.service-topic-item__arrow {
  transform: translateX(3px);
}


/* ==========================================================
   ACCORDION HEADER
   ========================================================== */

.service-topic-item__toggle {
  width: 100%;
  min-height: 56px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 13px 17px;

  border: 0;

  color: var(--navy);

  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;

  text-align: left;

  cursor: pointer;

  background: transparent;
}

.service-topic-item__toggle:hover {
  color: var(--red);
}


/* ---------- Chevron ---------- */

.service-topic-item__chevron {
  position: relative;

  flex: 0 0 auto;

  width: 10px;
  height: 10px;

  margin-right: 3px;

  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);

  transform:
    translateY(-2px)
    rotate(45deg);

  transition:
    transform .22s ease;
}

.service-topic-item.is-open
.service-topic-item__chevron {
  transform:
    translateY(2px)
    rotate(225deg);
}


/* ==========================================================
   ACCORDION CONTENT
   ========================================================== */

.service-topic-item__panel {
  border-top:
    1px solid rgba(31, 96, 130, .08);

  background:
    linear-gradient(
      180deg,
      rgba(248, 250, 252, .8),
      rgba(255, 255, 255, .92)
    );
}

.service-topic-item__subitems {
  padding: 5px 17px 8px;
}


/* ---------- Subitem ---------- */

.service-topic-subitem {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  min-height: 46px;

  padding: 10px 4px;

  border-bottom:
    1px solid rgba(31, 96, 130, .07);

  color: var(--navy);

  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;

  transition:
    color .2s ease,
    padding-left .2s ease;
}

.service-topic-subitem:last-child {
  border-bottom: 0;
}

.service-topic-subitem:hover {
  color: var(--red);
  padding-left: 8px;
}

.service-topic-subitem__arrow {
  flex: 0 0 auto;

  color: var(--red);
  font-size: 16px;

  transition: transform .2s ease;
}

.service-topic-subitem:hover
.service-topic-subitem__arrow {
  transform: translateX(3px);
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 640px) {

  .service-topic-item__toggle,
  .service-topic-item__direct {
    min-height: 52px;
    padding: 12px 14px;

    font-size: 14px;
  }

  .service-topic-item__subitems {
    padding:
      4px 14px 7px;
  }

  .service-topic-subitem {
    min-height: 44px;

    padding: 10px 2px;

    font-size: 13px;
  }

}

/* ==========================================================
   TRAINING INQUIRY
   ========================================================== */

.training-inquiry {
  padding: 34px 0 72px;
  background: #f8fafc;
}

.training-inquiry__header {
  margin-bottom: 22px;
  text-align: center;
}

.training-inquiry__header h2 {
  margin: 7px 0 0;
  color: var(--rhr-blue);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 650;
  letter-spacing: -.025em;
}


/* ---------- Options ---------- */

.training-inquiry__options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  max-width: 1080px;
  margin: 0 auto;

  overflow: hidden;

  border: 1px solid rgba(31, 96, 130, .14);
  border-radius: 16px;

  background: #fff;

  box-shadow: 0 10px 30px rgba(31, 96, 130, .04);
}

.training-inquiry__option {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 14px;

  min-height: 64px;
  padding: 14px 20px;

  border: 0;
  border-right: 1px solid rgba(31, 96, 130, .1);

  color: var(--rhr-blue);

  font-family: inherit;
  font-size: 15px;
  font-weight: 650;

  cursor: pointer;

  background: transparent;

  transition:
    color .2s ease,
    background .2s ease;
}

.training-inquiry__option:last-child {
  border-right: 0;
}

.training-inquiry__option:hover {
  color: var(--red);
  background: rgba(31, 96, 130, .025);
}

.training-inquiry__option span:last-child {
  color: var(--red);

  font-size: 18px;

  transition: transform .2s ease;
}

.training-inquiry__option:hover span:last-child {
  transform: translateX(3px);
}


/* ==========================================================
   MODAL
   ========================================================== */

/* ---------- Header ---------- */

.training-inquiry-modal__header {
  padding-right: 42px;
  margin-bottom: 28px;
}

.training-inquiry-modal__header h2 {
  margin: 7px 0 18px;

  color: var(--rhr-blue);

  font-size: 32px;
  font-weight: 650;
  line-height: 1.15;

  letter-spacing: -.025em;
}

/* ---------- Current selection ---------- */

.training-inquiry-modal__selection {
  display: flex;
  flex-direction: column;

  gap: 4px;

  padding: 14px 16px;

  border-radius: 12px;

  background: rgba(31, 96, 130, .045);
}

.training-inquiry-modal__training {
  color: var(--rhr-blue);

  font-size: 15px;
  font-weight: 700;
}

.training-inquiry-modal__type {
  color: var(--red);

  font-size: 14px;
  font-weight: 600;
}

/* Prevent page scroll while modal is open. */

body.training-inquiry-open {
  overflow: hidden;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 700px) {

  .training-inquiry {
    padding: 28px 0 48px;
  }

  .training-inquiry__options {
    grid-template-columns: 1fr;
  }

  .training-inquiry__option {
    min-height: 56px;

    border-right: 0;
    border-bottom:
      1px solid rgba(31, 96, 130, .1);
  }

  .training-inquiry__option:last-child {
    border-bottom: 0;
  }

  .training-inquiry-modal__header {
    padding-right: 34px;
  }

  .training-inquiry-modal__header h2 {
    font-size: 27px;
  }

}

/* ---------- Links inside main editorial content ---------- */

.content-card--about__text a {
  color: var(--rhr-blue);
  font-weight: 650;

  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(31, 96, 130, .35);
  text-underline-offset: 3px;

  transition:
    color .2s ease,
    text-decoration-color .2s ease;
}

.content-card--about__text a:hover {
  color: var(--red);
  text-decoration-color: rgba(207, 43, 35, .55);
}

.training-inquiry__options--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 700px) {
  .training-inquiry__options--two {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   HR OPTIMIZATION
   ========================================================= */

.hr-optimization {
  padding: 70px 0 90px;
}

.hr-optimization__header {
  max-width: 820px;
  margin-bottom: 38px;
}

.hr-optimization__header h2 {
  margin: 8px 0 18px;
}

.hr-optimization__intro {
  color: var(--muted);
  line-height: 1.75;
}


/* Accordion */

.hr-optimization__items {
  display: grid;
  gap: 12px;
}

.hr-optimization-item {
  background: #fff;
  border: 1px solid rgba(31, 96, 130, .12);
  border-radius: 18px;
  overflow: hidden;

  box-shadow:
    0 8px 30px rgba(25, 67, 91, .045);

  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

.hr-optimization-item:hover,
.hr-optimization-item.is-open {
  border-color: rgba(31, 96, 130, .24);

  box-shadow:
    0 14px 38px rgba(25, 67, 91, .07);
}

.hr-optimization-item__toggle {
  width: 100%;
  min-height: 78px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding: 20px 26px;

  border: 0;
  background: transparent;

  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.hr-optimization-item__title {
  font-size: 18px;
  font-weight: 750;
}

.hr-optimization-item__chevron {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;

  border-right: 2px solid var(--rhr-blue);
  border-bottom: 2px solid var(--rhr-blue);

  transform: rotate(45deg);
  transition: transform .2s ease;
}

.hr-optimization-item.is-open
.hr-optimization-item__chevron {
  transform: rotate(225deg);
}

.hr-optimization-item__panel {
  border-top: 1px solid rgba(31, 96, 130, .09);
}

.hr-optimization-item__content {
  padding: 26px;
  line-height: 1.7;
}

.hr-optimization-item__content > :first-child {
  margin-top: 0;
}

.hr-optimization-item__content > :last-child {
  margin-bottom: 0;
}


/* Add to inquiry */

.hr-optimization-item__add {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin-top: 18px;
  padding: 11px 17px;

  border: 1px solid rgba(31, 96, 130, .22);
  border-radius: 999px;

  background: rgba(31, 96, 130, .04);
  color: var(--rhr-blue);

  font: inherit;
  font-weight: 700;

  cursor: pointer;

  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease;
}

.hr-optimization-item__add:hover {
  background: rgba(31, 96, 130, .09);
}

.hr-optimization-item.is-selected
.hr-optimization-item__add {
  background: rgba(31, 96, 130, .10);
  border-color: rgba(31, 96, 130, .35);
}


/* Selected inquiry */

.hr-optimization__inquiry {
  max-width: 820px;

  margin: 38px auto 0;
  padding: 28px;

  background: #fff;

  border: 1px solid rgba(31, 96, 130, .12);
  border-radius: 22px;

  box-shadow:
    0 18px 50px rgba(25, 67, 91, .08);
}

.hr-optimization__inquiry[hidden] {
  display: none;
}

.hr-optimization__inquiry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.hr-optimization__inquiry-head h3 {
  margin: 5px 0 0;
}

.hr-optimization__count {
  color: var(--rhr-blue);
}

.hr-optimization__clear {
  padding: 0;
  border: 0;
  background: transparent;

  color: var(--muted);
  font: inherit;
  font-weight: 650;

  cursor: pointer;
}

.hr-optimization__selected {
  display: grid;
  gap: 8px;

  margin: 22px 0;
}

.hr-optimization__selected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 11px 14px;

  background: rgba(31, 96, 130, .045);
  border-radius: 10px;
}

.hr-optimization__remove {
  border: 0;
  background: transparent;

  color: var(--muted);
  font-size: 22px;
  line-height: 1;

  cursor: pointer;
}

.hr-optimization__submit {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 15px 19px;

  border: 0;
  border-radius: 12px;

  background: var(--red);
  color: #fff;

  font: inherit;
  font-weight: 750;

  cursor: pointer;
}


@media (max-width: 700px) {
  .hr-optimization {
    padding: 50px 0 70px;
  }

  .hr-optimization-item__toggle {
    min-height: 68px;
    padding: 17px 19px;
  }

  .hr-optimization-item__title {
    font-size: 16px;
  }

  .hr-optimization-item__content {
    padding: 20px;
  }

  .hr-optimization__inquiry {
    padding: 22px 18px;
  }
}

/* =========================================================
   HR OPTIMIZATION INQUIRY MODAL
   ========================================================= */

.optimization-inquiry-modal__areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-bottom: 26px;
}

.optimization-inquiry-modal__area {
  padding: 8px 12px;

  background: rgba(31, 96, 130, .07);
  border: 1px solid rgba(31, 96, 130, .12);
  border-radius: 999px;

  color: var(--rhr-blue);
  font-size: 14px;
  font-weight: 700;
}

.optimization-inquiry-modal-open {
  overflow: hidden;
}

/* HR optimization - action above content */

.hr-optimization-item__actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(31, 96, 130, .09);
}

.hr-optimization-item__actions
.hr-optimization-item__add {
  margin-top: 0;
}

.hr-optimization-item__body > :first-child {
  margin-top: 0;
}

.optimization-inquiry-modal__dialog h2 {
  margin: 7px 55px 20px 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

@media (max-width: 700px) {
  .optimization-inquiry-modal__dialog h2 {
    font-size: 30px;
  }

  .optimization-inquiry-modal__areas {
    margin-bottom: 20px;
  }

  .optimization-inquiry-modal__form {
    margin-top: 22px;
  }
}

/* =========================================================
   SUBPAGE LAYOUT - WITH / WITHOUT SECTION MENU
   ========================================================= */

/* Strona posiada menu swojej sekcji. */
.subpage-layout--with-sidebar {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
}


/* Strona bez menu sekcji. */
.subpage-layout--without-sidebar {
  display: block;
}

.subpage-layout--without-sidebar .content-card--about {
  width: 100%;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}


/* Na mniejszych ekranach oba warianty są jednokolumnowe. */
@media (max-width: 900px) {
  .subpage-layout--with-sidebar {
    grid-template-columns: 1fr;
  }

  .subpage-layout--without-sidebar .content-card--about {
    max-width: 100%;
  }
}

/* =========================================================
   RHR MODAL - SHARED
   Szkolenia / Doradztwo HR / Optymalizacja HR
   ========================================================= */

.rhr-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 24px;
}

/* Szkolenia i Doradztwo otwierane klasą JS. */
.rhr-modal.is-open {
  display: flex;
}

/* Optymalizacja sterowana atrybutem hidden. */

.rhr-modal[hidden] {
  display: none;
}

.optimization-inquiry-modal:not([hidden]) {
  display: flex;
}

/* Backdrop */

.rhr-modal__backdrop {
  position: absolute;
  inset: 0;

  background: rgba(10, 25, 38, .62);
  backdrop-filter: blur(4px);
}


/* Dialog */

.rhr-modal__dialog {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 48px);

  overflow-y: auto;

  padding: 38px 42px 40px;

  border-radius: 24px;

  background: #fff;

  box-shadow:
    0 30px 90px rgba(10, 30, 45, .22);
}


/* Close */

.rhr-modal__close {
  position: absolute;
  top: 18px;
  right: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: rgba(31, 96, 130, .06);
  color: var(--rhr-blue);

  cursor: pointer;

  transform: none;

  transition:
    color .2s ease,
    background .2s ease;
}

.rhr-modal__close:hover {
  background: rgba(207, 43, 35, .07);
}

.rhr-modal__close span {
  display: block;

  width: 20px;
  height: 20px;

  font-size: 25px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;

  transform: rotate(0);
  transform-origin: 50% 50%;

  transition:
    transform .25s ease,
    color .2s ease;
}

.rhr-modal__close:hover span {
  color: var(--red);
  transform: rotate(90deg);
}


/* =========================================================
   WEBFORM INSIDE RHR MODAL
   ========================================================= */

.rhr-modal__form {
  margin-top: 28px;
}

.rhr-modal__form .form-item {
  margin: 0 0 20px;
}

.rhr-modal__form label {
  display: block;

  margin: 0 0 7px;

  color: var(--navy);

  font-size: 14px;
  font-weight: 650;
}

.rhr-modal__form label.form-required::after {
  content: " *";

  margin-left: 3px;

  color: var(--red);
  background: none;
}


/* Inputs */

.rhr-modal__form input[type="email"],
.rhr-modal__form input[type="tel"],
.rhr-modal__form input[type="text"],
.rhr-modal__form input[type="number"],
.rhr-modal__form select,
.rhr-modal__form textarea {
  box-sizing: border-box;
  display: block;

  width: 100%;

  padding: 13px 15px;

  border: 1px solid rgba(31, 96, 130, .18);
  border-radius: 10px;

  background: #fff;
  color: var(--navy);

  font: inherit;
  font-size: 16px;

  outline: none;

  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

.rhr-modal__form input[type="email"],
.rhr-modal__form input[type="tel"],
.rhr-modal__form input[type="text"],
.rhr-modal__form input[type="number"],
.rhr-modal__form select {
  min-height: 48px;
}

.rhr-modal__form textarea {
  min-height: 120px;
  resize: vertical;
}

.rhr-modal__form input:focus,
.rhr-modal__form select:focus,
.rhr-modal__form textarea:focus {
  border-color: rgba(31, 96, 130, .5);

  box-shadow:
    0 0 0 3px rgba(31, 96, 130, .08);
}


/* Descriptions */

.rhr-modal__form .description {
  margin-top: 6px;

  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}


/* Submit */

.rhr-modal__form .form-actions {
  margin: 26px 0 0;
}

.rhr-modal__form .form-submit {
  width: 100%;
  min-height: 48px;

  padding: 12px 24px;

  border: 0;
  border-radius: 10px;

  background: var(--red);
  color: #fff;

  font: inherit;
  font-size: 15px;
  font-weight: 700;

  cursor: pointer;

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    opacity .2s ease;
}

.rhr-modal__form .form-submit:hover {
  transform: translateY(-1px);

  box-shadow:
    0 9px 24px rgba(207, 43, 35, .20);
}

.rhr-modal__form .form-submit:active {
  transform: translateY(0);
}


/* Mobile */

@media (max-width: 700px) {

  .rhr-modal {
    padding: 14px;
  }

  .rhr-modal__dialog {
    max-height: calc(100vh - 28px);

    padding: 30px 20px 26px;

    border-radius: 20px;
  }

  .rhr-modal__form {
    margin-top: 22px;
  }

}
