/* ============================================================
   Екатерина Гваладзе — HRBP / L&D
   Aesthetic: "Consulting Print" — рабочая тетрадь HR-консультанта.
   Одно насыщенное действие (терракота), много бумаги.
   ============================================================ */

:root {
  --bg:         #F2F0EB;
  --surface:    #FBFAF7;
  --surface-2:  #E9E6DF;

  --ink:        #191714;
  --ink-soft:   #423E38;
  --muted:      #6B655C;

  --accent:      #A8421D;
  --accent-ink:  #8C3717;
  --accent-wash: #F4E9E3;

  --rule:      #DDD8CF;
  --rule-firm: #B6AFA3;

  --ok:   #2F5D43;
  --warn: #7C5A14;

  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 66rem;
  --gut: clamp(1.25rem, 4.5vw, 2.75rem);

  --spring-fast: cubic-bezier(0.32, 0.72, 0, 1);
  --spring:      cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.011em; margin: 0; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
}
/* круглые кнопки сохраняют круглый фокус */
.btn:focus-visible, .nav-cta:focus-visible { border-radius: 999px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: 0.7rem 1.2rem; z-index: 200; font-size: 0.85rem;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

/* ---------------- TOPBAR ---------------- */

.topbar {
  position: sticky; top: 0; z-index: 90;
  background: rgba(242, 240, 235, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.topbar-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 3.9rem;
}

.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--ink); min-width: 0;
}

.brand-mark {
  flex: none; display: grid; place-items: center;
  width: 2rem; height: 2rem;
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
}

.brand-text {
  display: flex; flex-direction: column;
  font-family: var(--serif); font-size: 0.96rem; font-weight: 600;
  line-height: 1.2; min-width: 0;
}
.brand-text em {
  font-family: var(--sans); font-style: normal;
  font-size: 0.63rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}

.nav { display: flex; align-items: center; gap: clamp(0.8rem, 1.8vw, 1.5rem); font-size: 0.85rem; }
.nav a { color: var(--ink-soft); text-decoration: none; white-space: nowrap; padding: 0.3rem 0; }

.nav a:not(.nav-cta) {
  position: relative;
  transition: color 0.18s var(--spring-fast);
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.32s var(--spring);
}
.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta):focus-visible::after { transform: scaleX(1); }

.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 0.52rem 1rem; font-weight: 500;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(25, 23, 20, 0.10), 0 3px 12px rgba(168, 66, 29, 0.18);
  will-change: transform;
  transition: transform 0.34s var(--spring), background-color 0.26s ease,
              box-shadow 0.26s ease;
}
.nav-cta:hover {
  background: var(--accent-ink);
  box-shadow: 0 2px 4px rgba(25, 23, 20, 0.12), 0 6px 20px rgba(168, 66, 29, 0.24);
}
.nav-cta.is-pressing { transform: scale(0.96); transition-duration: 0.06s; }

.nav-toggle { display: none; }

/* ---------------- HERO ---------------- */

.hero { padding: clamp(3rem, 8.5vw, 6rem) 0 clamp(2.75rem, 7vw, 4.5rem); }
.hero-in { max-width: 52rem; }

.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 600; margin: 0 0 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 7.6vw, 4.9rem);
  line-height: 1.0; letter-spacing: -0.028em;
  margin: 0 0 1.5rem; font-weight: 500;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.04rem, 2vw, 1.26rem); line-height: 1.55;
  color: var(--ink-soft); max-width: 40rem; margin: 0 0 2.25rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3.25rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.88rem; font-weight: 500;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  border-radius: 999px;
  will-change: transform;
  transition: transform 0.34s var(--spring), background-color 0.26s ease,
              border-color 0.26s ease, color 0.26s ease,
              box-shadow 0.26s ease;
}

/* Мягкая тень вместо жёсткой обводки — кнопка «приподнимается» */
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(25, 23, 20, 0.10), 0 4px 14px rgba(168, 66, 29, 0.16);
}
.btn-primary:hover {
  background: var(--accent-ink); color: #fff;
  box-shadow: 0 2px 4px rgba(25, 23, 20, 0.12), 0 8px 24px rgba(168, 66, 29, 0.22);
}
.btn-primary:active { box-shadow: 0 1px 2px rgba(25, 23, 20, 0.10); }

.btn-ghost {
  border-color: var(--rule-firm); color: var(--ink); background: transparent;
  box-shadow: 0 1px 2px rgba(25, 23, 20, 0.04);
}
.btn-ghost:hover {
  border-color: var(--rule-firm); color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 10px rgba(25, 23, 20, 0.07);
}
.btn-ghost:active { background: rgba(255, 255, 255, 0.3); }

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* Нажатие — глубже и мягче: -3.5% и без провала тени */
.btn.is-pressing {
  transform: scale(0.965);
  transition-duration: 0.06s;
}
.btn-primary.is-pressing { box-shadow: 0 1px 2px rgba(25, 23, 20, 0.10); }
.btn-ghost.is-pressing { background: rgba(255, 255, 255, 0.3); }

/* ---------------- STATS ---------------- */

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3.5vw, 2.75rem);
  border-top: 2px solid var(--ink); padding-top: 1.6rem; margin: 0;
}
.hero-stats dt {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  letter-spacing: -0.025em; color: var(--accent-ink);
  margin-bottom: 0.35rem;
}
.hero-stats dd {
  margin: 0; font-size: 0.87rem; line-height: 1.45; color: var(--muted);
  max-width: 22ch;
}

/* ---------------- SECTIONS ---------------- */

.band { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.band-alt { background: var(--surface); border-block: 1px solid var(--rule); }

.h-sec {
  font-size: clamp(1.75rem, 4.2vw, 2.6rem);
  letter-spacing: -0.022em; margin: 0 0 2.5rem; font-weight: 500;
}

.sec-intro { max-width: 40rem; color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 2.75rem; }

.note {
  font-size: 0.84rem; color: var(--muted);
  border-top: 1px solid var(--rule); padding-top: 1.15rem; margin: 2.5rem 0 0;
}

/* ---------------- AUDIENCES ---------------- */

.aud-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }

.aud-list li {
  display: grid; grid-template-columns: minmax(13rem, 21rem) 1fr;
  gap: 0.5rem clamp(1.5rem, 4vw, 3.5rem);
  padding: 1.5rem 0; border-bottom: 1px solid var(--rule);
}
.aud-list h3 { font-size: 1.16rem; font-weight: 600; margin: 0; padding-top: 0.15rem; }
.aud-list p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------------- SERVICES ---------------- */

.svc-list { border-top: 2px solid var(--ink); }

.svc {
  display: grid; grid-template-columns: minmax(0, 24rem) 1fr;
  gap: 0.5rem clamp(1.5rem, 4vw, 3.5rem);
  padding: 1.6rem 0; border-bottom: 1px solid var(--rule);
}
.svc h3 { font-size: 1.16rem; font-weight: 600; margin: 0; padding-top: 0.1rem; }

.svc-body { display: grid; gap: 0.7rem; align-content: start; }

.svc-when { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.svc-out {
  margin: 0; color: var(--ink-soft); font-size: 0.97rem;
  padding-left: 0.85rem; border-left: 2px solid var(--accent);
}

.out-l {
  display: block; font-weight: 600; color: var(--accent-ink);
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* ---------------- AI AGENTS ---------------- */

.agents { display: grid; gap: 0; border-top: 2px solid var(--ink); }

.agent {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "head tag" "body body" "note note";
  gap: 0.4rem 1.5rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--rule);
}
.agent-head { grid-area: head; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem; }
.agent h3 { font-size: 1.16rem; font-weight: 600; margin: 0; }
.agent .tag { grid-area: tag; }
.agent > p { grid-area: body; margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 0.97rem; max-width: 62ch; }
.agent-note { font-size: 0.83rem !important; color: var(--muted) !important; font-style: italic; }

.tag {
  display: inline-block; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.22rem 0.5rem; white-space: nowrap;
}
.tag-concept { background: #F2EAD8; color: var(--warn); }
.tag-live    { background: #E2EBE5; color: var(--ok); }
.tag-ready   { background: #E4EAEF; color: #2C5470; }

/* ---------------- CASES ---------------- */

.cases { display: grid; gap: 0; border-top: 2px solid var(--ink); }

.case { padding: 1.7rem 0; border-bottom: 1px solid var(--rule); }

.case-org {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-ink); font-weight: 600; margin: 0 0 0.45rem;
}
.case h3 { font-size: 1.24rem; margin: 0 0 0.8rem; font-weight: 600; max-width: 46rem; }
.case p { margin: 0 0 0.9rem; color: var(--ink-soft); font-size: 0.97rem; max-width: 68ch; }
.case p:last-child { margin-bottom: 0; }

.case-out {
  background: var(--accent-wash);
  border-left: 2.5px solid var(--accent);
  padding: 0.85rem 1.05rem; font-size: 0.94rem !important;
  color: var(--ink) !important; max-width: 68ch;
}

.disclaimer {
  font-size: 0.8rem; line-height: 1.6; color: var(--muted);
  border-top: 1px solid var(--rule); padding-top: 1.2rem;
  margin: 2.5rem 0 0; max-width: 46rem;
}

/* ---------------- FAQ ---------------- */

.faq { border-top: 2px solid var(--ink); max-width: 52rem; }

.faq-item { border-bottom: 1px solid var(--rule); }

.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.25rem 0;
  font-family: var(--serif); font-size: 1.12rem; font-weight: 600;
  color: var(--ink); line-height: 1.35;
  transition: color 0.18s linear;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-ink); }

.faq-item summary::after {
  content: ""; flex: none;
  width: 0.85rem; height: 0.85rem; margin-top: 0.3rem;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.34s var(--spring);
}
.faq-item[open] summary::after { transform: rotate(-135deg); }

.faq-body { padding: 0 0 1.4rem; max-width: 62ch; }
.faq-body p { margin: 0 0 0.75rem; color: var(--ink-soft); font-size: 0.97rem; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------------- ABOUT ---------------- */

.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about-text p { margin: 0 0 1.05rem; color: var(--ink-soft); font-size: 1.02rem; max-width: 40ch; }
.about-text p:last-child { margin-bottom: 0; }

.side-h {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin: 0 0 0.9rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--rule-firm);
}
.about-side .side-h:not(:first-child) { margin-top: 2.25rem; }

.ex-line {
  font-family: var(--serif); font-size: 1rem; color: var(--accent-ink);
  margin: 0 0 1.1rem; font-style: italic;
}

.tl { list-style: none; margin: 0; padding: 0; }
.tl li { padding: 0.65rem 0; border-bottom: 1px solid var(--rule); }
.tl li:last-child { border-bottom: 0; }
.tl-d {
  display: block; font-family: var(--mono); font-size: 0.72rem;
  color: var(--muted); letter-spacing: 0.02em; margin-bottom: 0.18rem;
}
.tl-t { display: block; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.45; }

/* ---------------- STEPS ---------------- */

.steps { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }

.steps li {
  display: grid; grid-template-columns: 2.6rem 1fr;
  gap: 0 clamp(1rem, 2.5vw, 1.75rem);
  padding: 1.35rem 0; border-bottom: 1px solid var(--rule);
}
.step-n {
  font-family: var(--mono); font-size: 0.85rem; color: var(--accent-ink);
  padding-top: 0.3rem;
}
.steps h3 { font-size: 1.1rem; margin: 0 0 0.3rem; font-weight: 600; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; max-width: 60ch; }

/* ---------------- CONTACT ---------------- */

.band-contact { background: var(--ink); color: #EFEDE8; }
.band-contact .h-sec { color: #FBFAF7; }
.band-contact .sec-intro { color: #B4AEA4; }
.band-contact a { color: #E8A88D; }
.band-contact .out-l { color: #EFEDE8; }

.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.form { display: grid; gap: 1.05rem; }

.field { display: grid; gap: 0.35rem; }
.field label {
  font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: #A8A199; font-weight: 600;
}

.field input, .field textarea {
  width: 100%; padding: 0.78rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #46413A; color: #FBFAF7;
  font-family: var(--sans); font-size: 1rem; line-height: 1.5; resize: vertical;
  border-radius: 10px;
  transition: border-color 0.18s linear, background-color 0.18s linear;
}
.field input::placeholder, .field textarea::placeholder { color: #7C756B; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: #C98F72; background: rgba(255, 255, 255, 0.08);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #D2694A; }

/* Кнопка на тёмном фоне — мягче тень, чтобы не «вырезалась» из секции */
.form .btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.20), 0 6px 22px rgba(168, 66, 29, 0.30);
}
.form .btn-primary:hover {
  background: #BB4A22;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.24), 0 10px 32px rgba(168, 66, 29, 0.38);
}

.form-status { margin: 0; font-size: 0.87rem; line-height: 1.5; min-height: 1.3rem; }
.form-status.is-ok { color: #9DC9A9; }
.form-status.is-err { color: #E9A184; }

.form-privacy { margin: 0; font-size: 0.79rem; line-height: 1.5; color: #8E877D; }

.contact-side { display: grid; gap: 1.15rem; }

.cbox { border: 1px solid #423D36; padding: 1.3rem 1.2rem; background: rgba(255, 255, 255, 0.025); }
.cbox h3 {
  font-size: 0.72rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: #A8A199; font-weight: 600; margin: 0 0 0.95rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid #3D3831;
}
.cbox p { margin: 0 0 0.55rem; font-size: 0.99rem; }
.cbox p:last-child { margin-bottom: 0; }
.cbox .muted { color: #8E877D; font-size: 0.86rem; }
.cbox ul { margin: 0; padding-left: 1.05rem; }
.cbox li { margin-bottom: 0.4rem; font-size: 0.93rem; color: #B4AEA4; }
.cbox li:last-child { margin-bottom: 0; }

/* ---------------- FOOTER ---------------- */

.foot { background: var(--ink); color: #8E877D; border-top: 1px solid #3D3831; padding: 1.7rem 0; font-size: 0.85rem; }
.foot-in { display: grid; gap: 0.4rem; }
.foot p { margin: 0; }
.foot-muted { font-size: 0.78rem; color: #9C948A; }

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 900px) {
  .about, .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-stats dd { max-width: none; }
  .aud-list li, .svc { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 3.9rem 0 auto;
    background: var(--surface); border-bottom: 1px solid var(--rule-firm);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gut) 1.25rem;
    max-height: calc(100dvh - 3.9rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav[hidden] { display: none; }

  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
  .nav a::after { display: none; }
  .nav-cta { margin-top: 0.75rem; text-align: center; border-bottom: 0 !important; }

  .nav-toggle {
    display: grid; place-items: center;
    width: 2.6rem; height: 2.6rem; flex: none;
    background: transparent; border: 1px solid var(--rule-firm);
    cursor: pointer; padding: 0;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 17px; height: 1.5px; background: var(--ink);
    transition: transform 0.3s var(--spring), opacity 0.2s linear;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -5.5px; }
  .nav-toggle-bars::after  { top: 5.5px; }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-5.5px) rotate(-45deg); }

  body { font-size: 16.5px; }
  .steps li { grid-template-columns: 2.2rem 1fr; }
}

/* ---------------- REDUCED MOTION ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .nav a::after { transition: none; }
}

/* ---------------- PRINT ---------------- */

@media print {
  .topbar, .band-contact, .foot, .skip, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .band { padding: 1rem 0; }
}
