/* BLife — prototype stylesheet.
   Palette: warm sand ground, graphite ink, deep sea teal accent.
   Display type: Fraunces (Latin) with Source Serif 4 as the Cyrillic-capable
   fallback in the same stack — per-glyph fallback avoids broken Cyrillic. */

:root {
  --sand: #faf7f2;
  --paper: #ffffff;
  --ink: #1b1f1d;
  --ink-soft: #4b524e;
  --ink-faint: #7a827c;
  --line: #e2dbd0;
  --line-soft: #ece6dc;
  /* Бренд balancehospitality.vn: зелень + золото */
  --sea: #088302;
  --sun: #e5b203;
  --grove: #4ba10b;

  --accent: var(--sea);
  --accent-tint: rgba(8, 131, 2, 0.08);

  /* Типографика сайта: Poppins */
  --serif: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Poppins", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --measure: 68ch;
  --shell: 1220px;
  --gutter: clamp(20px, 5vw, 72px);

  --step: clamp(56px, 8vw, 132px);
  --rule: 1px solid var(--line);
}

[data-accent="sun"] {
  --accent: var(--sun);
  --accent-tint: rgba(229, 178, 3, 0.12);
}
[data-accent="sea"] {
  --accent: var(--sea);
  --accent-tint: rgba(8, 131, 2, 0.08);
}
[data-accent="grove"] {
  --accent: var(--grove);
  --accent-tint: rgba(75, 161, 11, 0.10);
}

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

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

a { color: inherit; }

::selection { background: var(--accent); color: #fff; }

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

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

.section { padding-block: var(--step); }
.section--tight { padding-block: calc(var(--step) * 0.62); }
.section + .section { border-top: var(--rule); }

.measure { max-width: var(--measure); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
  display: block;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.08;
  margin: 0;
  font-optical-sizing: auto;
}

h1 {
  font-size: clamp(34px, 5.1vw, 60px);
  max-width: 24ch;
}

h2 {
  font-size: clamp(27px, 3.6vw, 40px);
  line-height: 1.14;
  max-width: 26ch;
}

h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.35;
}

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 26px 0 0;
}

.section-head { margin-bottom: clamp(38px, 5vw, 62px); }
.section-head .lead { margin-top: 18px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 15px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, opacity .22s ease;
  line-height: 1.2;
  text-align: center;
}

.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { opacity: .86; }

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

.btn--quiet {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 15px;
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
  padding-bottom: 3px;
}
.btn--quiet:hover { color: var(--accent); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  margin-top: 38px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: var(--rule);
}

.site-head__in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 70px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand svg { display: block; color: var(--accent); }
.brand__logo { display: block; height: 36px; width: auto; }
.brand__word {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  align-items: center;
}
.site-nav a {
  font-size: 14.5px;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.head-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex: none;
}
.site-nav + .head-tools { margin-left: 30px; }

.lang-btn {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.lang-btn:hover { border-color: var(--ink); }

.head-cta { padding: 11px 20px; font-size: 14px; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(46px, 6.5vw, 88px) 0; }

[id] { scroll-margin-top: 96px; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.hero__text { max-width: 52ch; }
.hero h1 { max-width: 18ch; }
.hero .lead { max-width: 44ch; margin-top: 24px; }
.hero .actions { margin-top: 34px; }

.hero__aside { align-self: start; padding-top: 8px; }
.hero__media {
  overflow: hidden;
  border-radius: 2px;
}
.hero__media img {
  width: 100%;
  height: clamp(240px, 34vw, 420px);
  object-fit: cover;
}
.hero__caption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.hero__rule {
  margin-top: clamp(46px, 6vw, 82px);
  border-top: var(--rule);
}

/* ---------- scenes: numbered editorial rows ---------- */

.scenes { border-top: var(--rule); }
.scene {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1.45fr);
  gap: clamp(18px, 3vw, 48px);
  padding-block: clamp(26px, 3vw, 38px);
  border-bottom: var(--rule);
  align-items: baseline;
}
.scene__num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  font-feature-settings: "tnum";
}
.scene__t { font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: -0.012em; }
.scene__d { margin: 0; color: var(--ink-soft); max-width: 56ch; }

/* ---------- pass cards ---------- */

.passes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: var(--rule);
}
.pass-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 42px) clamp(22px, 2.4vw, 36px) clamp(26px, 3vw, 38px);
  border-bottom: var(--rule);
  border-right: var(--rule);
  text-decoration: none;
  background: transparent;
  transition: background-color .25s ease;
}
.pass-card:first-child { border-left: var(--rule); }
.pass-card:hover { background: var(--paper); }
.pass-card__name {
  font-family: var(--serif);
  font-size: clamp(23px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.pass-card__aud {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--accent);
  letter-spacing: 0.005em;
}
.pass-card__lead {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
}
.pass-card__go {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pass-card__go svg { color: var(--accent); transition: transform .25s ease; }
.pass-card:hover .pass-card__go svg { transform: translateX(4px); }

/* ---------- value / list grids ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 58px) clamp(30px, 5vw, 78px);
}
.grid-2 > * { max-width: 46ch; }

.item__t { margin: 0 0 12px; }
.item__d { margin: 0; color: var(--ink-soft); }
.item__k {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* ---------- intl block ---------- */

.intl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 72px); }
.intl__list { list-style: none; margin: 0; padding: 0; }
.intl__list li {
  padding: 18px 0;
  border-top: var(--rule);
  color: var(--ink-soft);
  max-width: 48ch;
}
.intl__list li:last-child { border-bottom: var(--rule); }

/* ---------- honest block ---------- */

.honest { background: var(--paper); }
.honest__list { list-style: none; margin: 0; padding: 0; }
.honest__list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: var(--rule);
  color: var(--ink-soft);
  max-width: 74ch;
}
.honest__list li:first-child { border-top: var(--rule); }
.honest__list li span:first-child { color: var(--accent); font-family: var(--serif); font-size: 14px; }

/* ---------- faq ---------- */

.faq { border-top: var(--rule); max-width: 84ch; }
.faq__item { border-bottom: var(--rule); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: 0;
  padding: 24px 0;
  text-align: left;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.45;
}
.faq__q:hover { color: var(--accent); }
.faq__sign { position: relative; flex: none; width: 14px; height: 14px; margin-top: 6px; }
.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform .25s ease, opacity .25s ease;
}
.faq__sign::before { top: 6px; left: 0; width: 14px; height: 1px; }
.faq__sign::after { left: 6px; top: 0; width: 1px; height: 14px; }
.faq__item[data-open="true"] .faq__sign::after { transform: scaleY(0); opacity: 0; }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .28s ease;
}
.faq__a p {
  margin: 0;
  padding: 0 0 26px;
  color: var(--ink-soft);
  max-width: 64ch;
}

/* ---------- form ---------- */

.form-wrap { background: var(--paper); }
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.field { margin-bottom: 26px; }
.field__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field__row .field { margin-bottom: 26px; }

label, .field__label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin-bottom: 9px;
}

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 13px 14px;
  transition: border-color .2s ease, background-color .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
textarea { min-height: 104px; resize: vertical; line-height: 1.55; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%234b524e' stroke-width='1.2'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 38px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  background: var(--paper);
  outline: none;
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #a8442f; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--sans);
  font-size: 14px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--sand);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s ease;
  line-height: 1.3;
}
.chip:hover { border-color: var(--ink-faint); }
.chip[aria-pressed="true"] {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent);
}

.consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 4px 0 0;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.5;
}
.consent input {
  width: 18px; height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.err {
  display: block;
  min-height: 0;
  font-size: 12.5px;
  color: #a8442f;
  margin-top: 7px;
}
.err:empty { display: none; }

.form-submit { margin-top: 30px; }
.form-submit .btn { min-width: 210px; }

.form-grid--done { grid-template-columns: 1fr; }

.thanks { padding: clamp(10px, 2vw, 24px) 0; max-width: 60ch; }
.thanks .eyebrow { margin-bottom: 18px; }
.thanks h2 { margin-bottom: 18px; }
.thanks p { color: var(--ink-soft); max-width: 54ch; margin: 0 0 30px; }

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

.site-foot {
  border-top: var(--rule);
  padding-block: clamp(42px, 5vw, 70px) 34px;
  background: var(--sand);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 64px);
}
.foot__note { font-size: 13.5px; color: var(--ink-faint); line-height: 1.62; max-width: 68ch; margin: 0; }
.foot__team { font-size: 14px; color: var(--ink-soft); margin: 0 0 14px; max-width: 40ch; }
.foot__bottom {
  margin-top: clamp(30px, 4vw, 52px);
  padding-top: 20px;
  border-top: var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.foot-links a { text-decoration: none; color: var(--ink-faint); }
.foot-links a:hover { color: var(--accent); }

/* ---------- utility / service pages ---------- */

.plain { min-height: 62vh; display: flex; align-items: center; }
.plain__code {
  font-family: var(--serif);
  font-size: clamp(72px, 14vw, 150px);
  line-height: .9;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 30px; }
.count { font-size: 13.5px; color: var(--ink-faint); margin-left: auto; font-feature-settings: "tnum"; }

.table-scroll { overflow-x: auto; border: var(--rule); background: var(--paper); border-radius: 2px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; min-width: 1680px; }
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  line-height: 1.45;
  white-space: nowrap;
}
td:nth-child(9), td:nth-child(10) { white-space: normal; min-width: 200px; }
td:nth-child(10) { max-width: 280px; }
th {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  white-space: nowrap;
  background: var(--sand);
  position: sticky;
  top: 0;
}
td { color: var(--ink-soft); }
td:first-child, th:first-child { padding-left: 18px; }
tbody tr:last-child td { border-bottom: 0; }
.empty-note { padding: 40px 18px; color: var(--ink-faint); font-size: 14px; }

/* ---------- reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease;
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 42px; }
  .hero__text { max-width: 60ch; }
  .hero h1 { max-width: 20ch; }
  .hero__media img { height: clamp(210px, 40vw, 340px); }
  .passes { grid-template-columns: 1fr 1fr; }
  .pass-card:nth-child(3) { border-left: var(--rule); }
  .form-grid, .intl, .foot-grid { grid-template-columns: 1fr; }

}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-nav + .head-tools { margin-left: auto; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .scene { grid-template-columns: 34px minmax(0, 1fr); row-gap: 8px; }
  .scene__d { grid-column: 2; }
  .grid-2 { grid-template-columns: 1fr; }
  .passes { grid-template-columns: 1fr; border-left: var(--rule); }
  .pass-card { border-left: 0 !important; }
  .field__row { grid-template-columns: 1fr; gap: 0; }
  .head-cta { display: none; }
  .hero__text { max-width: none; }
  .hero h1 { max-width: 18ch; }
  .brand__logo { height: 30px; }
  .form-submit .btn, .thanks .btn { width: 100%; }
  .count { width: 100%; margin-left: 0; }
  .foot__bottom { flex-direction: column; }
  .foot-links { margin-left: 0; }
}

@media (min-width: 1440px) {
  :root { --shell: 1300px; }
}
