:root {
  --ink: #222235;
  --ink-soft: #44445b;
  --muted: #727386;
  --line: #dfe6ec;
  --paper: #ffffff;
  --soft: #f5fafb;
  --mist: #e9f8fa;
  --teal: #16b8c9;
  --teal-dark: #07899a;
  --navy: #17172a;
  --shadow: 0 22px 70px rgba(23, 23, 42, 0.12);
  --radius: 8px;
  --container: min(1120px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px max(20px, calc((100vw - 1120px) / 2));
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(223, 230, 236, 0.68);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, min-height 180ms ease;
}

.site-header.is-scrolled {
  min-height: 66px;
  box-shadow: 0 10px 30px rgba(23, 23, 42, 0.08);
}

.brand img {
  width: 202px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--teal);
  content: "";
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.section {
  padding: 96px 0;
}

.section-band {
  position: relative;
  overflow: hidden;
  padding: 150px 0 88px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #f5fafb 0%, #ffffff 46%, #e9f8fa 100%);
}

.hero-bg::before {
  position: absolute;
  right: 5vw;
  top: 132px;
  width: min(430px, 44vw);
  height: 220px;
  background: url("logo-psicotalent.png") center/contain no-repeat;
  content: "";
  opacity: 0.09;
}

.hero-bg::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(135deg, rgba(22, 184, 201, 0) 0%, rgba(22, 184, 201, 0.12) 100%);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  content: "";
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--navy);
  font-weight: 800;
  line-height: 1.03;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.65rem, 6vw, 5.2rem);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
}

h3 {
  color: var(--navy);
  font-size: 1.17rem;
  line-height: 1.24;
}

.lead {
  max-width: 670px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.hero-actions,
.footer-inner,
.values {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--teal-dark);
  box-shadow: 0 14px 28px rgba(7, 137, 154, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #057989;
}

.btn-secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.hero-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.panel-logo {
  padding: 22px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.metric-row {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.metric-row div {
  padding-left: 16px;
  border-left: 3px solid var(--teal);
}

.metric-row strong,
.metric-row span {
  display: block;
}

.metric-row strong {
  color: var(--navy);
}

.metric-row span {
  color: var(--muted);
  font-size: 0.94rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.trust-strip span,
.value-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(22, 184, 201, 0.24);
  border-radius: var(--radius);
  color: var(--teal-dark);
  background: var(--mist);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.split,
.method-layout,
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.section-intro {
  position: sticky;
  top: 104px;
}

.story {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.story p {
  margin-bottom: 22px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 46px;
}

.info-block,
.service-card,
.case-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.info-block {
  padding: 28px;
}

.info-block span,
.case-card span {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.info-block p,
.service-card p,
.case-card p,
.section-heading p,
.method-item p,
.contact-copy p,
.site-footer p {
  color: var(--muted);
}

.values {
  margin-top: 22px;
}

.section-soft {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
  text-align: center;
}

.section-heading p {
  font-size: 1.04rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 278px;
  padding: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  border-color: rgba(22, 184, 201, 0.42);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-wide {
  grid-column: span 2;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 26px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
}

.method-list {
  display: grid;
  gap: 16px;
}

.method-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.method-item span {
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border: 4px solid var(--teal);
  border-radius: 50%;
}

.method-item p {
  margin-bottom: 0;
  font-weight: 700;
}

.section-contrast {
  color: #fff;
  background: var(--navy);
}

.section-contrast h2,
.section-contrast h3 {
  color: #fff;
}

.section-contrast .eyebrow,
.section-contrast .section-heading p {
  color: #78e1ea;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.case-card {
  padding: 26px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.13);
}

.case-card p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-section {
  background:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.92) 44%, rgba(233, 248, 250, 0.8) 100%);
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-card a,
.contact-card p {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 800;
}

.contact-card a:hover {
  color: var(--teal-dark);
}

.contact-card p {
  border-bottom: 0;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  justify-content: space-between;
}

.footer-inner img {
  width: 178px;
}

.footer-inner p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: var(--radius);
  color: #fff;
  background: #159b62;
  box-shadow: 0 16px 34px rgba(21, 155, 98, 0.26);
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    min-height: 70px;
  }

  .brand img {
    width: 170px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px;
  }

  .site-nav a::after {
    display: none;
  }

  .section,
  .section-band {
    padding: 78px 0;
  }

  .hero-grid,
  .split,
  .method-layout,
  .contact-grid,
  .mission-grid,
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-intro {
    position: static;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-wide {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  :root {
    --container: min(100vw - 28px, 1120px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-panel {
    padding: 18px;
  }

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

  .service-wide {
    grid-column: auto;
  }

  .service-card {
    min-height: 0;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .whatsapp {
    right: 14px;
    bottom: 14px;
  }
}
