:root {

  --bg-black-primary: #2B2422;
  --bg-black-secondary_press: #0C0A09;
  --container-max-width: 1800px;
  /* Fixed `.site-header` — offset for page content (see `.news-main`). */
  --coffee-site-header-offset: 72px;
}


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

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

/* ─── Fixed Header ───────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: rgba(29, 24, 22, 1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 40px 8px;
}

/* ─── Logo ───────────────────────────────────────────────────── */

.logo {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  overflow: hidden;
  display: block;
  text-decoration: none;
}


/* ─── Nav ────────────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 0 0;
  min-width: 0;
  padding: 5px 0;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1.75px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-black-primary);
  box-shadow: inset 0 0 0 0.75px #0c0a09;
  font-size: 16px;
  line-height: 1;
  color: #d7d0d7;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.nav__link:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: #352c28;
}

/* ─── Language Switcher ──────────────────────────────────────── */

.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
  border: 1.75px solid rgba(255, 255, 255, 0.12);
  background: #2b2422;
  box-shadow: inset 0 0 0 0.75px #0c0a09;
  font-family: inherit;
  font-weight: 500;
  line-height: 1;
  color: #d7d0d7;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.lang-switcher:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: #352c28;
}

.lang-switcher__code {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ─── Burger Button ──────────────────────────────────────────── */

.burger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #2b2422;
  border: 1.75px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: inset 0 0 0 0.75px #0c0a09;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.burger-btn:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: #352c28;
}

/* ─── Header Actions ─────────────────────────────────────────── */

.header-actions {
  display: flex;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.88;
}

/* "Почати навчання" — orange CTA */
.btn--cta {
  position: relative;
  background: #ff8904;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 0.75px rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.84);
}

/* "Записатися на зустріч" — white secondary */
.btn--secondary {
  position: relative;
  background: #ffffff;
  border: 1px solid #e7e4e7;
  box-shadow: inset 0 -2px 0 0 rgba(0, 0, 0, 0.04);
  color: #594c5b;
}

.btn--secondary:hover {
  opacity: 0.88;
}

/* ─── Hero Section ───────────────────────────────────────────── */

/* ─── Hero SVGs ───────────────────────────────────────────────*/
.hero__left-svg {
display: none;
}

.hero__right-svg {
display: none;
}

/* ─── Hero SVGs ───────────────────────────────────────────────*/

.hero__top-section {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  background: #1d1816;
  /* tall enough for the sticky scroll effect + cup shape */
  min-height: 900px;
  width: 100%;
  margin: 0 auto;
  max-width: var(--container-max-width);
}

/* @media (min-width: 1440px) { */

.hero__steam {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  min-height: 900px;
  pointer-events: none;
  z-index: 6;
}

.hero__steam-svg {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  overflow: visible;
  transform-origin: center bottom;
}

.hero__steam-svg--1 {
  animation: steamOne 3s ease-in-out infinite;
}

.hero__steam-svg--2 {
  animation: steamTwo 3s ease-in-out infinite;
}

@keyframes steamOne {
  0%, 100% {
    opacity: 0.8;
    transform: translateY(0) scaleX(1.08) scaleY(1);
  }

  50% {
    opacity: 0.12;
    transform: translateY(-10px) scaleX(0.92) scaleY(1.04);
  }
}

@keyframes steamTwo {
  0%, 100% {
    opacity: 0.12;
    transform: translateY(8px) scaleX(0.92) scaleY(0.98);
  }

  50% {
    opacity: 0.8;
    transform: translateY(-4px) scaleX(1.08) scaleY(1.03);
  }
}

/* Content is sticky so it stays visible while cup shape scrolls in */
.hero__content {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  /* gap: 60px; */
  padding: 112px 40px 0px;
  /* padding: 112px 40px 20px; */
  max-width: 1440px;
  margin: 0 auto;
}

/* ─── Intro row ──────────────────────────────────────────────── */

.hero__intro {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  position: relative;
}

/* Left column */
.hero__text-col {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-self: stretch;
}

.hero__text-block {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 664px;
  width: 100%;
}

.hero__subtitle {
  font-size: 24px;
  line-height: 28px;
  color: #ff6900;
}

.hero__heading-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero__heading {
  font-size: 60px;
  line-height: 60px;
  font-weight: 400;
  color: #fafafa;
}

.hero__lead {
  font-size: 18px;
  line-height: 28px;
  color: #d7d0d7;
}

.hero__actions {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  padding-bottom: 40px;
}

/* Right column — hero photo */
.hero__image-col {
  flex: 1 0 0;
  min-width: 0;
  height: 402px;
  position: relative;
}

.hero__photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 700px;
  height: 892px;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

/* ─── Hero Stats ─────────────────────────────────────────────── */

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 31px;
  align-items: flex-start;
  align-content: flex-start;
  position: relative;
  width: 100%;
}

.stat-card {
  flex: 1 0 240px;
  height: 136px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(43, 36, 34, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}

.stat-card__value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  white-space: nowrap;
}

.stat-card__number {
  font-size: 30px;
  line-height: 36px;
  color: #ff6900;
}

.stat-card__unit {
  font-size: 20px;
  line-height: 28px;
  color: #fafafa;
}

.stat-card__label {
  font-size: 16px;
  line-height: 24px;
  color: #d7d0d7;
  text-align: center;
  flex: 1 0 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ═══════════════════════════════════════════════════════════════
   MIDDLE CONTAINER
═══════════════════════════════════════════════════════════════ */

.middle-container {
  position: relative;
  max-width: var(--container-max-width);
  top: 900px;
  z-index: 3;
  background: #FAFAFA;
  display: flex;
  flex-direction: column;
  gap: 60px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 60px;
  /* compensate for top: 900px so the footer follows visually */
  margin-bottom: 900px;
}

.middle-container::before {
  content: "";
  position: absolute;
  top: clamp(-350px, -21vw, -150px);
  left: 0;
  width: 100%;
  height: 1500px;
  background: url('../images/cup-bg.png') no-repeat top center / cover;
  pointer-events: none;
  /* Below all sections: absolute pseudo was painting above in-flow headings */
  z-index: 0;
}



/* Direct blocks must stack above decorative ::before */
.middle-container > * {
  position: relative;
  z-index: 1;
}


/* ─── Shared section layout ──────────────────────────────────── */

.section {
  width: 100%;
}

.section__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background:
    linear-gradient(90deg, rgba(255, 184, 106, 0.3) 0%, rgba(255, 184, 106, 0.3) 100%),
    #ffffff;
  font-size: 18px;
  line-height: 28px;
  color: #ff6900;
  white-space: nowrap;
}

.section-title {
  font-size: 36px;
  line-height: 40px;
  font-weight: 400;
  color: #1d161e;
  text-align: center;
  width: 100%;
}

/* ─── Shared card base ───────────────────────────────────────── */

.card-base {
  background: #ffffff;
  border: 1px solid #e7e4e7;
  border-radius: 24px;
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

/* ─── 1. Capital Tools Section ───────────────────────────────── */

.capital-tools {
  padding-top: 60px;
}

.capital-card {
  display: flex;
  gap: 20px;
  height: 490px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e7e4e7;
  border-radius: 24px;
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

/* Sidebar */
.capital-card__sidebar {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding-right: 20px;
  /* border-right: 1px solid #f3f1f3; */
  overflow: hidden;
}

.sidebar-item {
  background: #ffffff;
  border: 1px solid #e7e4e7;
  border-radius: 10px;
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
  width: 100%;
  overflow: hidden;
}

.sidebar-item__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 10px;
  border-bottom: 1px solid #f3f1f3;
}

.sidebar-item__active-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 104px;
  height: 42px;
  background: rgba(255, 184, 106, 0.3);
  pointer-events: none;
}

/* Акордеон інструментів: статичний плашок ховаємо — прогрес анімується скриптом */
.capital-tools-widget .capital-tools-accordion__item .sidebar-item__active-bg {
  display: none;
}

.capital-tools-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.capital-tools-widget .capital-tools-tab__trigger.sidebar-item__header {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  border: none;
  /* Як у .sidebar-item__header: рамка під заголовком (border:none знімав і цю лінію). */
  border-bottom: 1px solid #f3f1f3;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.capital-tools-widget .capital-tools-accordion__item:not(.is-active) .coffee-capital-header-progress {
  visibility: hidden;
}

.capital-tools-widget .capital-tools-accordion__item .sidebar-item__label {
  color: #594c5b;
}

.capital-tools-widget .capital-tools-accordion__item.is-active .sidebar-item__label {
  color: #9f2d00;
}

.capital-tools-widget .capital-tools-accordion__item .sidebar-item__icon {
  color: #594c5b;
}

.capital-tools-widget .capital-tools-accordion__item.is-active .sidebar-item__icon {
  color: #9f2d00;
}

@media (min-width: 1200px) {
  .capital-tools-widget .capital-tools-accordion__item:not(.is-active) .sidebar-item__header {
    border-bottom: none;
  }
}

@keyframes coffee-capital-header-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.coffee-capital-header-progress {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.coffee-capital-header-progress__fill {
  display: block;
  height: 100%;
  width: 100%;
  background: rgba(255, 184, 106, 0.3);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.coffee-capital-header-progress__fill.is-animating {
  animation-name: coffee-capital-header-progress;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@media (prefers-reduced-motion: reduce) {
  .coffee-capital-header-progress__fill.is-animating {
    animation: none;
    transform: scaleX(0);
  }
}

.sidebar-item__icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-item__icon img,
.sidebar-nav-btn__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-item__label {
  position: relative;
  z-index: 1;
  font-size: 18px;
  line-height: 20px;
  color: #9f2d00;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-item__desc {
  padding: 12px 18px;
  font-size: 16px;
  line-height: 24px;
  color: #594c5b;
}

.capital-tools-widget .sidebar-item__desc {
  white-space: pre-line;
}

/* Обгортка: десктоп — колонка зліва від фото; ≤1199px — рядок ‹ | текст | › */
.capital-tools-widget__stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 320px;
  flex-shrink: 0;
  min-width: 0;
  align-self: stretch;
  justify-content: center;
  border-right: 1px solid #f3f1f3;
}

.capital-tools-widget__stack .capital-card__sidebar {
  align-items: stretch;
}

.sidebar-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 18px;
  line-height: 20px;
  color: #594c5b;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.sidebar-nav-btn:hover {
  background: rgba(95, 76, 91, 0.1);
}

.sidebar-nav-btn__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  overflow: hidden;
}

/* Image area — radius on wrapper so object-fit doesn’t break corner clipping */
.capital-card__image {
  flex: 1 0 0;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
}

.capital-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Стрілки каруселі: сховані на десктопі; ≤1199px — зліва/справа від тексту */
.coffee-capital-tools__pager-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #e7e4e7;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.coffee-capital-tools__pager-btn:hover {
  background: #f3f1f3;
}

.coffee-capital-tools__pager-btn:focus-visible {
  outline: 2px solid #9f2d00;
  outline-offset: 2px;
}

@media (max-width: 1199px) {
  /* Карусель: лише активний пункт акордеону */
  .capital-tools-widget .capital-tools-accordion__item:not(.is-active) {
    display: none;
  }

  .capital-tools-widget .coffee-capital-tools__pager-btn {
    display: flex;
    align-self: center;
  }

  .capital-tools-widget__stack {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }

  .capital-tools-widget__stack .capital-card__sidebar {
    flex: 1 1 0;
    min-width: 0;
  }

  .capital-card.capital-tools-widget {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  /*
   * У колонці з height: auto flex:1 + basis 0 дає нульову висоту обгортки —
   * фото не видно. Фіксована висота / без flex-grow для цього блоку.
   */
  .capital-tools-widget .capital-card__image {
    flex: 0 0 auto;
    width: 100%;
    min-height: 240px;
    height: 260px;
    order: -1;
  }

  .capital-tools-widget .capital-tools-widget__stack {
    order: 0;
  }

  .capital-tools-widget .capital-card__image img {
    height: 100%;
    min-height: 240px;
    object-fit: cover;
  }
}

/*
 * Figma mobile «Capital Content» 8163:3976 — спочатку картка тексту,
 * під нею ряд зі стрілками (space-between по ширині блоку).
 */
@media (max-width: 640px) {
  .capital-tools-widget__stack {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px 8px;
    align-items: center;
  }

  .capital-tools-widget__stack .capital-card__sidebar {
    grid-column: 1 / -1;
    grid-row: 1;
    flex: unset;
  }

  .capital-tools-widget .coffee-capital-tools__pager-btn--prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    align-self: center;
  }

  .capital-tools-widget .coffee-capital-tools__pager-btn--next {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    align-self: center;
  }
}

/* ─── 2. Finance Made Simple Section ─────────────────────────── */

.finance-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  isolation: isolate;
}

.finance-left {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Finance cards block */
.finance-cards-block {
  background: #ffffff;
  border: 1px solid #e7e4e7;
  border-radius: 24px;
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  width: 100%;
}

.finance-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  flex-shrink: 0;
  border-bottom: 1px solid #f3f1f3;
}

.finance-row:last-child {
  border-bottom: none;
}

.finance-row__image {
  flex: 0 0 50%;
  min-width: 0;
  height: 376px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.finance-row__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.finance-row__text {
  flex: 0 0 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: stretch;
  justify-content: center;
  padding: 60px 40px;
  position: relative;
  z-index: 2;
}

.finance-bracket {
  position: absolute;
  transform: translateY(-50%);
  width: 20px;
  height: 62px;
  flex-shrink: 0;
}

.finance-bracket img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.finance-bracket--left  { left: -18px; }
.finance-bracket--right { right: -18px; }

/* Mobile-only horizontal connector (image → text, stacked layout) */
.finance-bracket-mobile {
  display: none;
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 20px;
  z-index: 3;
}

.finance-bracket-mobile svg {
  display: block;
  width: 100%;
  height: 100%;
}


.finance-row__heading {
  font-size: 30px;
  line-height: 36px;
  font-weight: 400;
  color: #1d161e;
}

.text-orange { color: #ff6900; }

.finance-row__desc {
  font-size: 18px;
  line-height: 28px;
  color: #594c5b;
}

.finance-row__desc strong {
  font-weight: 700;
}

/* About Us */
.about-us {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px;
}

.about-us__brand {
  font-size: 30px;
  line-height: 36px;
  color: #ff6900;
}

.about-us__heading-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-us__line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px;
}

.about-us__text {
  font-size: 36px;
  line-height: 48px;
  color: #1d161e;
  white-space: nowrap;
}

.highlight {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 36px;
  line-height: 48px;
  color: #1d161e;
  overflow: hidden;
  white-space: nowrap;
}

.highlight__text {
  display: inline-flex;
  align-items: center;
  height: 100%;
  transition: transform 0.35s ease;
}

.highlight__image {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.highlight:hover .highlight__text {
  transform: translateY(-100%);
}

.highlight:hover .highlight__image {
  transform: translateY(0);
}

.highlight--orange {
  background: rgba(255, 184, 106, 0.3);
}

.highlight--orange .highlight__image {
  background-image: url('../images/text-capital-hover.png');
}

.highlight--green {
  background: rgba(123, 241, 168, 0.3);
}

.highlight--green .highlight__image {
  background-image: url('../images/text-markets-hover.png');
}

.about-us__desc {
  font-size: 18px;
  line-height: 28px;
  color: #594c5b;
  width: 100%;
}

/* Right column stretches to match .finance-left height so the sticky cup has a tall scroll track */
.finance-right {
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

/* Sticky on inner wrapper (Figma "Additional Info" 8049:2660), not on the column */
.coffee-cup-sticky {
  position: sticky;
  top: 60px;
  padding-top: 200px;
  cursor: pointer;
}

.coffee-cup {
  position: relative;
  width: 380px;
  height: 380px;
}

/* ─── 3. Why Choose Us Section ───────────────────────────────── */

.trust-badges {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  isolation: isolate;
  width: 100%;
}

.trust-card {
  flex: 1 0 0;
  min-width: 0;
  min-height: 204px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px 20px;
  background: #ffffff;
  border: 1px solid #e7e4e7;
  border-radius: 24px;
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.35s ease;
}

.trust-card__decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.trust-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  flex: 1 0 0;
  min-height: 0;
}

.trust-card__title,
.trust-card__desc {
  position: relative;
  z-index: 2;
}

.trust-card__prop {
  position: absolute;
  display: block;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;

  transition:
    opacity 0.18s ease,
    transform 0.22s ease-in;
}

img.trust-card__prop {
  display: block;
  height: auto;
  max-width: none;
}

.trust-card:hover .trust-card__prop {
  opacity: 1;

  transition:
    opacity 0.15s ease,
    transform 0.4s cubic-bezier(.18, .89, .22, 1.55);
}
/* ============================= */
/* Card 0 — Прозорість */
/* картинки уже повернуты */
/* ============================= */

.trust-card--0 .trust-card__prop {
  transition:
    opacity 0.18s ease,
    transform 0.22s ease-in;
}

.trust-card--0:hover .trust-card__prop {
  opacity: 1;
  transition:
    opacity 0.15s ease,
    transform 0.38s cubic-bezier(.18, .89, .22, 1.45);
}

/* glass bottom-left */
.trust-card--0 .trust-card__prop--e1 {
  bottom: -15px;
  left: 0px;
  width: 64px;
  transform: translate3d(-45px, 30px, 0) scale(0.92);
}

/* hand bottom */
.trust-card--0 .trust-card__prop--e2 {
  bottom: -20px;
  left: 80px;
  width: 64px;
  transform: translate3d(0, 45px, 0) scale(0.92);
}

/* eye top */
.trust-card--0 .trust-card__prop--e3 {
  top: -20px;
  left: 80px;
  width: 75px;
  transform: translate3d(0, -45px, 0) scale(0.92);
}

/* glass left */
.trust-card--0 .trust-card__prop--e4 {
  top: 10px;
  left: -18px;
  width: 85px;
  transform: translate3d(-45px, 0, 0) scale(0.92);
}

/* eye right */
.trust-card--0 .trust-card__prop--e5 {
  top: 58px;
  right: -18px;
  width: 58px;
  transform: translate3d(45px, 0, 0) scale(0.92);
}

/* glass bottom-right */
.trust-card--0 .trust-card__prop--e6 {
  bottom: -12px;
  right: -6px;
  width: 64px;
  transform: translate3d(45px, 20px, 0) scale(0.92);
}

/* hand top-right */
.trust-card--0 .trust-card__prop--e7 {
  top: -8px;
  right: 48px;
  width: 58px;
  transform: translate3d(30px, -45px, 0) scale(0.92);
}

/* hover final positions */
.trust-card--0:hover .trust-card__prop--e1,
.trust-card--0:hover .trust-card__prop--e2,
.trust-card--0:hover .trust-card__prop--e3,
.trust-card--0:hover .trust-card__prop--e4,
.trust-card--0:hover .trust-card__prop--e5,
.trust-card--0:hover .trust-card__prop--e6,
.trust-card--0:hover .trust-card__prop--e7 {
  transform: translate3d(0, 0, 0) scale(1);
}

/* ============================= */
/* Card 1 — Світові технології */
/* ============================= */

.trust-card--1 .trust-card__prop--f1 {
  top: 12px;
  left: -30px;
  width: 155px;
  transform-origin: center;
  transform: translate(-110px, -55px) rotate(-50deg) scale(0.92);
}

.trust-card--1 .trust-card__prop--bayern {
  top: -2px;
  right: -24px;
  width: 104px;
  z-index: 1;
  opacity: 0;
  transform-origin: center;
  transform: translate(110px, -55px) rotate(0deg) scale(0.92);
}

.trust-card--1:hover .trust-card__prop--f1 {
  opacity: 1;
  animation: trust-f1-fly 0.3s linear forwards;
}

.trust-card--1:hover .trust-card__prop--bayern {
  opacity: 1;
  animation: trust-bayern-fly 0.3s linear forwards;
}

@keyframes trust-f1-fly {
  0% {
    opacity: 0;
    transform: translate3d(-110px, -55px, 0) rotate(-50deg) scale(0.92);
  }

  5% {
    opacity: 0.08;
    transform: translate3d(-106px, -53px, 0) rotate(-46deg) scale(0.922);
  }

  10% {
    opacity: 0.16;
    transform: translate3d(-101px, -51px, 0) rotate(-42deg) scale(0.925);
  }

  15% {
    opacity: 0.25;
    transform: translate3d(-96px, -48px, 0) rotate(-38deg) scale(0.93);
  }

  20% {
    opacity: 0.35;
    transform: translate3d(-90px, -45px, 0) rotate(-34deg) scale(0.935);
  }

  25% {
    opacity: 0.45;
    transform: translate3d(-84px, -42px, 0) rotate(-30deg) scale(0.94);
  }

  30% {
    opacity: 0.55;
    transform: translate3d(-78px, -39px, 0) rotate(-26deg) scale(0.945);
  }

  35% {
    opacity: 0.65;
    transform: translate3d(-70px, -35px, 0) rotate(-22deg) scale(0.95);
  }

  40% {
    opacity: 0.72;
    transform: translate3d(-62px, -31px, 0) rotate(-18deg) scale(0.957);
  }

  45% {
    opacity: 0.8;
    transform: translate3d(-54px, -27px, 0) rotate(-14deg) scale(0.965);
  }

  50% {
    opacity: 0.86;
    transform: translate3d(-45px, -22px, 0) rotate(-10deg) scale(0.973);
  }

  55% {
    opacity: 0.92;
    transform: translate3d(-36px, -17px, 0) rotate(-7deg) scale(0.982);
  }

  60% {
    opacity: 0.96;
    transform: translate3d(-27px, -12px, 0) rotate(-4deg) scale(0.99);
  }

  65% {
    opacity: 1;
    transform: translate3d(-18px, -8px, 0) rotate(-2deg) scale(0.996);
  }

  70% {
    transform: translate3d(-9px, -4px, 0) rotate(-0.8deg) scale(1);
  }

  /* приезд в базовую точку */
  75% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  /* плавный заезд в переезд */
  79% {
    transform: translate3d(5px, 2.3px, 0) rotate(4.5deg) scale(1.003);
  }

  82% {
    transform: translate3d(10px, 4.7px, 0) rotate(8.5deg) scale(1.008);
  }

  /* максимум переезда */
  84% {
    transform: translate3d(13px, 6px, 0) rotate(10.6deg) scale(1.012);
  }

  /* плавный возврат */
  87% {
    transform: translate3d(10px, 4.6px, 0) rotate(10.5deg) scale(1.01);
  }

  90% {
    transform: translate3d(7px, 3.2px, 0) rotate(10.38deg) scale(1.007);
  }

  93% {
    transform: translate3d(4px, 1.8px, 0) rotate(10.22deg) scale(1.004);
  }

  96% {
    transform: translate3d(1.8px, 0.8px, 0) rotate(10.08deg) scale(1.001);
  }

  98% {
    transform: translate3d(0.6px, 0.25px, 0) rotate(10.03deg) scale(1);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(10deg) scale(1);
  }
}

@keyframes trust-bayern-fly {
  0% {
    opacity: 0;
    transform: translate3d(110px, -55px, 0) rotate(0deg) scale(0.92);
  }

  5% {
    opacity: 0.08;
    transform: translate3d(106px, -53px, 0) rotate(-2deg) scale(0.922);
  }

  10% {
    opacity: 0.16;
    transform: translate3d(101px, -51px, 0) rotate(-4deg) scale(0.925);
  }

  15% {
    opacity: 0.25;
    transform: translate3d(96px, -48px, 0) rotate(-6deg) scale(0.93);
  }

  20% {
    opacity: 0.35;
    transform: translate3d(90px, -45px, 0) rotate(-8deg) scale(0.935);
  }

  25% {
    opacity: 0.45;
    transform: translate3d(84px, -42px, 0) rotate(-10deg) scale(0.94);
  }

  30% {
    opacity: 0.55;
    transform: translate3d(78px, -39px, 0) rotate(-12deg) scale(0.945);
  }

  35% {
    opacity: 0.65;
    transform: translate3d(70px, -35px, 0) rotate(-14deg) scale(0.95);
  }

  40% {
    opacity: 0.72;
    transform: translate3d(62px, -31px, 0) rotate(-16deg) scale(0.957);
  }

  45% {
    opacity: 0.8;
    transform: translate3d(54px, -27px, 0) rotate(-18deg) scale(0.965);
  }

  50% {
    opacity: 0.86;
    transform: translate3d(45px, -22px, 0) rotate(-20deg) scale(0.973);
  }

  55% {
    opacity: 0.92;
    transform: translate3d(36px, -17px, 0) rotate(-22deg) scale(0.982);
  }

  60% {
    opacity: 0.96;
    transform: translate3d(27px, -12px, 0) rotate(-24deg) scale(0.99);
  }

  65% {
    opacity: 1;
    transform: translate3d(18px, -8px, 0) rotate(-26deg) scale(0.996);
  }

  70% {
    transform: translate3d(9px, -4px, 0) rotate(-28deg) scale(1);
  }

  /* приезд в базовую точку */
  75% {
    transform: translate3d(0, 0, 0) rotate(-30deg) scale(1);
  }

  /* плавный заезд в переезд */
  79% {
    transform: translate3d(-5px, 2.3px, 0) rotate(-30.4deg) scale(1.003);
  }

  82% {
    transform: translate3d(-10px, 4.7px, 0) rotate(-30.7deg) scale(1.008);
  }

  /* максимум переезда */
  84% {
    transform: translate3d(-13px, 6px, 0) rotate(-30.9deg) scale(1.012);
  }

  /* плавный возврат */
  87% {
    transform: translate3d(-10px, 4.6px, 0) rotate(-30.75deg) scale(1.01);
  }

  90% {
    transform: translate3d(-7px, 3.2px, 0) rotate(-30.55deg) scale(1.007);
  }

  93% {
    transform: translate3d(-4px, 1.8px, 0) rotate(-30.35deg) scale(1.004);
  }

  96% {
    transform: translate3d(-1.8px, 0.8px, 0) rotate(-30.15deg) scale(1.001);
  }

  98% {
    transform: translate3d(-0.6px, 0.25px, 0) rotate(-30.05deg) scale(1);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(-30deg) scale(1);
  }
}

/* ============================= */
/* Card 2 — Ми поруч */
/* ============================= */

.trust-card--2 .trust-card__prop {
  transition:
    opacity 0.18s ease,
    transform 0.22s ease-in;
}

.trust-card--2:hover .trust-card__prop {
  opacity: 1;
  transition:
    opacity 0.15s ease,
    transform 0.36s cubic-bezier(.18, .89, .22, 1.45);
}

/* map */
.trust-card--2 .trust-card__prop--m1 {
  top: -18px;
  left: 82px;
  width: 70px;
  transform: translate3d(-38px, -44px, 0) scale(0.92);
}

/* marker */
.trust-card--2 .trust-card__prop--m2 {
  top: 22px;
  left: -8px;
  width: 80px;
  transform: translate3d(-46px, -8px, 0) scale(0.92);
}

/* coffee */
.trust-card--2 .trust-card__prop--m3 {
  top: 18px;
  right: 38px;
  width: 80px;
  transform: translate3d(30px, -42px, 0) scale(0.92);
}

/* baggage */
.trust-card--2 .trust-card__prop--m4 {
  bottom: 30px;
  right: -30px;
  width: 80px;
  transform: translate3d(52px, 34px, 0) scale(0.92);
}

/* hover final positions */
.trust-card--2:hover .trust-card__prop--m1 {
  transform: translate3d(0, 0, 0) scale(1);
}

.trust-card--2:hover .trust-card__prop--m2 {
  transform: translate3d(0, 0, 0) scale(1);
}

.trust-card--2:hover .trust-card__prop--m3 {
  transform: translate3d(0, 0, 0) scale(1);
}

.trust-card--2:hover .trust-card__prop--m4 {
  transform: translate3d(0, 0, 0) scale(1);
}

.trust-card__title {
  font-size: 30px;
  line-height: 36px;
  font-weight: 400;
  color: #ff6900;
  text-align: center;
  width: 100%;
  text-shadow:
  -1px -1px 0 #fff,  
   1px -1px 0 #fff,
  -1px  1px 0 #fff,  
   1px  1px 0 #fff;
}

.trust-card__desc {
  flex: 1 0 0;
  font-size: 18px;
  line-height: 28px;
  color: #1d161e;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.trust-card__sponsor {
  display: block;
  max-height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-top: -8px;
}

/* ─── 4. Start Your Journey Section ──────────────────────────── */

.journey-section {
  position: relative;
  background: #ffedd4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 60px 40px 300px;
  overflow: hidden;
  width: 100%;
  z-index: 2;
}

.journey-section__title {
  font-size: 36px;
  line-height: 40px;
  font-weight: 400;
  color: #9f2d00;
  text-align: center;
  width: 100%;
}

.consultation-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.consultation-card {
  background: #ffffff;
  border: 1px solid #e7e4e7;
  border-radius: 24px;
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 800px;
  width: 100%;
  overflow: hidden;
}

.consultation-card__subtitle {
  font-size: 20px;
  line-height: 28px;
  color: #ff8904;
  text-align: center;
  width: 100%;
}

.consultation-card__contacts {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 16px;
  line-height: 24px;
  color: #79697b;
  white-space: nowrap;
  flex-wrap: wrap;
  gap: 8px;
}

/* Form */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.form-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 0 0;
  min-width: 0;
}

.form-field--grow {
  flex: 1 0 0;
  min-width: 0;
  width: auto;
}

.form-label {
  font-size: 16px;
  line-height: 24px;
  color: #79697b;
  display: flex;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #fafafa;
  border: 1px solid #e7e4e7;
  border-radius: 10px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  width: 100%;
}

.form-input {
  flex: 1 0 0;
  min-width: 0;
  padding: 12px 2px 12px 10px;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 18px;
  line-height: 20px;
  color: #1d161e;
}

.form-input::placeholder {
  color: #a89ea9;
}

/* Phone prefix button */
.input-wrap--phone {
  gap: 0;
}

.phone-prefix {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #ffffff;
  border: none;
  border-right: 1px solid #e7e4e7;
  font-family: inherit;
  font-size: 18px;
  line-height: 20px;
  color: #594c5b;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: inset 0 -2px 0 0 rgba(0, 0, 0, 0.04);
  white-space: nowrap;
}

/* Submit buttons */
.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  cursor: pointer;
}


.visual {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 2315px;
  margin: 0 auto;
  z-index: 2;
  pointer-events: none;
}
.visual img, .visual source {
  display: block;
  width: 100%;
  height: auto;
}

.journey-section__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 3;
  pointer-events: none;
}

.consultation-wrap {
  position: relative;
  z-index: 4;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */

.site-footer {
  position: relative;
  background: #1d1816;
  width: 100%;
  z-index: 3;
  max-width: 100%;
  margin: 0 auto;
}

.footer-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 40px 60px;
}

/* ─── Footer inner row (logo + content) ──────────────────────── */

.footer-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}

/* ─── Footer Logo ────────────────────────────────────────────── */

.footer-logo-wrap {
  align-self: stretch;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-logo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 200px;
  max-height: 200px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  text-decoration: none;
  flex-shrink: 0;
}

.footer-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-logo__top,
.footer-logo__body {
  position: absolute;
  display: block;
  max-width: none;
}

/* steam / top  — inset: 52.03% 13.2% 7.42% 13.56% */
.footer-logo__top {
  top:    52.03%;
  right:  13.2%;
  bottom: 7.42%;
  left:   13.56%;
  width:  auto;
  height: auto;
}

/* cup body  — inset: 3.67% 17.09% 37.44% 14.71% */
.footer-logo__body {
  top:    3.67%;
  right:  17.09%;
  bottom: 37.44%;
  left:   14.71%;
  width:  auto;
  height: auto;
}

/* ─── Footer content (links) ─────────────────────────────────── */

.footer-content {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-links-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.footer-col {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col__title {
  font-size: 14px;
  line-height: 20px;
  color: #a89ea9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Footer tags (pill links) ───────────────────────────────── */

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  align-items: flex-start;
}

.footer-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.75px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #2b2422;
  box-shadow: inset 0 0 0 0.75px #0c0a09;
  font-size: 16px;
  line-height: 16px;
  color: #d7d0d7;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.footer-tag:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: #352c28;
}

/* ─── Social icon buttons ────────────────────────────────────── */

.footer-social {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1.75px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #2b2422;
  box-shadow: inset 0 0 0 0.75px #0c0a09;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.footer-icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: #352c28;
}

.footer-icon-btn img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* ─── Copyright bar ──────────────────────────────────────────── */

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  font-size: 20px;
  line-height: 28px;
  color: #a89ea9;
  white-space: nowrap;
}

.footer-copyright__lead {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 0 0;
  min-width: 0;
}

.footer-copyright__year {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-copyright__fortisweb {
  flex-shrink: 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-copyright__fortisweb:hover {
  color: #fff;
}

.footer-copyright__trademark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-shrink: 0;
}

.footer-copyright__sep {
  opacity: 0.5;
}

.footer-copyright__rights {
  flex: 1 0 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .header-inner {
    gap: 16px;
    padding: 14px 20px 8px;
  }

  .nav__link,
  .btn {
    font-size: 15px;
  }

  .hero__top-section {
    min-height: 1500px;
  }

  .hero__content {
    padding: 100px 20px 20px;
    gap: 40px;
  }

  /* .hero__steam {
    left: 80px;
    top: 90px;
    width: 780px;
    height: 620px;
    opacity: 0.7;
  } */

  .hero__heading {
    font-size: 48px;
    line-height: 50px;
  }

  .hero__intro {
    gap: 20px;
  }

  .hero__photo {
    width: 560px;
    height: 740px;
    left: auto;
    right: -30px;
  }

  .hero-stats {
    gap: 20px;
  }

  .cup-shape {
    top: 860px;
  }

  .capital-card {
    height: 440px;
  }

  .capital-card.capital-tools-widget {
    height: auto;
    min-height: 0;
  }

  .capital-card__sidebar {
    width: 300px;
    padding: 20px;
    border-right: none;
    border-bottom: 1px solid #f3f1f3;
  }

  .finance-layout {
    gap: 20px;
  }

  .finance-row__text {
    padding: 40px 24px;
  }

  .finance-row__image {
    height: 320px;
  }

  .about-us {
    padding: 32px 24px;
  }

  .about-us__text,
  .highlight {
    font-size: 30px;
    line-height: 40px;
    height: auto;
  }

  .coffee-cup-sticky {
    padding-top: 120px;
  }

  .coffee-cup {
    width: 300px;
    height: 300px;
  }

  .journey-decor__item--left img {
    width: 700px;
    height: auto;
  }

  .journey-decor__item--center img {
    width: 500px;
    height: auto;
  }

  .journey-decor__item--right img {
    width: 420px;
    height: auto;
  }
}

@media (max-width: 991px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .logo {
    width: 40px;
    height: 40px;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding: 2px 0 4px;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero__top-section {
    min-height: auto;
  }

  .hero__content {
    position: relative;
    top: auto;
    padding-top: 116px;
  }

  /* .hero__steam {
    left: 50%;
    transform: translateX(-50%);
    width: 680px;
    height: 480px;
    top: 120px;
  } */

  .hero__intro {
    flex-direction: column;
    gap: 24px;
  }

  .hero__text-block {
    max-width: 100%;
  }

  .hero__image-col {
    height: 360px;
  }

  .hero__photo {
    width: 100%;
    height: 100%;
    right: 0;
    left: 0;
    object-position: center top;
    border-radius: 14px;
  }

  .cup-shape {
    position: relative;
    top: auto;
    margin-top: 20px;
  }

  .section__inner {
    padding: 0 20px;
    gap: 28px;
  }

  .capital-card {
    flex-direction: column-reverse;
    height: auto;
  }

  /* Tools: фото зверху → текст → стрілки (як у макеті), без column-reverse */
  .capital-card.capital-tools-widget {
    flex-direction: column;
  }

  .capital-tools-widget .capital-card__image {
    order: -1;
    height: 260px;
  }

  .capital-tools-widget__stack {
    order: 0;
  }

  .capital-card__image {
    height: 260px;
  }

  .capital-card__sidebar {
    width: 100%;
    padding: 16px;
  }

  .finance-layout {
    flex-direction: column;
  }

  .finance-right {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .coffee-cup-sticky {
    position: static;
    padding-top: 0;
  }

  .coffee-cup {
    width: 260px;
    height: 260px;
  }

  .finance-row,
  .finance-row--reverse {
    flex-direction: column;
  }


  .finance-row__image {
    flex-basis: auto;
    width: 100%;
    height: 260px;
  }

  .finance-row__text {
    flex-basis: auto;
    width: 100%;
  }

  .finance-bracket {
    display: none;
  }

  .trust-badges {
    flex-direction: column;
    align-items: stretch;
  }

  .trust-card {
    min-height: auto;
  }

  .journey-section {
    padding: 48px 20px 140px;
  }

  .consultation-card {
    gap: 28px;
  }

  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .form-field,
  .form-field--grow {
    width: 100%;
  }

  .form-submit {
    flex-direction: column;
  }

  .form-submit .btn {
    width: 100%;
  }

  .journey-decor {
    height: 120px;
  }

  .journey-decor__item {
    opacity: 0.85;
  }

  .journey-decor__item--left {
    left: -430px;
    bottom: -260px;
  }

  .journey-decor__item--center {
    bottom: -390px;
  }

  .journey-decor__item--right {
    right: -280px;
    bottom: -300px;
  }

  .footer-body {
    padding: 20px 20px 40px;
  }

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

  .footer-logo-wrap {
    align-self: flex-start;
  }

  .footer-links-row {
    flex-direction: column;
  }

  .footer-copyright {
    flex-wrap: wrap;
    row-gap: 8px;
    font-size: 16px;
    line-height: 22px;
    white-space: normal;
  }

  .footer-copyright__trademark {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .footer-copyright__rights {
    text-align: left;
  }
}

/* ─── Tablet 640px–1199px (Figma Tablet 744px) ──────────── */
@media (min-width: 640px) and (max-width: 1199px) {

  /* Header */
  .header-inner {
    padding: 16px 20px 8px;
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;
  }

  /* Burger: показуємо, текстові лінки — ховаємо */
  .burger-btn {
    display: flex;
  }

  .nav__link {
    display: none;
  }

  /* Nav: тільки іконки (бургер + мова) у рядок */
  .nav {
    order: 0;
    flex: 1 0 0;
    width: auto;
    overflow: visible;
    padding: 5px 0;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
  }

  /* CTA-контейнер: grows to right edge */
  .header-actions {
    flex: 1 0 0;
    justify-content: flex-end;
    margin-left: 0;
    width: auto;
  }

  .header-actions .btn {
    flex: none;
    width: auto;
    padding: 10px 16px;
    font-size: 16px;
  }

  /* Hero: tablet — normal flow (fixed only on desktop) */
  .hero__top-section {
    position: relative;
    min-height: auto;
  }

  .hero__content {
    position: relative;
    top: auto;
    padding: 112px 20px 200px;
    gap: 60px;
  }

  /* Hero: restore action buttons as row */
  .hero__actions {
    flex-direction: row;
    gap: 16px;
    width: auto;
  }

  .hero__actions .btn {
    width: auto;
    font-size: 18px;
  }

  .hero__lead {
    font-size: 18px;
    line-height: 28px;
  }

  /* Hero: stacked layout — text above image */
  .hero__intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .hero__text-col {
    flex: none;
    width: 100%;
    gap: 40px;
  }

  .hero__text-block {
    max-width: 100%;
  }

  .hero__heading {
    font-size: 60px;
    line-height: 60px;
  }

  .hero__subtitle {
    font-size: 24px;
    line-height: 28px;
  }

  /* Full-width landscape image under text */
  .hero__image-col {
    flex: none;
    width: 100%;
    height: 402px;
    position: relative;
    overflow: visible;
  }

  /* Photo overflows container (~896px) so stats can overlay bottom portion */
  .hero__photo {
    position: absolute;
    top: 0;
    left: 0;
    bottom: auto;
    width: 100%;
    height: 896px;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px;
  }

  /* Stats: 2-per-row, rendered above overflowing photo */
  .hero-stats {
    gap: 31px;
    position: relative;
    z-index: 2;
  }

  .stat-card {
    flex: 1 0 240px;
    height: 136px;
    padding: 20px;
    border-radius: 24px;
  }

  .stat-card__number {
    font-size: 30px;
    line-height: 36px;
  }

  /* Middle container: reset fixed-hero offset for tablet */
  .middle-container {
    top: 0;
    margin-bottom: 0;
  }

  /* Section inner */
  .section__inner {
    padding: 0 20px;
    gap: 40px;
  }

  /* Capital tools: image on top, sidebar as horizontal bottom bar */
  .capital-card {
    flex-direction: column;
    height: 490px;
  }

  .capital-card__image {
    order: -1;
    flex: 1 0 0;
    height: auto;
    border-radius: 8px;
  }

  .capital-card__sidebar {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-shrink: 0;
    border-right: none;
    border-top: 1px solid #f3f1f3;
    border-bottom: none;
    padding: 20px 0 0;
    height: auto;
    overflow: visible;
  }

  .sidebar-item {
    flex: 1 0 0;
    min-width: 0;
  }

  .sidebar-nav-btn {
    flex: 0 0 auto;
    width: auto;
    padding: 12px;
    border-radius: 10px;
  }

  /*
   * Capital tools (ACF tabs): keep sidebar stacked — a horizontal row caused
   * overflow and OS scrollbar “arrow” controls on narrow tablet widths.
   */
  .capital-card.capital-tools-widget {
    height: auto;
    min-height: 0;
  }

  .capital-tools-widget .capital-card__sidebar {
    flex-direction: column;
    align-items: stretch;
    overflow-x: hidden;
    min-width: 0;
  }

  .capital-tools-widget .sidebar-item {
    flex: 0 1 auto;
    width: 100%;
    min-width: 0;
  }

  .capital-tools-widget .sidebar-nav-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Finance: single column, keep rows side-by-side (Figma) */
  .finance-layout {
    flex-direction: column;
    gap: 40px;
  }

  .finance-right {
    display: none;
  }

  /* Restore desktop side-by-side layout for finance rows on tablet */
  .finance-row,
  .finance-row--reverse {
    flex-direction: row;
  }

  .finance-row__image {
    flex: 0 0 50%;
    width: auto;
    height: 376px;
  }

  .finance-row__text {
    flex: 0 0 50%;
    width: auto;
    padding: 60px 40px;
  }

  .finance-bracket {
    display: block;
  }

  .about-us {
    padding: 32px 24px;
  }

  .about-us__text,
  .highlight {
    font-size: 30px;
    line-height: 40px;
    height: auto;
  }

  /* Trust badges: narrow tablet (≤720px) — single column */
  .trust-badges {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .trust-card {
    min-height: 204px;
  }

  /* Journey section */
  .journey-section {
    padding: 60px 20px 300px;
    gap: 40px;
  }

  .journey-section__title {
    font-size: 36px;
    line-height: 40px;
  }

  .consultation-card {
    gap: 40px;
  }

  .form-row {
    flex-direction: row;
    gap: 24px;
  }


  /* Footer: logo + content as row (same as desktop per Figma) */
  .footer-body {
    padding: 40px 20px 60px;
    gap: 40px;
  }

  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }

  .footer-logo-wrap {
    flex: 0 0 auto;
    max-width: 200px;
    align-self: flex-start;
  }

  .footer-links-row {
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-copyright {
    font-size: 20px;
    line-height: 28px;
    white-space: nowrap;
    flex-wrap: nowrap;
  }

  .footer-copyright__trademark {
    width: auto;
    justify-content: center;
    gap: 20px;
  }

  .footer-copyright__rights {
    text-align: right;
  }
}

/* ─── Mobile ≤640px (Figma Mobile 390px) ────────────────── */
@media (max-width: 640px) {

  .finance-right {
    display: none;
  }

  /* Card 2 has reversed DOM order (text→image), flip to image-on-top for mobile */
  .finance-cards-block .finance-row:nth-child(2) {
    flex-direction: column-reverse;
  }

  .finance-bracket-mobile {
    display: block;
  }

  /* Header */
  .header-inner {
    padding: 16px 16px 8px;
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;
  }

  /* Burger: показуємо, текстові лінки — ховаємо */
  .burger-btn {
    display: flex;
  }

  .nav__link {
    display: none;
  }

  /* Nav: тільки іконки у рядок */
  .nav {
    order: 0;
    flex: 1 0 0;
    width: auto;
    overflow: visible;
    padding: 5px 0;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
  }

  /* CTA-контейнер: до правого краю */
  .header-actions {
    flex: 1 0 0;
    justify-content: flex-end;
    width: auto;
  }

  .header-actions .btn {
    flex: none;
    padding: 10px 16px;
    font-size: 16px;
  }

  /* Hero: normal flow (not fixed) on mobile */
  .hero__top-section {
    position: relative;
    min-height: auto;
  }

  .hero__content {
    position: relative;
    top: auto;
    padding: 160px 16px 60px;
    gap: 60px;
  }

  /* Hero: actions stacked, full-width buttons */
  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 18px;
  }

  .hero__subtitle {
    font-size: 24px;
    line-height: 28px;
  }

  .hero__heading {
    font-size: 36px;
    line-height: 40px;
  }

  .hero__lead {
    font-size: 18px;
    line-height: 28px;
  }

  /* Hero image: flex: none prevents flex-basis:0 from collapsing the container */
  .hero__image-col {
    flex: none;
    width: 100%;
    height: 306px;
    overflow: visible;
  }

  /* Photo overflows ~456px so stats overlay bottom portion */
  .hero__photo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 456px;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
  }

  /* Stat cards: column stack, rendered above overflowing photo */
  .hero-stats {
    gap: 16px;
    flex-direction: column;
    position: relative;
    z-index: 2;
  }

  .stat-card {
    flex: none;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    min-height: 0;
    gap: 12px;
    padding: 20px;
    border-radius: 24px;
  }

  .stat-card__value {
    flex: 0 0 140px;
    width: 140px;
    justify-content: flex-start;
    white-space: nowrap;
  }

  .stat-card__number {
    font-size: 30px;
    line-height: 36px;
  }

  .stat-card__unit {
    font-size: 20px;
    line-height: 28px;
  }

  .stat-card__label {
    flex: 1 0 0;
    text-align: left;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 0;
  }

  /* Middle container: reset fixed-hero offset */
  .middle-container {
    top: 0;
    margin-bottom: 0;
  }

  .middle-container::before {
    background-size: contain;
  }

  /* Section */
  .section__inner {
    padding: 0 16px;
    gap: 40px;
  }

  .section-title {
    font-size: 24px;
    line-height: 32px;
  }

  /* Capital tools sidebar: vertical on mobile */
  .capital-card__sidebar {
    flex-direction: column;
    gap: 12px;
    padding: 20px 0 0;
    border-top: 1px solid #f3f1f3;
  }

  .capital-tools-widget .capital-card__sidebar {
    overflow-x: hidden;
    min-width: 0;
  }

  .capital-card.capital-tools-widget {
    height: auto;
    min-height: 0;
  }

  .sidebar-item__label,
  .sidebar-nav-btn {
    font-size: 16px;
  }

  /* Finance rows: image 376px + text below */
  .finance-row__image {
    height: 376px;
  }

  .finance-row__text {
    padding: 60px 40px;
  }

  .finance-row__heading {
    font-size: 30px;
    line-height: 36px;
  }

  .finance-row__desc,
  .about-us__desc {
    font-size: 18px;
    line-height: 28px;
  }

  .about-us {
    padding: 32px 24px;
  }

  .about-us__brand {
    font-size: 30px;
    line-height: 36px;
  }

  .about-us__text,
  .highlight {
    font-size: 18px;
    line-height: 28px;
    height: auto;
    padding: 0 10px;
  }

  /* Trust badges */
  .trust-badges {
    gap: 40px;
  }

  /* Trust cards */
  .trust-card {
    padding: 32px 20px;
    gap: 20px;
    min-height: 204px;
  }

  .trust-card__title {
    font-size: 30px;
    line-height: 36px;
  }

  .trust-card__desc {
    font-size: 18px;
    line-height: 28px;
  }

  /* Journey section */
  .journey-section {
    padding: 60px 16px 200px;
    gap: 120px;
  }

  .journey-section__title {
    font-size: 24px;
    line-height: 32px;
  }

  /* Consultation card */
  .consultation-card {
    padding: 32px 20px;
    gap: 40px;
    border-radius: 24px;
  }

  .consultation-card__subtitle {
    font-size: 20px;
    line-height: 28px;
  }

  /* Contacts: stacked vertically on mobile */
  .consultation-card__contacts {
    flex-direction: column;
    gap: 20px;
    font-size: 16px;
    line-height: 24px;
    white-space: normal;
  }

  /* Form: phone and email each stacked */
  .form-row {
    flex-direction: column;
    gap: 24px;
  }

  .form-field,
  .form-field--grow {
    width: 100%;
    flex-shrink: 0;
  }

  .form-label {
    font-size: 16px;
    line-height: 24px;
  }

  .form-input,
  .phone-prefix {
    font-size: 18px;
  }

  /* Submit buttons: full-width column */
  .form-submit {
    flex-direction: column;
    gap: 16px;
  }

  .form-submit .btn {
    width: 100%;
  }



  /* Footer */
  .footer-body {
    padding: 40px 16px 60px;
    gap: 40px;
  }

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

  .footer-logo {
    max-width: 116px;
    max-height: 117px;
  }

  .footer-links-row {
    flex-direction: column;
    gap: 24px;
  }

  .footer-tag {
    font-size: 14px;
    line-height: 14px;
    padding: 7px 10px;
  }

  /* Copyright: year left + rights right */
  .footer-copyright {
    flex-wrap: nowrap;
    font-size: 16px;
    line-height: 28px;
    white-space: nowrap;
    gap: 0;
    justify-content: space-between;
  }

  .footer-copyright__trademark {
    display: none;
  }

  .footer-copyright__lead {
    flex: none;
  }

  .footer-copyright__year {
    flex: none;
  }

  .footer-copyright__rights {
    flex: none;
    text-align: right;
  }
}
/* ─── News Page ──────────────────────────────────────────────── */

/* Page-level overrides */
body.news-page {
  background: #fafafa;
}

.news-main {
  padding-top: 72px; /* header height offset */
}

.news-main svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ─── Hero Section ───────────────────────────────────────────── */

.news-hero {
  background: #f3f1f3;
  padding: 20px 0;
}

.news-hero__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.breadcrumbs__item {
  font-size: 14px;
  line-height: 16px;
  color: #594c5b;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.15s;
}

.breadcrumbs__item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.breadcrumbs__item--active {
  color: #f54900;
  cursor: default;
}

.breadcrumbs__item--active:hover {
  background: transparent;
}

.breadcrumbs__sep {
  font-size: 14px;
  line-height: 16px;
  color: #a89ea9;
}

/* Title + Filters */
.news-hero__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.news-hero__title {
  font-size: 48px;
  line-height: 60px;
  font-weight: 400;
  color: #1d161e;
  text-align: center;
}

/* Filter tabs */
.news-filters {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.news-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 16px;
  font-weight: 400;
  color: #594c5b;
  cursor: pointer;
  transition: background 0.15s;
}

.news-filter:hover {
  background: rgba(0, 0, 0, 0.04);
}

.news-filter--active {
  color: #d7d0d7;
  background: #2b2422;
  border: 1.75px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 0.75px #0c0a09;
}

.news-filter--active:hover {
  background: #352c28;
}

a.news-filter {
  text-decoration: none;
}

a.news-filter:visited {
  color: #594c5b;
}

a.news-filter.news-filter--active:visited {
  color: #d7d0d7;
}

/* ─── Main Content Container ─────────────────────────────────── */

.news-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ─── Article Hero ───────────────────────────────────────────── */

.article-hero {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #e7e4e7;
  background: #fff;
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.03), 0px 4px 6px -4px rgba(0, 0, 0, 0.02);
  text-decoration: none;
  color: inherit;
}

.article-hero__image {
  flex-shrink: 0;
  width: 640px;
  height: 380px;
  overflow: hidden;
}

.article-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-hero__body {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  height: 380px;
  align-self: stretch;
}

.article-hero__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 0 0;
  min-height: 0;
}

.article-hero__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  line-height: 28px;
  color: #594c5b;
  white-space: nowrap;
}

.article-hero__title {
  font-size: 30px;
  line-height: 40px;
  font-weight: 400;
  color: #1d161e;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.article-hero__title a {
  color: inherit;
  text-decoration: none;
}

.news-hub-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: #79697b;
  font-size: 18px;
}



.articles-landing__more,
.news-landing__more {
  margin: 2.5rem 0 0;
  text-align: center;
}

.article-hero__desc {
  flex: 1 0 0;
  font-size: 20px;
  line-height: 28px;
  color: #79697b;
  overflow: hidden;
}

.article-hero__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ─── Shared Meta Styles ─────────────────────────────────────── */

.article-meta__category,
.article-meta__date {
  font-size: 14px;
  line-height: 20px;
  color: #79697b;
  white-space: nowrap;
  flex-shrink: 0;
}

.article-meta__authors {
  font-size: 14px;
  line-height: 20px;
  color: #594c5b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 0 0;
  min-width: 0;
  text-align: right;
}

.article-meta__read-time {
  font-size: 18px;
  line-height: 28px;
  color: #594c5b;
  flex-shrink: 0;
}

.article-meta__sep {
  color: #a89ea9;
}

/* Avatars */
.article-avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.article-avatars__item {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  margin-left: -8px;
  border: 1.5px solid #fff;
  flex-shrink: 0;
}

.article-avatars__item:first-child {
  margin-left: 0;
}

/* ─── News Section ───────────────────────────────────────────── */

.news-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Section row header */
.section-row-header {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  flex-shrink: 0;
  width: 100%;
}

.section-row-header__title {
  font-size: 24px;
  line-height: 36px;
  font-weight: 400;
  color: #1d161e;
  white-space: nowrap;
  flex-shrink: 0;
}

.section-row-header__divider {
  flex: 1 0 0;
  height: 1px;
  min-width: 8px;
  background: #e7e4e7;
}

/* Pagination for "Останні Новини" */
.section-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.section-pagination__text {
  font-size: 18px;
  line-height: 28px;
  color: #594c5b;
  text-align: center;
  width: 80px;
  white-space: nowrap;
}

/* Scroll controls */
.scroll-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  cursor: pointer;
}

/* Icon buttons */
.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #e7e4e7;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.icon-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 -2px 0 0 rgba(0, 0, 0, 0.04);
  pointer-events: none;
}

.icon-btn:hover {
  background: #f3f1f3;
}

.icon-btn--disabled {
  opacity: 0.4;
  cursor: default;
}

.icon-btn--sm {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

/* ─── Article Cards Grid ─────────────────────────────────────── */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 20px;
  width: 100%;
}

.article-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #e7e4e7;
  background: #fff;
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.03), 0px 4px 6px -4px rgba(0, 0, 0, 0.02);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

.article-card:hover {
  border-color: #d0ccd0;
}

.article-card__image {
  width: 100%;
  aspect-ratio: 640 / 380;
  overflow: hidden;
  flex-shrink: 0;
}

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 20px 20px;
  width: 100%;
  flex-shrink: 0;
}

.article-card__top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  line-height: 20px;
  color: #594c5b;
  white-space: nowrap;
}

.article-card__title {
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
  color: #1d161e;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.article-card__footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ─── Article Scroll Row ─────────────────────────────────────── */

.article-scroll-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
}

.article-scroll-row::-webkit-scrollbar {
  display: none;
}

/* ─── Article Small Card ─────────────────────────────────────── */

.article-small-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #e7e4e7;
  background: #fff;
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.03), 0px 4px 6px -4px rgba(0, 0, 0, 0.02);
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  width: 388px;
  scroll-snap-align: start;
  transition: border-color 0.15s;
}

.article-small-card:hover {
  border-color: #d0ccd0;
}

.article-small-card__image {
  width: 100%;
  aspect-ratio: 640 / 380;
  overflow: hidden;
  flex-shrink: 0;
}

.article-small-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-small-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 20px 20px;
  width: 100%;
  flex-shrink: 0;
}

.article-small-card__title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.article-small-card__title {
  flex: 1 0 0;
  min-width: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
  color: #1d161e;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.article-small-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.article-small-card__meta-left {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 20px;
  color: #594c5b;
  white-space: nowrap;
  flex-shrink: 0;
}

.article-small-card__meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 0 0;
  min-width: 0;
  justify-content: flex-end;
}

.article-small-card__meta-right .article-meta__authors {
  flex: 1 0 0;
  min-width: 0;
}

/* ─── Responsive ─────────────────────────────────────────────── */

/* ── Tablet (≤ 1100px) — 2-column grid, stacked hero ── */
@media (max-width: 1100px) {

  /* Hero section */
  .news-hero__inner {
    padding: 0 20px;
  }

  .news-hero__title {
    font-size: 30px;
    line-height: 40px;
  }

  /* Container */
  .news-container {
    padding: 20px 20px 40px;
  }

  /* Article hero — stacked vertically */
  .article-hero {
    flex-direction: column;
    height: auto;
  }

  .article-hero__image {
    width: 100%;
    height: auto;
    aspect-ratio: 640 / 380;
  }

  .article-hero__body {
    height: auto;
    padding: 20px;
    gap: 28px;
  }

  .article-hero__content {
    gap: 12px;
  }

  .article-hero__meta-row {
    font-size: 16px;
    line-height: 24px;
  }

  .article-hero__title {
    font-size: 24px;
    line-height: 36px;
  }

  .article-hero__desc {
    font-size: 18px;
    line-height: 28px;
  }

  /* Grid: 2 columns × 3 rows */
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
  }

  /* Small cards narrower */
  .article-small-card {
    width: 324px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Article Page (article.html)
   ═══════════════════════════════════════════════════════════════ */

/* ── Body ── */
body.article-page {
  background: #fafafa;
}

.article-main {
  padding-top: 72px;
}

/* ── Hero Section ──────────────────────────────────────────────── */
.article-hero-section {
  position: relative;
  height: 453px;
  background: #f3f1f3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.article-hero-section__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.article-hero-section__overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 32px;
  background: linear-gradient(
    180deg,
    rgba(250,250,250,0.4)  0%,
    rgba(250,250,250,0.2)  30%,
    rgba(250,250,250,0.8)  50%,
    rgba(250,250,250,1)    85%
  );
  width: 100%;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 1600px;
  padding: 0 40px;
}

.breadcrumbs__item {
  font-size: 14px;
  line-height: 16px;
  color: #594c5b;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.15s;
}

.breadcrumbs__item:hover {
  background: rgba(0,0,0,0.05);
}

.breadcrumbs__item--active {
  color: #f54900;
  text-shadow: 0 0 7.6px white;
  cursor: default;
}

.breadcrumbs__sep {
  font-size: 14px;
  line-height: 16px;
  color: #a89ea9;
}

/* Bottom meta + title */
.article-hero-section__bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 1600px;
  padding: 0 40px;
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.article-hero-meta__left {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  line-height: 32px;
  color: #594c5b;
}

.article-hero-meta__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-hero-meta__authors {
  font-size: 20px;
  line-height: 32px;
  color: #594c5b;
  white-space: nowrap;
}

.article-meta__category {
  font-size: 20px;
  line-height: 32px;
  color: #594c5b;
}

.article-meta__sep {
  color: #a89ea9;
}

.article-meta__authors {
  font-size: 14px;
  line-height: 20px;
  color: #594c5b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stacked avatars */
.article-avatars {
  display: flex;
  align-items: center;
  padding-right: 16px;
}

.article-avatars__item {
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  margin-right: -16px;
}

.article-hero-section__title {
  font-size: 48px;
  line-height: 60px;
  color: #1d161e;
  font-weight: 400;
}

/* ── Page Container ─────────────────────────────────────────────── */
.article-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* ── Two-column layout ──────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.5fr);
  gap: 28px;
  align-items: start;
}

/* ── Article Body (left column) ─────────────────────────────────── */
.article-body {
  background: #fff;
  border: 1px solid #e7e4e7;
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.03), 0 4px 6px -4px rgba(0,0,0,0.02);
}

.article-lead {
  font-size: 24px;
  line-height: 36px;
  color: #79697b;
}

/* Section "Вступ" centered heading */
.wp-block-group.article-section-heading-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  width: 100%;
  overflow: hidden;
}

.wp-block-group.article-section-heading-wrap > .wp-block-group__inner-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.wp-block-group.article-section-heading-wrap > .wp-block-group__inner-container::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1025px;
  min-width: 1025px;
  max-width: none;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1025px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1025' height='16' viewBox='0 0 1025 16' fill='none'%3E%3Crect width='1025' height='16' fill='url(%23p)'/%3E%3Cdefs%3E%3Cpattern id='p' patternUnits='userSpaceOnUse' width='60' height='16'%3E%3Cpath d='M0 8C8.2843 -0.2843 21.7157 -0.2843 30 8C38.2843 16.2843 51.7157 16.2843 60 8' stroke='%23E7E4E7' stroke-width='1.5'/%3E%3C/pattern%3E%3C/defs%3E%3C/svg%3E");
  pointer-events: none;
}

.article-section-heading-wrap .article-section-heading {
  position: relative;
  z-index: 1;
  font-size: 30px;
  line-height: 40px;
  color: #1d161e;
  font-weight: 400;
  white-space: nowrap;
  margin: 0;
  padding: 0 28px;
  background: #FFFFFF;
}

/* Regular article heading (left-aligned) */
.article-heading:not(.article-section-heading) {
  font-size: 24px;
  line-height: 36px;
  color: #1d161e;
  font-weight: 400;
  padding-top: 20px;
}



/* Body text */
.article-text {
  font-size: 16px;
  line-height: 24px;
  color: #594c5b;
  text-align: justify;
}

/* Gutenberg / classic content inside article v2 */
.article-v2-entry > p,
.article-v2-entry .wp-block-paragraph {
  font-size: 16px;
  line-height: 24px;
  color: #594c5b;
  text-align: justify;
}

.article-v2-entry > p:first-child {
  margin-top: 0;
}

.article-v2-entry > h2,
.article-v2-entry h2.wp-block-heading:not(.article-section-heading) {
  font-size: 24px;
  line-height: 36px;
  color: #1d161e;
  font-weight: 400;
  padding-top: 20px;
  margin: 0 0 0.25em;
}

.article-v2-entry > h3,
.article-v2-entry h3.wp-block-heading {
  font-size: 20px;
  line-height: 30px;
  color: #1d161e;
  font-weight: 400;
  margin: 1em 0 0.25em;
}

.article-v2-entry.entry-content .wp-block-group.article-section-heading-wrap .article-section-heading {
  background-color: #FAFAFA;
}

.article-v2-entry .wp-block-image {
  margin: 1.5em 0;
}

.article-v2-entry .wp-block-image img {
  border-radius: 12px;
  width: 100%;
  height: auto;
}

.article-v2-entry .wp-block-post-title {
  display: none;
}

.article-v2-entry ul,
.article-v2-entry ol {
  color: #594c5b;
  padding-left: 1.25em;
}


.article-image-block {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  width: 100%;
  max-height: 288px;
}

.article-image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-image-block--short {
  max-height: 172px;
}

.article-v2-entry .article-image-block {
  max-height: 421px;
}

.article-v2-entry .article-image-block--short {
  max-height: 172px;
}


/* Highlight / quote block */
.article-highlight {
  position: relative;
  padding-left: 20px;
  border-left: none;
  display: block;
  gap: 12px;
  width: 100%;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

.article-v2-entry .article-highlight.alignwide,
.article-v2-entry .article-highlight[class*="is-layout-"],
.article-v2-entry .article-highlight.wp-block-group-is-layout-flow,
.article-v2-entry .article-highlight.wp-block-group-is-layout-flex {
  width: 100%;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.article-v2-entry .article-highlight > .wp-block-group__inner-container {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
}

.article-v2-entry .article-highlight.is-layout-flow,
.article-v2-entry .article-highlight > .is-layout-flow,
.article-v2-entry .article-highlight > .is-layout-flex {
  width: 100%;
  max-width: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left;
}

.article-v2-entry .article-highlight.is-layout-flow > * + *,
.article-v2-entry .article-highlight > .is-layout-flow > * + *,
.article-v2-entry .article-highlight > .is-layout-flex > * + * {
  margin-block-start: 0 !important;
}

.article-v2-entry .article-highlight > .wp-block-group__inner-container > * {
  width: 100%;
  max-width: none;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.article-highlight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-repeat: repeat-y;
  background-size: 4px 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='60' viewBox='0 0 4 60' fill='none'%3E%3Cpath d='M2 -18C3.28388 -14.7903 3.28388 -11.2097 2 -8C0.716119 -4.79029 0.71612 -1.20971 2 2C3.28388 5.20971 3.28388 8.79029 2 12C0.716119 15.2097 0.716119 18.7903 2 22C3.28388 25.2097 3.28388 28.7903 2 32C0.716119 35.2097 0.716118 38.7903 2 42C3.28388 45.2097 3.28388 48.7903 2 52C0.716119 55.2097 0.716119 58.7903 2 62' stroke='%23FF6900' stroke-width='2'/%3E%3C/svg%3E");
}

.article-highlight__label {
  font-size: 18px;
  line-height: 28px;
  color: #ff6900;
  margin: 0;
  text-align: left;
}

.article-highlight__text {
  font-size: 16px;
  line-height: 24px;
  color: #594c5b;
  margin: 0;
  text-align: left;
}

.article-v2-entry .article-highlight .wp-block-paragraph {
  margin: 0 !important;
  text-align: left;
  width: 100%;
  max-width: none;
}

/* Branded CTA block inside article */
.article-cta-block {
  background: #fff;
  border: 1px solid #e7e4e7;
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-cta-block__title {
  font-size: 24px;
  line-height: 36px;
  color: #1d161e;
  font-weight: 400;
}

/* ── Sidebar (right column) ─────────────────────────────────────── */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 88px;
}

/* Article info card */
.article-info-card {
  background: #fff;
  border: 1px solid #e7e4e7;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 10px 15px rgba(0,0,0,0.03), 0 4px 6px rgba(0,0,0,0.02);
}

.article-info-card__header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-info-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.article-small-card__meta-left {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 20px;
  color: #594c5b;
  white-space: nowrap;
}

.sidebar-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-author__name {
  font-size: 14px;
  line-height: 20px;
  color: #594c5b;
  white-space: nowrap;
}

.article-info-card__title {
  font-size: 24px;
  line-height: 28px;
  color: #1d161e;
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Top-level tags block (before article layout) — hidden on desktop */
.article-tags--top {
  display: none;
}

.article-tag {
  border: 1.5px solid rgba(255,255,255,0.28);
  background: rgba(243,241,243,0.4);
  border-radius: 10px;
  padding: 4px 14px;
  font-size: 18px;
  line-height: 28px;
  color: #594c5b;
  white-space: nowrap;
}

/* Consultation CTA sidebar card */
.consultation-sidebar-card {
  position: relative;
  background: #fff;
  border: 1px solid #e7e4e7;
  border-radius: 20px;
  padding: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 10px 15px rgba(0,0,0,0.03), 0 4px 6px -4px rgba(0,0,0,0.02);
}

.consultation-sidebar-card__content {
  padding-right: 112px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.consultation-sidebar-card__title {
  font-size: 24px;
  line-height: 36px;
  color: #ff8904;
}

.consultation-sidebar-card__desc {
  font-size: 16px;
  line-height: 24px;
  color: #594c5b;
  text-align: justify;
}

.consultation-sidebar-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* ── Sidebar related articles ───────────────────────────────────── */
.sidebar-related {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-related__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── article-small-card reusable ────────────────────────────────── */
.article-small-card {
  background: #fff;
  border: 1px solid #e7e4e7;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.03), 0 4px 6px -4px rgba(0,0,0,0.02);
  flex-shrink: 0;
  transition: box-shadow 0.2s;
}

.article-small-card:hover {
  box-shadow: 0 16px 24px -4px rgba(0,0,0,0.08);
}

.article-small-card__image {
  aspect-ratio: 640 / 380;
  overflow: hidden;
  flex-shrink: 0;
  width: 100%;
}

.article-small-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-small-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 20px 20px;
}

.article-small-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.article-small-card__title {
  font-size: 20px;
  line-height: 28px;
  color: #1d161e;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.article-small-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.article-small-card__meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
}

/* ── Section row header (shared with news page) ─────────────────── */
.section-row-header {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.section-row-header__title {
  font-size: 24px;
  line-height: 36px;
  color: #1d161e;
  font-weight: 400;
  white-space: nowrap;
}

.section-row-header__divider {
  flex: 1;
  height: 8px;
  min-width: 0;
}

.section-row-header__wave {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  height: 8px;
}

.section-row-header__wave-svg {
  display: block;
  width: 1025px;
  min-width: 1025px;
  max-width: none;
  height: 8px;
  flex-shrink: 0;
}

/* ── icon-btn ───────────────────────────────────────────────────── */
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid #e7e4e7;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.04);
  transition: background 0.15s, opacity 0.15s;
}

.icon-btn:hover {
  background: #f3f1f3;
}

.icon-btn--sm {
  padding: 8px;
}

.icon-btn--disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── Dark button ─────────────────────────────────────────────────── */
.btn--dark {
  background: #2b2422;
  color: #d7d0d7;
  border: 1.75px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 0.75px #0c0a09;
}

.btn--dark:hover {
  background: #3a3230;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 18px;
  line-height: 20px;
  border-radius: 10px;
}

.btn--secondary {
  background: #fff;
  color: #594c5b;
  border: 1px solid #e7e4e7;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.04);
}

.btn--secondary:hover {
  background: #f3f1f3;
}

.article-main .journey-section {
  padding: 60px 0px 0px;
  gap: 40px;
} 

.article-main .journey-section > .consultation-wrap,
.article-v2-main .journey-section > .consultation-wrap {
  width: auto;
  margin: 0px 20px;
}


.article-main .journey-section svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Mobile (≤ 640px) — 1-column stacked, 16px paddings ── */
@media (max-width: 640px) {

  /* Hero section */
  .news-hero__inner {
    padding: 0 16px;
  }

  .news-container {
    padding: 20px 16px 40px;
  }

  /* Filter tabs — horizontal scroll, no wrap */
  .news-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    width: 100%;
    position: relative;
    padding-right: 40px; /* space for the "more" indicator */
  }

  .news-filters::-webkit-scrollbar {
    display: none;
  }

  .news-filter {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 16px;
  }

  .news-filter--active {
    border-radius: 6px;
  }

  /* Article hero — stacked, already inherited from tablet,
     just keep padding consistent */
  .article-hero__body {
    padding: 20px;
  }

  /* Article cards grid → single-column flex column */
  .article-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .article-card {
    width: 100%;
  }

  .article-card__title {
    font-size: 24px;
    line-height: 32px;
  }

  /* Small cards — keep 324px, same horizontal scroll */
  .article-small-card {
    width: 324px;
  }
}

/* ─── Article Page — Tablet (≤ 1100px) ────────────────────────── */
@media (max-width: 1100px) {

  /* ── Hero ── */
  .article-hero-section {
    height: 624px;
  }

  .breadcrumbs,
  .article-hero-section__bottom {
    padding: 0 20px;
  }

  .article-hero-section__title {
    font-size: 30px;
    line-height: 40px;
  }

  .article-hero-meta__left,
  .article-hero-meta__authors {
    font-size: 20px;
    line-height: 32px;
  }

  /* ── Container & layout ── */
  .article-container {
    padding: 20px 20px 40px;
    gap: 40px;
  }

  /* Tags block at top — shown on tablet, hidden on desktop */
  .article-tags--top {
    display: flex;
  }

  /* Tags inside sidebar — hidden on tablet */
  .article-info-card .article-tags {
    display: none;
  }

  /* Two-column → single column */
  .article-layout {
    grid-template-columns: 1fr;
  }

  /* Sidebar — un-sticky, reordered */
  .article-sidebar {
    position: static;
    top: auto;
  }

  /* Hide article info card entirely (title + meta block) on tablet */
  .article-info-card {
    display: none;
  }

  /* Consultation card — full width, buttons side-by-side */
  .consultation-sidebar-card__content {
    padding-right: 144px;
  }

  .consultation-sidebar-card__actions {
    justify-content: flex-end;
    gap: 12px;
  }

  /* Hide sidebar related articles on tablet
     (they merge into "Інші Новини" row below) */
  .sidebar-related {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Article V2 Page (article2.html) — single-column layout
   Based on Figma node 8239:1810
═══════════════════════════════════════════════════════════════ */

body.article-v2-page {
  background: #fafafa;
}

.article-v2-main {
  padding-top: 72px;
}

/* Content wrapper: max-width container with gap between article and related */
.article-v2-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Article body: single centered column, no white card wrapper */
.article-v2-body {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

/* "Вступ" heading row with horizontal dividers on both sides */
.article-section-divider-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  width: 100%;
}

.article-section-divider-row__line {
  flex: 1 0 0;
  min-width: 0;
  height: 1px;
  background: #e7e4e7;
}

.article-section-divider-row__heading {
  font-size: 30px;
  line-height: 40px;
  color: #1d161e;
  font-weight: 400;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Full-width image block inside article (421px tall per Figma) */
.article-v2-image-block {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  width: 100%;
  height: 421px;
}

.article-v2-image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bookmark button overlay on image */
.article-v2-image-block__btn {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.article-v2-image-block__btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Small card width modifier (328px per Figma) */
.article-small-card--328 {
  width: 328px;
}

/* "Чекаю дзвінка" button — white with warm orange tint */
.btn--login {
  background:
    linear-gradient(90deg, rgba(255, 184, 106, 0.3) 0%, rgba(255, 184, 106, 0.3) 100%),
    #ffffff;
  border: none;
  color: #f54900;
  font-family: inherit;
}

.btn--login:hover {
  opacity: 0.88;
}

.article-v2-main .journey-section {
  padding: 60px 0px 0px;
  gap: 40px;
}

.article-v2-main .journey-section svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ─── Article V2 — Tablet (≤ 1100px) ──────────────────────────── */

@media (max-width: 1100px) {
  /* Content container: no top/bottom padding (px only), smaller gap */
  .article-v2-content {
    padding: 0 20px 60px;
    gap: 40px;
  }

  /* Article body spans full available width */
  .article-v2-body {
    max-width: 100%;
  }

  /* Image block keeps same height as desktop per Figma tablet */
  .article-v2-image-block {
    height: 421px;
  }

  /* Related articles section header title smaller on tablet */
  .article-v2-content .section-row-header__title {
    font-size: 20px;
    line-height: 32px;
  }

  /* Hide decorative visual image in journey section on tablet */
  .article-v2-main .visual {
    display: none;
  }

  /* Journey section: tighter bottom padding without visual */
  .article-v2-main .journey-section {
    padding: 60px 0px 0px;
    gap: 40px;
  }

  /* Footer: single-column nav layout (per Figma tablet) */
  .article-v2-page .footer-links-row {
    flex-direction: column;
    gap: 24px;
  }

  .article-v2-page .footer-body {
    padding: 40px 20px 60px;
  }
}

/* ─── Article V2 — Mobile (≤ 640px) ───────────────────────────── */

@media (max-width: 640px) {
  /* Content container: 16px gutters, gap 32px between article and related (Figma: gap-[32px]) */
  .article-v2-content {
    padding: 0 16px 60px;
    gap: 32px;
  }

  /* Body gets no extra padding — container already provides 16px gutters */
  .article-v2-body {
    padding: 0;
  }

  /* Related articles section: also no extra padding */
  .article-v2-content > .news-section {
    padding: 0;
  }

  /* Scroll row breaks out of container gutters for full-bleed scroll with aligned first card */
  .article-v2-content .article-scroll-row {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
  }

  /* Image block: Figma mobile keeps h-[421px] — same as desktop/tablet */
  .article-v2-image-block {
    height: 421px;
    border-radius: 12px;
  }

  /* "Вступ" heading with dividers: same 30px as desktop (Figma: text-[length:var(--text-3xl,30px)]) */
  .article-section-divider-row__heading {
    font-size: 30px;
    line-height: 40px;
  }

  /* Related articles header title: 18px (Figma: text-[length:var(--text-lg,18px)]) */
  .article-v2-content .section-row-header__title {
    font-size: 18px;
    line-height: 28px;
  }

  /* "Всі новини" button: icon only on mobile (no text label) */
  .article-v2-content .btn--dark .btn-text {
    display: none;
  }
  .article-v2-content .btn--dark {
    padding: 10px;
    border-radius: 8px;
  }

  /* Article card width on mobile */
  .article-small-card--328 {
    width: 280px;
  }

  /* Hide decorative visual image */
  .article-v2-main .visual {
    display: none;
  }

  /* Journey section: px-[20px] per Figma mobile, gap-[120px] */
  .article-v2-main .journey-section {
    padding: 60px 0px 0px;
    gap: 40px;
  }

  /* Footer: single column nav, correct padding */
  .article-v2-page .footer-links-row {
    flex-direction: column;
    gap: 24px;
  }
  .article-v2-page .footer-body {
    padding: 40px 20px 60px;
  }
  /* Footer inner: column on mobile (logo above nav links) */
  .article-v2-page .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  /* Logo size: 116×117 per Figma mobile */
  .article-v2-page .footer-logo {
    max-width: 116px;
    max-height: 117px;
  }
  /* Copyright bar: year left, rights right (trademark hidden as per global mobile CSS) */
  .article-v2-page .footer-copyright {
    justify-content: space-between;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .article-v2-page .footer-copyright__trademark {
    display: none;
  }
  .article-v2-page .footer-copyright__lead,
  .article-v2-page .footer-copyright__year,
  .article-v2-page .footer-copyright__rights {
    flex: none;
  }
  .article-v2-page .footer-copyright__rights {
    text-align: right;
  }
}

/* ─── Article Page — Mobile (≤ 640px) ─────────────────────────── */
@media (max-width: 640px) {

  /* ── Hero ── */
  .article-hero-section {
    height: 706px;
  }

  .breadcrumbs,
  .article-hero-section__bottom {
    padding: 0 16px;
  }

  .article-hero-section__title {
    font-size: 24px;
    line-height: 36px;
  }

  /* Meta: stacked vertically on mobile */
  .article-hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .article-hero-meta__left {
    font-size: 18px;
    line-height: 28px;
  }

  .article-hero-meta__right {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .article-hero-meta__authors {
    font-size: 18px;
    line-height: 28px;
  }

  /* ── Container: no horizontal padding — each section adds its own ── */
  .article-container {
    padding: 20px 0 40px;
    gap: 40px;
  }

  /* Tags: own horizontal padding */
  .article-tags--top {
    display: flex;
    padding: 0 16px;
  }

  /* ── Article body: full-width, only top/bottom border, no radius ── */
  .article-body {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 16px;
    gap: 20px;
  }

  .article-lead {
    font-size: 24px;
    line-height: 36px;
  }

  .article-section-heading {
    font-size: 30px;
    line-height: 40px;
  }

  .article-heading {
    font-size: 24px;
    line-height: 36px;
  }

  .article-image-block {
    max-height: 288px;
  }

  .article-image-block--short {
    max-height: 172px;
  }

  /* CTA block inside article */
  .article-cta-block {
    padding: 32px;
  }

  /* ── Sidebar on mobile: add horizontal padding ── */
  .article-sidebar {
    padding: 0 16px;
  }

  /* ── Consultation card: title smaller, buttons stacked full-width ── */
  .consultation-sidebar-card__content {
    padding-right: 0;
  }

  .consultation-sidebar-card__title {
    font-size: 20px;
    line-height: 32px;
  }

  .consultation-sidebar-card__actions {
    flex-direction: column;
    gap: 12px;
  }

  .consultation-sidebar-card__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* ── "Інші Новини" section header: padding, title smaller ── */
  .article-container .news-section .section-row-header {
    padding: 0 16px;
  }

  .article-container .section-row-header__title {
    font-size: 20px;
    line-height: 32px;
  }

  .article-container .sidebar-related .section-row-header__title {
    white-space: normal;
    min-width: 0;
  }

  .article-container .sidebar-related .section-row-header__wave {
    min-width: 64px;
  }

  /* "Всі новини" button on mobile — icon only (hide text) */
  .article-container .btn--dark .btn-text {
    display: none;
  }

  .article-container .btn--dark {
    padding: 10px;
  }

  /* Scroll row: first card indented */
  .article-container .article-scroll-row {
    padding-left: 16px;
  }

  /* Tags */
  .article-tags {
    gap: 4px;
  }

  .article-tag {
    font-size: 14px;
    line-height: 22px;
    padding: 2px 10px;
  }
}

/* ─── Language Switcher Dropdown (Polylang) ──────────────────── */

.lang-switcher-wrap {
  position: relative;
  flex-shrink: 0;
}

.lang-switcher__arrow {
  transition: transform 0.2s ease;
}

.lang-switcher-wrap.is-open .lang-switcher__arrow {
  transform: rotate(180deg);
}

.lang-switcher-wrap.is-open .lang-switcher {
  border-color: rgba(255, 255, 255, 0.24);
  background: #352c28;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: #2b2422;
  border: 1.75px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 10;
}

.lang-switcher-wrap.is-open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown__item {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #d7d0d7;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.lang-dropdown__item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #d7d0d7;
}

/* =============================================================
   Contact Form 7 fixes
   ============================================================= */

/*
 * Default CF7 CSS is off (wpcf7_load_css). Re-apply rules that must exist
 * for a11y + layout, or the screen-reader summary duplicates visible errors.
 */
.wpcf7 {
  position: relative;
}

.wpcf7 .screen-reader-response {
  position: absolute;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  word-wrap: normal !important;
}

.wpcf7 .hidden-fields-container {
  display: none;
}

/* CF7 wraps inputs in <span class="wpcf7-form-control-wrap">.
   Scope only to .input-wrap context, keep position:relative for CF7 JS. */
.input-wrap > .wpcf7-form-control-wrap {
  position: relative;
  flex: 1 0 0;
  min-width: 0;
}

.input-wrap > .wpcf7-form-control-wrap > input {
  width: 100%;
  display: block;
}

/* Chrome autofill: keep same fill as .input-wrap (#fafafa), not system blue */
.wpcf7 .form-input:-webkit-autofill,
.wpcf7 .form-input:-webkit-autofill:hover,
.wpcf7 .form-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1d161e;
  caret-color: #1d161e;
  box-shadow: 0 0 0 1000px #fafafa inset;
  transition: background-color 99999s ease-out;
}

/* CF7 5.7+: form status classes (sent, invalid, …) on <form>, not on the output div */

/* Hide global response while idle or in-flight (matches CF7 default behaviour) */
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output,
.wpcf7 form.validating .wpcf7-response-output {
  display: none !important;
}

/* Visible feedback bar (success / validation / mail errors) */
.wpcf7 .wpcf7-response-output {
  box-sizing: border-box;
  width: 100%;
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  clear: both;
}

.wpcf7 form.sent .wpcf7-response-output {
  background: #ecfdf3;
  border-color: #86b89a;
  color: #166534;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  background: #fef2f2;
  border-color: #f0a4a4;
  color: #991b1b;
}

.wpcf7 form.spam .wpcf7-response-output {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

/* CF7: tip lives inside .input-wrap — keep border height = input row only */
.wpcf7 .input-wrap {
  overflow: visible;
}

/* Per-field validation hint */
.wpcf7 .input-wrap .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin-top: 0;
  display: block;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: #c53030;
  z-index: 2;
}

/* Reserve space so the absolute tip does not cover the next label */
.wpcf7 .form-field:has(.wpcf7-not-valid-tip) {
  padding-bottom: 26px;
}

/* Tips for controls not using .input-wrap (fallback) */
.wpcf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: #c53030;
}

/* Invalid field chrome */
.wpcf7 .input-wrap:has(.wpcf7-form-control-wrap.wpcf7-not-valid) {
  border-color: #e05a5a;
  box-shadow: inset 0 1px 1px rgba(224, 90, 90, 0.08);
}

.wpcf7 .wpcf7-form-control-wrap.wpcf7-not-valid .phone-prefix {
  border-right-color: #e05a5a;
}

/* Submit spinner — theme accent */
.wpcf7 .wpcf7-spinner {
  margin: 0 0 0 12px;
  background-color: #e7e4e7;
  opacity: 1;
}

.wpcf7 .wpcf7-spinner::before {
  background-color: #ff8904;
}

.wpcf7 .form-submit .wpcf7-spinner {
  flex-shrink: 0;
  align-self: center;
}

/* CF7 adds <br> inside buttons due to wpautop */
button br,
.btn br {
  display: none;
}

/* CF7 wraps elements in <p> — reset inside .form-submit */
.form-submit p {
  margin: 0;
  padding: 0;
  display: contents;
}

/* =============================================================
   WordPress TwentyTwentyOne theme overrides
   Neutralizes theme styles that conflict with custom design.
   ============================================================= */

/* ── body: reset WP mint background, font, color ─────────────── */
body {
  color: #d7d0d7;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background-color: #FAFAFA;
}

/* ── links: remove WP text-decoration-thickness ──────────────── */
a {
  text-decoration: none;
  color: inherit;
}

/* ── headings: remove WP font-size/margin overrides ──────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  margin: 0;
  padding: 0;
  color: inherit;
  line-height: inherit;
  font-size: inherit;
}

/* ── .site-header: remove WP large padding and max-width ─────── */
.site-header {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  /* max-width: 1440px !important; */
}

/* ── .site-footer: restore custom max-width after WP override ── */
/* .site-footer {
  max-width: 1440px !important;
} */

/* ── .site-footer: remove WP padding and margins ────────────── */
.site-footer {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
}

.no-widgets .site-footer {
  margin-top: 0 !important;
}

.site-footer > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ── .site-main: remove WP padding and all vertical margins ──── */
.site-main {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Landing fixed hero (≥1200px only): reserve scroll space; .site-main > * zeros margins.
   Inner <main> used to shield .middle-container from that rule. */
@media (min-width: 1200px) {
  .site-main > .middle-container {
    margin-bottom: 900px;
  }
}

.site-main > article > *,
.site-main > .not-found > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.site-main > article > *:first-child,
.site-main > article > *:last-child {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.post-thumbnail, .entry-content .wp-audio-shortcode, .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator), *[class*=inner-container] > *:not(.entry-content):not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator), .default-max-width {
  max-width: 100% !important;
}

/* ── #page, #content, #primary: remove WP layout constraints ─── */
#page,
#content,
#primary {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ── inputs: reset WP border, padding, color, outline ────────── */
.form-input,
input[type=text].form-input,
input[type=email].form-input,
input[type=url].form-input,
input[type=password].form-input,
input[type=search].form-input,
input[type=number].form-input,
input[type=tel].form-input {
  border: none !important;
  border-radius: 0 !important;
  padding: 12px 2px 12px 10px !important;
  margin: 0 !important;
  color: #594c5b !important;
  line-height: 1 !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 18px !important;
}

.form-input:focus,
input[type=text].form-input:focus,
input[type=email].form-input:focus,
input[type=tel].form-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ── buttons: reset WP background/color/hover overrides ─────── */

/* WP sets background-color: #28303d on button:not(.has-background)      */
/* WP sets color: #d1e4dd on button:not(.has-text-color)                 */
/* WP sets background: transparent on button:hover / button:active       */
/* All with specificity (0,3,1) — mirroring selectors + .btn to override */

button.btn:not(:hover):not(:active):not(.has-background) {
  background-color: initial;
}
button.btn:not(:hover):not(:active):not(.has-text-color) {
  color: initial;
}
button.btn:hover,
button.btn:active {
  background-color: initial;
  border-color: initial;
  color: initial;
}

/* Re-apply custom button styles with !important to guarantee win */
button.btn--cta,
a.btn--cta {
  background: #ff8904 !important;
  color: rgba(255, 255, 255, 0.84) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 10px !important;
}

button.btn--cta:hover,
a.btn--cta:hover {
  background: #ff8904 !important;
  opacity: 0.88;
}

button.btn--secondary,
a.btn--secondary {
  background: #ffffff !important;
  color: #594c5b !important;
  border: 1px solid #e7e4e7 !important;
  border-radius: 10px !important;
}

button.btn--secondary:hover,
a.btn--secondary:hover {
  background: #ffffff !important;
  opacity: 0.88;
}

button.btn--login,
a.btn--login {
  background: transparent !important;
  color: #594c5b !important;
  border: 1px solid #e7e4e7 !important;
  border-radius: 10px !important;
}

/* Non-.btn buttons (burger, lang-switcher, sidebar, etc.) — reset WP */
button:not(.btn):not(:hover):not(:active):not(.has-background) {
  background-color: initial;
}
button:not(.btn):not(:hover):not(:active):not(.has-text-color) {
  color: inherit;
}

/* Ensure lang-switcher and burger keep their design colors */
.lang-switcher,
.lang-switcher__code,
.burger-btn {
  color: #d7d0d7 !important;
}

/* =============================================================
   Nav Drawer — mobile / tablet slide-in menu
   ============================================================= */

.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.nav-drawer.is-open {
  display: block;
  pointer-events: auto;
}

/* Semi-transparent backdrop */
.nav-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-drawer.is-open .nav-drawer__overlay {
  opacity: 1;
}

/* Panel slides in from the right */
.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 100vw);
  background: #1a1311;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.nav-drawer.is-open .nav-drawer__panel {
  transform: translateX(0);
}

/* Head row with close button */
.nav-drawer__head {
  display: flex;
  justify-content: flex-end;
  padding: 16px 16px 8px;
  flex-shrink: 0;
}

.nav-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: #2b2422;
  border: 1.75px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
  color: #d7d0d7;
}

.nav-drawer__close:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: #352c28;
}

/* Nav links inside drawer */
.nav-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  flex: 1;
}

.nav-drawer__nav .nav__link {
  display: flex !important;
  width: 100%;
  font-size: 17px;
  padding: 14px 16px;
  border-radius: 10px;
  justify-content: flex-start;
}

/* Footer: lang + CTA */
.nav-drawer__footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.nav-drawer__cta {
  width: 100%;
  justify-content: center;
  font-size: 16px;
}

/* Hide logo on mobile (< 640px) */
@media (max-width: 639px) {
  .logo {
    display: none !important;
  }
}

/* CF7 hidden fieldset — reset browser default fieldset styles */
fieldset.hidden-fields-container {
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  display: block !important;
  position: absolute !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/*
 * Do not use overflow:hidden on .site-content — it breaks position:sticky
 * (e.g. finance section coffee cup). Clip horizontal bleed on the root instead.
 */
html {
  overflow-x: hidden;
}

/* ── Contacts page ─────────────────────────────────────────────── */
.contacts-page {
  max-width: 1360px;
  margin: 0 auto;
  padding: calc(var(--coffee-site-header-offset, 72px) + 20px) 40px 80px;
  box-sizing: border-box;
}

.contacts-page__hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 0 28px;
}

.contacts-page__hero-kicker {
  margin: 0;
  align-self: flex-start;
  max-width: 100%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 184, 106, 0.3);
  font-size: 24px;
  line-height: 28px;
  color: #ff6900;
  font-weight: 400;
}

.contacts-page__hero-title {
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
  font-weight: 400;
  color: #1d161e;
}

.contacts-page__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 28px;
  width: 100%;
}

.contacts-page__col--stack {
  flex: 1 1 320px;
  max-width: 576px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.contacts-page__col--map {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
}

.contacts-page__form-wrap {
  align-items: stretch;
  justify-content: flex-start;
}

.contacts-page__form-wrap .consultation-card {
  max-width: none;
  width: 100%;
}

.contacts-phone-card {
  background: #fff;
  border: 1px solid #e7e4e7;
  border-radius: 24px;
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

.contacts-phone-card__intro {
  text-align: center;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: #594c5b;
}

.contacts-phone-card__intro-line {
  margin: 0;
}

.contacts-phone-card__intro-line--muted {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #79697b;
}

.contacts-phone-card__label {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 24px;
  color: #79697b;
}

.contacts-phone-card__empty {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: #79697b;
}

.contacts-phone-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 6px;
}

.contacts-phone-row:first-of-type {
  margin-top: 0;
}

.contacts-phone-row__number {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 18px;
  line-height: 20px;
  color: #594c5b;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contacts-phone-row__number:hover {
  color: #1d161e;
}

.contacts-phone-row__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.contacts-map-panel {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  background: #fff;
  border: 1px solid #e7e4e7;
  border-radius: 24px;
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .contacts-page__grid {
    display: grid;
    /* Figma desktop (8572:4156): stack column 468px, map flex-grow */
    grid-template-columns: minmax(0, 468px) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
  }

  .contacts-page__col--stack {
    min-width: 0;
    max-width: 468px;
  }

  .contacts-page__col--map {
    min-height: 0;
  }

  /* Figma desktop: усі поля форми в одну колонку (лише сторінка контактів) */
  .contacts-page .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .contacts-page .form-field,
  .contacts-page .form-field--grow {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
  }

  /* Макет: вужча картка локацій — більше видно карту */
  .contacts-locations-card {
    width: min(345px, calc(100% - 40px));
    max-width: min(345px, calc(100% - 40px));
  }
}

.contacts-map-panel__embed {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.contacts-map-panel__embed iframe,
.contacts-map-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  display: block;
}

.contacts-locations-card {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 2;
  width: min(419px, calc(100% - 40px));
  max-width: min(419px, calc(100% - 40px));
  max-height: calc(100% - 40px);
  height: fit-content;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e7e4e7;
  border-radius: 16px;
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-x: hidden;
  overflow-y: auto;
}

.contacts-locations-card__title {
  margin: 0;
  text-align: center;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: #594c5b;
  flex-shrink: 0;
}

.contacts-locations-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.contacts-locations-card__item {
  border-bottom: 1px solid #e7e4e7;
  padding: 12px;
  margin: 0;
}

.contacts-locations-card__item:last-child {
  border-bottom: none;
}

.contacts-locations-card__row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.contacts-locations-card__pin {
  flex-shrink: 0;
  display: flex;
}

.contacts-locations-card__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 18px;
  line-height: 20px;
  color: #594c5b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contacts-locations-card__maps {
  flex-shrink: 0;
}

.contacts-locations-card__addr {
  margin: 8px 0 0;
  padding-left: 28px;
  font-size: 14px;
  line-height: 20px;
  color: #79697b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Планшет (Figma Hero Section 8559:4111): карта зверху з оверлеєм локацій, далі телефони + форма */
@media (min-width: 768px) and (max-width: 1023px) {
  .contacts-page__hero {
    gap: 12px;
    padding: 24px 0 28px;
  }

  .contacts-page__hero-kicker {
    font-size: 20px;
    line-height: 28px;
    padding: 6px 12px;
  }

  .contacts-page__hero-title {
    font-size: 48px;
    line-height: 1;
  }

  .contacts-map-panel {
    flex: none;
    width: 100%;
    aspect-ratio: 756 / 604;
    min-height: 0;
    display: block;
    overflow: hidden;
  }

  .contacts-map-panel__embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    flex: unset;
    z-index: 1;
  }

  .contacts-map-panel__embed iframe,
  .contacts-map-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }

  .contacts-locations-card {
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 2;
    width: min(419px, calc(100% - 40px));
    max-width: min(419px, calc(100% - 40px));
    max-height: calc(100% - 40px);
    height: fit-content;
    border-radius: 16px;
    border-top: none;
    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    overflow-x: hidden;
    overflow-y: auto;
  }
}

@media (max-width: 1023px) {
  .contacts-page {
    padding: calc(var(--coffee-site-header-offset, 72px) + 16px) 20px 60px;
  }

  .contacts-page__grid {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 28px;
    align-items: stretch;
  }

  .contacts-page__col--stack {
    max-width: none;
    width: 100%;
  }

  .contacts-page__col--map {
    order: -1;
    width: 100%;
    flex: 0 0 auto;
    min-height: 0;
  }
}

/* Вузький мобільний: локації під картою в одному блоці */
@media (max-width: 767px) {
  .contacts-map-panel {
    aspect-ratio: unset;
    max-height: none;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    overflow: visible;
  }

  .contacts-map-panel__embed {
    position: relative;
    width: 100%;
    aspect-ratio: 756 / 604;
    flex: none;
    z-index: 1;
  }

  .contacts-map-panel__embed iframe,
  .contacts-map-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }

  .contacts-locations-card {
    position: relative;
    left: auto;
    top: auto;
    z-index: 2;
    width: 100%;
    max-width: none;
    max-height: none;
    height: auto;
    margin-top: 0;
    border-radius: 0 0 24px 24px;
    border-top: 1px solid #e7e4e7;
    box-shadow: none;
    overflow-y: visible;
  }
}

/* ── Simple page (Risks / Privacy) — Figma 8612:5094 ───────────── */
.simple-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(var(--coffee-site-header-offset, 72px) + 20px) 40px 80px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 28px;
  /* Не успадковувати body color: #d7d0d7 (під хедер) — глобальні h1 мають color: inherit */
  background-color: #fafafa;
  color: #1d161e;
}

.simple-page__header {
  padding: 32px 0 0;
  width: 100%;
  background-color: #fafafa;
  color: #1d161e;
}

.simple-page__title {
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1;
  font-weight: 400;
  color: #1d161e;
}

/* Специфічність вище за глобальні `h1 { color: inherit }` (WP overrides) */
h1.simple-page__title {
  color: #1d161e !important;
}

.simple-page__wrap {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e7e4e7;
  border-radius: 24px;
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
  padding: 32px 20px;
}

.simple-page__content.entry-content {
  max-width: none;
  margin: 0;
  padding: 0;
  color: #594c5b;
}

.simple-page__content > *:first-child {
  margin-top: 0 !important;
}

.simple-page__content p {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  color: #594c5b;
}

.simple-page__content p:last-child {
  margin-bottom: 0;
}

.simple-page__content h2 {
  margin: 24px 0 12px;
  font-size: 30px;
  line-height: 36px;
  font-weight: 500;
  color: #1d161e;
}

.simple-page__content h2:first-child {
  margin-top: 0;
}

.simple-page__content h3 {
  margin: 24px 0 12px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  color: #1d161e;
}

.simple-page__content h3:first-child {
  margin-top: 0;
}

.simple-page__content h2 + p,
.simple-page__content h3 + p {
  margin-top: 0;
}

.simple-page__content ul,
.simple-page__content ol {
  margin: 0 0 12px;
  padding-left: 1.35em;
  font-size: 18px;
  line-height: 28px;
  color: #594c5b;
}

.simple-page__content li {
  margin-bottom: 8px;
}

.simple-page__content a {
  color: #f54900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.simple-page__content a:hover {
  color: #cc3a00;
}

.simple-page__content .wp-block-separator {
  margin: 24px 0;
  border-color: #e7e4e7;
}

.simple-page__pages {
  margin-top: 24px;
  font-size: 16px;
  line-height: 24px;
  color: #594c5b;
}

.simple-page__page-link {
  margin-right: 8px;
}

@media (max-width: 1023px) {
  .simple-page {
    padding: calc(var(--coffee-site-header-offset, 72px) + 16px) 20px 60px;
    gap: 24px;
  }

  .simple-page__header {
    padding: 24px 0 0;
  }

  .simple-page__wrap {
    padding: 24px 16px;
  }
}

/* Desktop Wide */
@media (min-width: 1800px) {

  .header-inner {
    max-width: 1600px;
  }

  .footer-body {
    max-width: 1600px;
  }

  .middle-container {
    top: 200px;
  }
  
  .middle-container::before {
    content: "";
    position: absolute;
    top: clamp(-200px, -16vw, -40px);
    left: -42px;
    width: 107%;
    height: 1500px;
    background: url('../images/cup-bg-wide.png') no-repeat top center / cover;
    pointer-events: none;
    /* Below all sections: absolute pseudo was painting above in-flow headings */
    z-index: 0;
  }

  .hero__wrapper {
    display: block;
    position: relative;
    width: 100%;
    height: 625px;
    z-index: 1;
  }
  
  .hero__left-svg {
    display: block;
    position: absolute;
    top: 63px;
    left: calc(50% - 1237px);
    pointer-events: none;
    z-index: 25;
  }
  
  .hero__right-svg {
    display: block;
    position: absolute;
    top: 63px;
    right: calc(50% - 1237px);
    pointer-events: none;
    z-index: 25;
  }

  .hero__content {
    max-width: 1600px;
  }

  .site-main > .middle-container {
    margin-bottom: 200px !important;
  }

  .section__inner {
    max-width: 1600px;
  }

  .journey-section {
    padding: 60px 40px 350px;
  }

}