/* Щит статусу — редакційний преміум */
:root {
  --paper: #f4ede2;
  --paper-2: #ebe1d2;
  --ink: #231a14;
  --ink-soft: rgba(35, 26, 20, 0.64);
  --forest: #3a2a1f;
  --forest-mid: #4a3528;
  --accent: #9a4f33;
  --accent-hot: #bf5c3a;
  --line: rgba(35, 26, 20, 0.14);
  --ink-nav: rgba(35, 26, 20, 0.82);
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --head-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scrollbar-gutter: stable;
}

html.lenis,
html.lenis body {
  height: auto;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.9vw, 19px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

body.is-loading {
  overflow: hidden;
}

/* Prevent content flash before preloader animation starts */
body:not(.is-ready) .head,
body:not(.is-ready) main,
body:not(.is-ready) .foot {
  visibility: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10020;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.06);
}

.scroll-progress__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot), var(--forest-mid));
  box-shadow: 0 0 16px rgba(191, 92, 58, 0.45);
}

.fx-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.fx-aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(58px);
  opacity: 0.3;
  mix-blend-mode: multiply;
}

.fx-aurora__blob--a {
  width: 34vw;
  height: 34vw;
  min-width: 280px;
  min-height: 280px;
  left: -8vw;
  top: 8vh;
  background: rgba(191, 92, 58, 0.34);
}

.fx-aurora__blob--b {
  width: 30vw;
  height: 30vw;
  min-width: 250px;
  min-height: 250px;
  right: -10vw;
  top: 18vh;
  background: rgba(74, 53, 40, 0.32);
}

.fx-aurora__blob--c {
  width: 26vw;
  height: 26vw;
  min-width: 220px;
  min-height: 220px;
  right: 15vw;
  bottom: -10vh;
  background: rgba(154, 79, 51, 0.28);
}

.fx-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(35, 26, 20, 0.12) 100%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hot);
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}

.preloader.is-done {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.preloader__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(100%, 480px);
  padding: 32px 28px;
  box-sizing: border-box;
}

.preloader__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 16px;
  text-align: center;
  max-width: 100%;
  /* компенсація letter-spacing: без цього рядок виглядає зміщеним ліворуч */
  padding-left: 0.28em;
  padding-right: 0.28em;
}

.preloader__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-variation-settings: "SOFT" 50, "WONK" 0.8;
  margin: 0 0 22px;
  line-height: 1.08;
  color: var(--ink);
  text-align: center;
  width: 100%;
  max-width: 100%;
  text-wrap: balance;
}

.preloader__title .char {
  display: inline-block;
  vertical-align: baseline;
  text-align: center;
}

.preloader__rule {
  height: 2px;
  width: 100%;
  max-width: 11.5em;
  margin: 0 auto;
  background: var(--line);
  border-radius: 1px;
  overflow: hidden;
  flex-shrink: 0;
}

.preloader__rule-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--forest);
}

/* Cursor */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  mix-blend-mode: difference;
  will-change: transform;
}

body:hover .cursor-dot {
  opacity: 1;
}

@media (pointer: coarse) {
  .cursor-dot {
    display: none;
  }
}

/* Header */
.head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--head-h);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s;
}

.head.is-scrolled {
  background: rgba(244, 237, 226, 0.72);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border-bottom-color: var(--line);
}

.head__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.head__logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.head__logo:hover {
  color: var(--accent);
}

.head__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}

.head__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: clamp(0.98rem, 0.35vw + 0.9rem, 1.06rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink-nav);
  padding: 8px 12px;
  border-radius: 999px;
  min-height: 36px;
  white-space: nowrap;
}

.head__nav a:hover {
  background: rgba(20, 18, 15, 0.06);
  color: var(--ink);
}

.head__nav a.head__cta {
  margin-left: 8px;
  border: 1px solid var(--line);
}

.head__nav a.head__cta:hover {
  border-color: rgba(35, 26, 20, 0.22);
}

.head__burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
  position: relative;
}

.head__burger::before,
.head__burger::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.head__burger::before {
  top: 16px;
}

.head__burger::after {
  top: 26px;
}

.head__burger[aria-expanded="true"]::before {
  top: 21px;
  transform: rotate(45deg);
}

.head__burger[aria-expanded="true"]::after {
  top: 21px;
  transform: rotate(-45deg);
}

.head__drawer {
  position: fixed;
  top: var(--head-h);
  left: 16px;
  right: 16px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  box-shadow: 0 24px 60px rgba(20, 18, 15, 0.08);
}

.head__drawer[hidden] {
  display: none !important;
}

.head__drawer a {
  display: inline-flex;
  align-items: center;
  padding: 14px 16px;
  line-height: 1.15;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: 10px;
  white-space: nowrap;
}

.head__drawer a:hover {
  background: rgba(20, 18, 15, 0.05);
}

@media (max-width: 1180px) {
  .head__nav a {
    padding: 8px 10px;
    font-size: 0.94rem;
  }
}

@media (max-width: 820px) {
  .head__nav {
    display: none;
  }

  .head__burger {
    display: block;
  }
}

/* Зв’язок: вищий хедер */
body.page-contact {
  --head-h: 80px;
}

@media (max-width: 820px) {
  body.page-contact {
    --head-h: 72px;
  }

  body.page-contact .head__burger {
    width: 48px;
    height: 48px;
  }

  body.page-contact .head__burger::before {
    top: 17px;
    left: 13px;
    right: 13px;
  }

  body.page-contact .head__burger::after {
    top: 28px;
    left: 13px;
    right: 13px;
  }

  body.page-contact .head__burger[aria-expanded="true"]::before,
  body.page-contact .head__burger[aria-expanded="true"]::after {
    top: 23px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.3s, filter 0.3s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--solid {
  background: var(--forest);
  color: var(--paper);
  box-shadow: 0 4px 24px rgba(20, 41, 32, 0.25);
}

.btn--solid:hover {
  background: var(--forest-mid);
  color: var(--paper);
  box-shadow: 0 14px 40px rgba(35, 26, 20, 0.28);
  filter: brightness(1.06);
}

.btn--line {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--line:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--head-h) + 48px) 24px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero__copy {
  max-width: 640px;
}

.hero__overline {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}

.hero__h1 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.02;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}

.hero__h1-line {
  display: block;
  overflow: hidden;
}

.hero__h1-line--serif {
  font-style: italic;
  font-weight: 600;
  color: var(--forest-mid);
}

.hero__h1-line .char {
  display: inline-block;
  transform-origin: 50% 100%;
}

.hero__deck {
  margin: 0 0 32px;
  color: var(--ink-soft);
  max-width: 46ch;
  font-size: 1.05rem;
}

.word {
  display: inline-block;
  will-change: transform, opacity;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__panel {
  background: var(--forest);
  color: var(--paper);
  border-radius: 20px;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 50px 120px rgba(35, 26, 20, 0.35);
}

.hero__panel-inner {
  position: absolute;
  inset: 0;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__mono {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 4.5rem;
  letter-spacing: -0.04em;
  opacity: 0.12;
  line-height: 1;
}

.hero__stack {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 220px;
}

.hero__rect {
  position: absolute;
  border-radius: 12px;
  border: 1px solid rgba(242, 239, 232, 0.25);
}

.hero__rect--a {
  inset: 0;
  background: rgba(242, 239, 232, 0.06);
  transform: rotate(-6deg);
}

.hero__rect--b {
  inset: 12% 8%;
  background: rgba(194, 74, 56, 0.15);
  transform: rotate(4deg);
}

.hero__rect--c {
  inset: 28% 18%;
  background: rgba(242, 239, 232, 0.12);
  transform: rotate(-2deg);
}

.hero__panel-cap {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
  margin: 0;
  max-width: 28ch;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    min-height: 320px;
    order: -1;
  }

  .hero__stack {
    right: 16px;
  }
}

/* Stripe marquee */
.stripe {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
  padding: 18px 0;
  overflow: hidden;
}

.stripe__track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: stripe-move 32s linear infinite;
}

.stripe__track span {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: rgba(20, 18, 15, 0.18);
  white-space: nowrap;
}

@keyframes stripe-move {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Work */
.work {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 24px 80px;
}

.work__head {
  margin-bottom: 48px;
  max-width: 720px;
}

.work__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0 0 16px;
  line-height: 1.08;
  overflow: hidden;
}

.work__title .char {
  display: inline-block;
}

.work__intro {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 50ch;
}

.work__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.work-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), padding-left 0.35s var(--ease), transform 0.35s var(--ease);
}

.work-item:hover {
  background: rgba(20, 41, 32, 0.03);
  padding-left: 12px;
  transform: translateY(-2px);
}

.work-item__ix {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.work-item__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.work-item__text {
  margin: 0;
  color: var(--ink-soft);
  max-width: 52ch;
}

.work-item__tag {
  align-self: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .work-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .work-item__tag {
    justify-self: start;
  }
}

/* Timeline */
.timeline-sec {
  background: var(--forest);
  color: var(--paper);
  padding: 100px 24px 120px;
}

.timeline-sec--light {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.timeline-sec--light .timeline__rail {
  background: rgba(35, 26, 20, 0.14);
}

.timeline-sec--light .timeline__rail-fill {
  background: var(--accent);
  opacity: 0.55;
}

.timeline-sec--light .timeline__n {
  border-color: rgba(35, 26, 20, 0.28);
  background: var(--paper);
  color: var(--ink);
}

.timeline-sec--light .timeline__step p {
  color: var(--ink-soft);
}

.timeline-sec__head {
  max-width: 1280px;
  margin: 0 auto 56px;
}

.timeline-sec__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0;
  max-width: 16ch;
  overflow: hidden;
}

.timeline-sec__title .char {
  display: inline-block;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 48px;
}

.timeline__rail {
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(242, 239, 232, 0.15);
  border-radius: 1px;
}

.timeline__rail-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: top center;
  -webkit-transform-origin: top center;
  transform: scaleY(0);
  background: var(--paper);
  border-radius: 1px;
  opacity: 0.5;
}

.timeline__step {
  position: relative;
  margin-bottom: 56px;
  padding-left: 8px;
}

.timeline__step:last-child {
  margin-bottom: 0;
}

.timeline__n {
  position: absolute;
  left: -38px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(242, 239, 232, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--forest);
}

.timeline__step h3 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 12px;
  overflow: hidden;
}

.timeline__step h3 .char {
  display: inline-block;
}

.timeline__step p {
  margin: 0;
  color: rgba(242, 239, 232, 0.72);
  max-width: 48ch;
}

/* Metrics */
.metrics {
  padding: 100px 24px;
  border-bottom: 1px solid var(--line);
}

.metrics__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.metric {
  text-align: left;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.metric:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(20, 18, 15, 0.06);
}

.metric__val {
  display: block;
  margin-bottom: 12px;
}

.metric__num {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--forest);
}

.metric__unit {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: 4px;
}

.metric__cap {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  .metrics__grid {
    grid-template-columns: 1fr;
  }
}

/* Library / decisions */
.library,
.blog,
.faq,
.resources {
  max-width: 1280px;
  margin: 0 auto;
  padding: 90px 24px 30px;
}

.library__head,
.blog__head,
.faq__head,
.resources__head {
  margin-bottom: 28px;
}

.library__title,
.blog__title,
.faq__title,
.resources__title,
.contact__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 10px;
  line-height: 1.08;
  overflow: hidden;
}

.contact__title {
  margin: 0 0 20px;
}

.library__title .char,
.blog__title .char,
.faq__title .char,
.resources__title .char,
.contact__title .char {
  display: inline-block;
}

.library__intro {
  margin: 0;
  color: var(--ink-soft);
  max-width: 62ch;
}

.library__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Contact (new) */
.contact-new__hero {
  padding: calc(var(--head-h) + 44px) 24px 56px;
}

.contact-new__hero-inner,
.contact-new__map-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.contact-new__head {
  max-width: 760px;
  margin-bottom: 34px;
}

.contact-new__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: start;
}

.contact-new__panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.35);
}

.contact-new__panel-title {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem);
  line-height: 1.2;
}

.contact-new__list {
  margin-bottom: 22px;
}

.contact-new__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-new__chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--paper);
}

.contact-new__form {
  margin: 0;
}

.contact-new__map {
  padding: 0 24px 120px;
}

.contact-new__map-inner {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.contact-new__addr {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.55;
}

.doc-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 22px 20px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.doc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(35, 26, 20, 0.12);
}

.doc-card__meta {
  margin: 0 0 8px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.doc-card__title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.2;
}

.doc-card__text {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.doc-card__link {
  font-weight: 700;
}

/* Blog */
.blog__list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

.blog-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.blog-item:hover {
  transform: translateX(8px);
  background: rgba(154, 79, 51, 0.04);
}

.blog-item__date {
  margin: 0 0 8px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.blog-item__title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.blog-item__text {
  margin: 0;
  color: var(--ink-soft);
  max-width: 64ch;
}

/* FAQ */
.faq__list {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  transition: background 0.25s var(--ease);
}

.faq__item:hover {
  background: rgba(154, 79, 51, 0.04);
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item p {
  margin: 10px 0 2px;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* Resources */
.resources {
  padding-bottom: 80px;
}

.resources__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.res-chip {
  display: inline-flex;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper-2);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s;
}

.res-chip:hover {
  background: var(--paper);
  transform: translateY(-2px) scale(1.02);
}

@media (max-width: 980px) {
  .library__grid {
    grid-template-columns: 1fr;
  }

  .contact-new__grid,
  .contact-new__map-inner {
    grid-template-columns: 1fr;
  }
}

.contact-page__split {
  padding: calc(var(--head-h) + 40px) 24px 72px;
  border-top: none;
}

.contact-page__split-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 7vw, 88px);
  align-items: start;
}

/* Зв’язок: заголовок секції розміром як на інших сторінках */
body.page-contact .library__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0 0 16px;
}

.contact-page__text {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 52ch;
}

.contact-page__list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.contact-page__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-page__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

.contact-page__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-page__metric {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.35);
}

.contact-page__metric strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.contact-page__metric span {
  display: block;
  margin-top: 4px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.contact-page__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(35, 26, 20, 0.07);
}

.contact-page__note {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--accent-hot);
  min-height: 1.4em;
}

.contact-page__map-section {
  padding: 0 24px 120px;
}

.contact-page__map-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.contact-page__addr {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.55;
}

.contact-page__map-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(154, 79, 51, 0.35);
  padding-bottom: 2px;
}

.contact-page__map-link:hover {
  color: var(--accent-hot);
}

.contact-page__map-frame {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  box-shadow: 0 16px 44px rgba(35, 26, 20, 0.08);
}

.contact-page__map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .contact-page__split {
    padding-top: calc(var(--head-h) + 28px);
  }

  .contact-page__split-inner,
  .contact-page__map-inner {
    grid-template-columns: 1fr;
  }

  .contact-page__form {
    grid-template-columns: 1fr;
  }

  .contact-page__metrics {
    grid-template-columns: 1fr;
  }
}

/* Заявка внизу сторінок FAQ / блог / рішення */
.contact {
  padding: 48px 24px 100px;
}

.contact__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: start;
}

.contact__lead {
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 62ch;
}

.contact__bullets {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact__bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, var(--paper-2), rgba(255, 255, 255, 0.32));
  box-shadow: 0 22px 56px rgba(35, 26, 20, 0.09);
}

.contact__note {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--accent-hot);
  min-height: 1.4em;
}

@media (max-width: 820px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__form {
    grid-template-columns: 1fr;
  }
}

.fld {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fld--full {
  grid-column: 1 / -1;
}

.fld__l {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.fld input,
.fld textarea {
  font: inherit;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fld input:focus,
.fld textarea:focus {
  outline: none;
  border-color: var(--forest-mid);
  box-shadow: 0 0 0 3px rgba(30, 61, 50, 0.12);
}

/* Footer */
.foot {
  padding: 28px 24px 48px;
}

.foot__row {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.foot__hint {
  opacity: 0.75;
}

.foot a {
  color: var(--ink-soft);
  font-weight: 600;
}

.foot a:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .stripe__track {
    animation: none;
  }

  .fx-aurora,
  .fx-vignette,
  .scroll-progress {
    display: none;
  }
}
