@charset "UTF-8";
/*
 * Brama Capital — базові стилі теми.
 *
 * Макет експортовано з Figma з інлайновими стилями та абсолютним позиціюванням.
 * Тут вони переписані в токени + класи: так верстка тримає адаптив (макетів мобілки
 * немає), не роздуває HTML і не заважає CWV. Візуальна концепція збережена.
 */

/* ---------------------------------------------------------------- tokens -- */

:root {
  /*
   * Поверхні. У макеті фон сторінки світліший за картки:
   * body — #F3F4F1, картки й «пігулки» — #EDEBE7. Не плутати.
   */
  --c-page: #f3f4f1;
  --c-bg: #edebe7;
  --c-surface: #f3f4f1;
  --c-surface-alt: #fcfcfd;
  --c-ink: #141414;
  --c-ink-2: #262626;
  --c-body: #474747;
  --c-muted: #7e7e7e;
  --c-muted-2: #a4a4a4;
  --c-line: #cdceca;
  --c-line-strong: #a4a4a4;

  /* Акценти */
  --c-accent: #91632f;
  --c-accent-soft: #bf9257;
  --c-accent-pale: #decaaa;
  --c-navy: #051b30;
  --c-navy-hover: #0a2b4d;
  --c-on-dark: #f8f8f8;

  /* Типографіка */
  --f-display: "Brygada 1918", Georgia, "Times New Roman", serif;
  --f-ui: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Сітка */
  --container: 1400px;
  --gutter: 28px;
  --radius-pill: 45px;
  --radius-md: 8px;

  /* Ритм */
  --section-y: 96px;
  --header-h: 144px;
  --header-h-compact: 91px;

  /* Тіні з макета */
  --shadow-cta: 0 87px 35px rgba(0, 0, 0, 0.01), 0 49px 29px rgba(0, 0, 0, 0.05),
    0 22px 22px rgba(0, 0, 0, 0.09), 0 5px 12px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 24px 60px -30px rgba(0, 0, 0, 0.18);
}

@media (max-width: 1023px) {
  :root {
    --gutter: 20px;
    --section-y: 64px;
    --header-h: 80px;
    --header-h-compact: 80px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --section-y: 48px;
  }
}

/* ----------------------------------------------------------------- reset -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--c-page);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Видима фокус-рамка — вимога доступності, макет її не описує. */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--c-navy);
  color: #fff;
  border-radius: var(--radius-md);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 8px;
}

[hidden] {
  display: none !important;
}

/* Alpine: сховати шаблон до ініціалізації, щоб не блимав розгорнутий стан. */
[x-cloak] {
  display: none !important;
}

/* ------------------------------------------------------------ typography -- */

.h-display,
.h1,
.h2,
.h3 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(38px, 5.2vw, 76px);
}

.h1 {
  font-size: clamp(34px, 4.4vw, 64px);
}

.h2 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.h3 {
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
  flex: 0 0 auto;
}

.lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--c-body);
  text-wrap: pretty;
}

/* -------------------------------------------------------------- layout ---- */

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

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: calc(var(--section-y) * 0.6);
}

.stack {
  display: flex;
  flex-direction: column;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

@media (max-width: 1023px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn--primary {
  background: var(--c-navy);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--c-navy-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--c-line-strong);
  color: var(--c-ink);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--c-ink);
  background: rgba(255, 255, 255, 0.4);
}

.btn--light {
  background: rgba(243, 244, 241, 0.9);
  color: var(--c-ink);
}

.btn--light:hover {
  background: #fff;
}

/* Кремова кнопка «Дивитися ще» — з блогу та секції відгуків. */
.btn--cream {
  min-height: 56px;
  padding-inline: 28px;
  background: #f9f6ef;
  box-shadow: inset 0 0 0 1px rgba(179, 131, 77, 0.57), 0 22px 22px rgba(0, 0, 0, 0.03), 0 5px 12px rgba(0, 0, 0, 0.1);
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--c-ink);
}

.btn--cream:hover,
.btn--cream:focus-visible {
  background: #fff;
}

.btn--block {
  width: 100%;
}

/* -------------------------------------------------------------- header ---- */

.site-header {
  position: relative;
  z-index: 90;
  font-family: var(--f-ui);
}

/* Прозорий варіант — лежить поверх геро-зображення. */
.site-header--hero {
  position: absolute;
  inset: 0 0 auto;
  background: transparent;
}

.site-header--compact {
  background: var(--c-page);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.site-header--compact .site-header__bar {
  min-height: var(--header-h-compact);
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-header__logo img {
  width: auto;
  height: 58px;
  object-fit: contain;
}

.site-header__logo-text {
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Навігація */

.site-nav {
  flex: 1 1 auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 40px);
}

.site-nav__list a {
  display: block;
  padding: 6px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.12;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-header--hero .site-nav__list a {
  color: var(--c-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.site-header--hero .site-nav__list a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.site-header--compact .site-nav__list a {
  color: var(--c-ink);
}

.site-header--compact .site-nav__list a:hover,
.site-nav__list .current-menu-item > a {
  color: var(--c-accent);
}

/* Скляна «пігулка» з телефоном і CTA — тільки в hero-варіанті. */

.site-header__pill {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 0 0 auto;
  padding: 8px 13px 8px 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 65px;
  background: rgba(243, 244, 241, 0.48);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 1.25;
  color: var(--c-ink);
  white-space: nowrap;
}

.site-header__phone svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--c-navy);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 0 0 auto;
  margin-left: auto;
}

/* У компактній шапці кнопка дрібніша за загальну (193×36 у макеті). */
.site-header--compact .site-header__actions .btn {
  min-height: 36px;
  padding: 10px 16px;
  font-size: 12px;
  box-shadow: none;
}

.site-header__phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--c-navy);
  transition: background 0.2s ease;
}

.site-header__phone-icon:hover {
  background: rgba(5, 27, 48, 0.08);
}

.site-header__phone-icon svg {
  width: 24px;
  height: 24px;
}

/* Бургер */

.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(243, 244, 241, 0.64);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  flex: 0 0 auto;
}

.site-header--compact .burger {
  background: var(--c-bg);
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-navy);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Мобільна шухляда */

.mobile-nav {
  position: absolute;
  inset: 100% 0 auto;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px var(--gutter) 24px;
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line-strong);
  box-shadow: 0 22px 22px rgba(0, 0, 0, 0.09);
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 8px;
  font-size: 16px;
  color: var(--c-ink);
}

.mobile-nav .current-menu-item > a {
  color: var(--c-accent);
}

.mobile-nav svg {
  width: 20px;
  height: 20px;
}

.mobile-nav .btn {
  margin-top: 8px;
  min-height: 52px;
}

@media (max-width: 1439px) {
  .site-header__pill {
    margin-left: auto;
    gap: 20px;
    padding-left: 20px;
  }

  .site-nav__list {
    justify-content: flex-start;
  }

  .site-header__logo img {
    height: 52px;
  }
}

/*
 * Між 1024 і 1199 меню ще на місці, а «пігулка» вже не влазить: вона
 * flex: 0 0 auto і не стискається, тож рядок шапки виїжджав за екран і давав
 * горизонтальний скрол (до 146 px на 1024). Ховаємо номер текстом, лишаючи
 * іконку-посилання: телефон нікуди не дівається, а CTA не ріжеться.
 */
@media (max-width: 1199px) {
  .site-header__pill {
    gap: 12px;
    padding-left: 12px;
  }

  .site-header__phone span {
    display: none;
  }
}

@media (max-width: 1023px) {
  .site-nav,
  .site-header__pill,
  .site-header__actions {
    display: none;
  }

  .burger {
    display: flex;
  }

  .site-header__bar {
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .site-header__logo img {
    height: 44px;
  }
}

/* -------------------------------------------------------------- footer ---- */

.site-footer {
  background: var(--c-bg);
  border-top: 1px solid var(--c-line-strong);
  padding-block: 56px 40px;
  font-family: var(--f-ui);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 43px;
}

.site-footer__menus {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
}

.site-footer__menus > * {
  flex: 1 1 200px;
  min-width: 0;
}

.site-footer__menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__menu a {
  padding-inline: 6px;
  font-size: 16px;
  line-height: 1.25;
  color: var(--c-ink);
  transition: color 0.2s ease;
}

.site-footer__menu a:hover {
  color: var(--c-accent);
}

.site-footer__brand {
  font-family: var(--f-display);
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.05em;
  color: var(--c-ink-2);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Смуга контактів */

.site-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: inset 0 0 0 1px rgba(164, 164, 164, 0.49);
}

.site-footer__contact {
  display: flex;
  align-items: center;
  flex: 1 1 300px;
  gap: 4px;
  padding: 16px;
  border-radius: 65px;
  transition: background 0.2s ease;
}

.site-footer__contact:hover {
  background: rgba(255, 255, 255, 0.45);
}

.site-footer__contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-width: 64px;
  height: 64px;
  border-radius: 50%;
  color: var(--c-ink);
}

.site-footer__contact-icon svg {
  width: 24px;
  height: 24px;
}

.site-footer__contact-text {
  display: flex;
  flex-direction: column;
  padding-inline: 16px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--c-ink);
  min-width: 0;
}

.site-footer__contact-text strong {
  font-weight: 700;
}

/* Нижній рядок */

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 45px;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--c-muted);
}

.site-footer__legal a {
  transition: color 0.2s ease;
}

.site-footer__legal a:hover {
  color: var(--c-ink);
}

.site-footer__legal-sep {
  width: 1px;
  height: 12px;
  background: var(--c-line-strong);
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--c-ink);
  transition: opacity 0.2s ease, background 0.2s ease;
}

.social-list a:hover {
  opacity: 0.65;
  background: rgba(255, 255, 255, 0.5);
}

.social-list svg {
  width: 21px;
  height: 21px;
}

@media (max-width: 1023px) {
  .site-footer__menus > * {
    flex-basis: 45%;
  }
}

@media (max-width: 640px) {
  .site-footer__inner {
    gap: 28px;
  }

  .site-footer__menus > * {
    flex-basis: 100%;
  }

  .site-footer__contact {
    padding: 12px;
  }

  .site-footer__contact-icon {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .site-footer__contact-text {
    font-size: 16px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 24px;
  }
}
