/* =============================================================
   RB Construction — rbconstruction.online
   Palette taken from the brand logo:
   cream #F9F3E7 · deep cocoa #503320 · relief tones cacao/sand
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --cream:       #F9F3E7;
  --cream-soft:  #FCF8F0;
  --cream-deep:  #F2E9D9;
  --cocoa:       #503320;
  --cocoa-dark:  #2E1D11;
  --cocoa-800:   #3A2515;
  --cocoa-600:   #6B4A31;
  --cocoa-400:   #9A7A5B;
  --sand:        #C9A87C;
  --sand-soft:   #E3D2B6;
  --gold:        #B98A4B;

  --ink:         #2A1B10;
  --ink-soft:    #5C4632;
  --line:        rgba(80, 51, 32, .16);
  --line-strong: rgba(80, 51, 32, .28);
  --line-light:  rgba(249, 243, 231, .22);

  --white:       #fff;

  /* Type */
  --font-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1220px;
  --wrap-narrow: 860px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 2px 10px rgba(46, 29, 17, .06);
  --shadow-md: 0 18px 40px -22px rgba(46, 29, 17, .35);
  --shadow-lg: 0 40px 80px -40px rgba(46, 29, 17, .45);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 92px;

  --space-section: clamp(72px, 8vw, 132px);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: var(--cocoa); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--gold); }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--cocoa-dark);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.serif-italic { font-style: italic; font-weight: 500; color: var(--cocoa-600); }

::selection { background: var(--cocoa); color: var(--cream); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--cocoa); color: var(--cream); padding: 12px 20px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--cream); }

/* ---------- 3. Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 44px);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--space-section); position: relative; }
.section--tint { background: var(--cream-soft); border-block: 1px solid var(--line); }
.section--dark {
  background: linear-gradient(160deg, var(--cocoa-800), var(--cocoa-dark) 62%);
  color: rgba(249, 243, 231, .78);
}
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark .serif-italic { color: var(--sand); }
.section--dark .eyebrow { color: var(--sand); }
.section--dark .eyebrow::before { background: var(--sand); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cocoa-600);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--cocoa-400);
  flex: none;
}

.lead { font-size: 1.06rem; color: var(--ink-soft); }
.section--dark .lead { color: rgba(249, 243, 231, .82); }

.section-head { max-width: 720px; margin-bottom: clamp(44px, 5vw, 68px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head__lead { font-size: 1.05rem; }

.grid-2 { display: grid; gap: clamp(40px, 6vw, 88px); }
.grid-2--about  { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; }
.grid-2--commit { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), background-color .3s var(--ease),
              color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.22), rgba(255,255,255,0) 55%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.btn:hover::after { opacity: 1; }
.btn--solid {
  background: var(--cocoa);
  color: var(--cream);
  box-shadow: var(--shadow-md);
}
.btn--solid:hover {
  background: var(--cocoa-dark);
  color: var(--cream);
  transform: translateY(-2px);
}
.btn--ghost {
  border-color: rgba(80, 51, 32, .35);
  color: var(--cocoa);
}
.btn--ghost:hover { border-color: var(--cocoa); color: var(--cocoa-dark); background: rgba(80,51,32,.05); }
.btn--outline {
  border-color: var(--cocoa);
  color: var(--cocoa);
}
.btn--outline:hover { background: var(--cocoa); color: var(--cream); }
.section--dark .btn--ghost { border-color: var(--line-light); color: var(--cream); }
.section--dark .btn--ghost:hover { background: rgba(249,243,231,.1); color: var(--white); border-color: var(--sand); }

/* ---------- 5. Topbar ---------- */
.topbar {
  background: var(--cocoa-dark);
  color: rgba(249, 243, 231, .74);
  font-size: .78rem;
  letter-spacing: .04em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  flex-wrap: wrap;
}
.topbar__right { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.topbar__item { margin: 0; display: inline-flex; align-items: center; gap: 9px; }
.topbar__item a { color: rgba(249, 243, 231, .9); }
.topbar__item a:hover { color: var(--sand); }
.ico { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--sand); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 6. Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(249, 243, 231, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -22px rgba(46, 29, 17, .5);
  background: rgba(249, 243, 231, .97);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; flex: none; }
.brand__logo {
  width: clamp(126px, 13.5vw, 168px);
  height: auto;
  transition: transform .35s var(--ease);
}
.brand:hover .brand__logo { transform: scale(1.03); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative;
  font-size: .83rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--cocoa-600);
  padding-block: 6px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--cocoa-dark); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__cta { padding: 13px 24px; font-size: .76rem; }
.language-switcher { display: inline-flex; align-items: center; justify-content: space-between; gap: 3px; width: 112px; min-width: 112px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.lang-btn { border: 0; background: transparent; color: var(--cocoa-600); cursor: pointer; border-radius: 999px; padding: 5px 8px; font: 600 .68rem var(--font-body); letter-spacing: .08em; }
.lang-btn:hover, .lang-btn.is-active { background: var(--cocoa); color: var(--cream); }

.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 13px 11px;
  flex-direction: column;
  justify-content: space-between;
}
.burger span {
  display: block; height: 1.5px; width: 100%;
  background: var(--cocoa);
  transition: transform .35s var(--ease), opacity .3s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  padding-block: clamp(70px, 9vw, 120px);
  overflow: hidden;
  background: var(--cream-deep);
}
.hero__media { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(249,243,231,.97) 0%, rgba(249,243,231,.93) 34%, rgba(249,243,231,.62) 56%, rgba(249,243,231,.18) 78%, rgba(249,243,231,.05) 100%),
    linear-gradient(to top, rgba(249,243,231,.85), rgba(249,243,231,0) 45%);
}
.hero__inner { position: relative; z-index: 2; max-width: 720px; }
.hero__title { margin-bottom: 22px; }
.hero__lead { font-size: 1.08rem; max-width: 560px; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }

.hero__usp { display: grid; gap: 12px; max-width: 520px; }
.hero__usp li {
  display: flex; align-items: baseline; gap: 14px;
  font-size: .92rem;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.hero__usp-num {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .06em;
  flex: none;
}

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  width: 22px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute;
  left: 50%; top: 8px;
  width: 3px; height: 8px;
  border-radius: 2px;
  background: var(--cocoa-400);
  transform: translateX(-50%);
  animation: scrollDot 1.9s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { transform: translate(-50%, 0);    opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translate(-50%, 16px); opacity: 0; }
}

/* ---------- 8. Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--cocoa);
  color: rgba(249, 243, 231, .86);
  padding-block: 16px;
  border-block: 1px solid rgba(0,0,0,.15);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 42s linear infinite;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: .06em;
  font-style: italic;
}
.marquee__track i { width: 5px; height: 5px; background: var(--sand); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- 9. About ---------- */
.about__media { position: relative; }
.about__img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about__media::before {
  content: "";
  position: absolute;
  inset: -18px -18px auto auto;
  width: 46%; height: 46%;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  border-radius: 0 var(--radius) 0 0;
}
.about__badge {
  position: absolute;
  right: clamp(-16px, -1.5vw, 0px);
  bottom: -26px;
  background: var(--cocoa);
  color: var(--cream);
  padding: 18px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  min-width: 190px;
}
.about__badge-top { display: block; font-size: .64rem; letter-spacing: .24em; color: var(--sand); }
.about__badge strong { display: block; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .04em; }
.about__badge-sub { display: block; font-size: .7rem; color: rgba(249,243,231,.7); }

.divider { display: flex; align-items: center; gap: 10px; margin: 30px 0; max-width: 240px; }
.divider__line { flex: 1; height: 1px; background: var(--line-strong); }
.divider__diamond { width: 9px; height: 9px; border: 1px solid var(--cocoa-400); transform: rotate(45deg); flex: none; }
.divider--light { max-width: 200px; }
.divider--light .divider__line { background: var(--line-light); }
.divider--light .divider__diamond { border-color: var(--sand); }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 0 0 32px;
  border-radius: var(--radius);
  overflow: hidden;
}
.fact { background: var(--cream); padding: 16px 18px; }
.fact dt {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cocoa-400);
  margin-bottom: 4px;
}
.fact dd { margin: 0; font-size: .88rem; color: var(--cocoa-dark); font-weight: 500; line-height: 1.5; }

/* ---------- 10. Services ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.card {
  background: var(--cocoa-800);
  padding: clamp(28px, 3vw, 40px);
  position: relative;
  transition: background-color .4s var(--ease), transform .4s var(--ease);
}
.card::before {
  content: "";
  position: absolute; left: 0; top: 0;
  height: 2px; width: 0;
  background: var(--sand);
  transition: width .5s var(--ease);
}
.card:hover { background: #432C1A; }
.card:hover::before { width: 100%; }
.card__ico { display: block; width: 44px; height: 44px; margin-bottom: 22px; }
.card__ico svg { width: 100%; height: 100%; fill: none; stroke: var(--sand); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 12px; font-size: 1.28rem; }
.card p { font-size: .93rem; margin-bottom: 18px; color: rgba(249,243,231,.72); }
.card__list { display: grid; gap: 8px; }
.card__list li {
  position: relative;
  padding-left: 18px;
  font-size: .85rem;
  color: rgba(249,243,231,.6);
}
.card__list li::before {
  content: "";
  position: absolute; left: 0; top: .68em;
  width: 6px; height: 6px;
  border: 1px solid var(--sand);
  transform: rotate(45deg) translateY(-50%);
}
.services-note {
  margin-top: 38px;
  max-width: 720px;
  font-size: .95rem;
  color: rgba(249,243,231,.62);
  border-left: 2px solid var(--sand);
  padding-left: 20px;
}

/* ---------- 11. Numbers ---------- */
.numbers { background: var(--cream-deep); border-bottom: 1px solid var(--line); }
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.number {
  background: var(--cream-deep);
  padding: 44px 26px;
  text-align: center;
}
.number strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  color: var(--cocoa);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 12px;
}
.number span { font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cocoa-600); }

/* ---------- 12. Projects ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}
.project {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--cocoa-800);
  box-shadow: var(--shadow-md);
}
.project img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .8s var(--ease), opacity .5s var(--ease);
}
.project:nth-child(2) img { aspect-ratio: 3 / 4; }
.project:hover img { transform: scale(1.05); opacity: .82; }
.project figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 24px 22px;
  background: linear-gradient(to top, rgba(46,29,17,.94), rgba(46,29,17,.6) 55%, rgba(46,29,17,0));
  color: var(--cream);
  transform: translateY(8px);
  transition: transform .5s var(--ease);
}
.project:hover figcaption { transform: translateY(0); }
.project__tag {
  display: inline-block;
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sand);
  border: 1px solid rgba(201,168,124,.5);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.project h3 { color: var(--cream); font-size: 1.16rem; margin-bottom: 4px; }
.project p { font-size: .84rem; color: rgba(249,243,231,.72); margin: 0; }

/* ---------- 13. Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 34px;
  border-top: 1px solid var(--line-strong);
}
.step__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-style: italic;
  color: var(--sand);
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}
.step h3 { font-size: 1.14rem; margin-bottom: 10px; }
.step p { font-size: .92rem; margin: 0; }
.step::after {
  content: "";
  position: absolute;
  top: -4.5px; left: 0;
  width: 9px; height: 9px;
  background: var(--cream-soft);
  border: 1px solid var(--cocoa-400);
  transform: rotate(45deg);
}

/* ---------- 14. Commitments ---------- */
.check-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.check-list li {
  background: var(--cream);
  padding: 20px 24px 20px 54px;
  position: relative;
  font-size: .94rem;
}
.check-list li strong { color: var(--cocoa-dark); font-weight: 600; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 22px; top: 25px;
  width: 12px; height: 7px;
  border-left: 1.6px solid var(--gold);
  border-bottom: 1.6px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------- 15. Audience ---------- */
.audience { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 3vw, 38px); }
.audience__item { padding-top: 24px; border-top: 1px solid var(--line-light); }
.audience__item h3 { font-size: 1.14rem; margin-bottom: 10px; }
.audience__item p { font-size: .9rem; color: rgba(249,243,231,.68); margin: 0; }

/* ---------- 16. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.16rem;
  color: var(--cocoa-dark);
  transition: color .3s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--cocoa-400);
  border-bottom: 1.5px solid var(--cocoa-400);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .35s var(--ease);
  flex: none;
}
.faq__item[open] summary { color: var(--gold); }
.faq__item[open] summary::after { transform: rotate(225deg) translateY(0); }
.faq__body { padding: 0 0 24px; max-width: 92%; }
.faq__body p { font-size: .95rem; margin: 0; }

/* ---------- 17. CTA band ---------- */
.cta-band {
  background: var(--cocoa);
  color: rgba(249,243,231,.82);
  padding-block: clamp(48px, 6vw, 72px);
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--cream); font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: 8px; max-width: 620px; }
.cta-band p { margin: 0; max-width: 520px; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn--solid { background: var(--cream); color: var(--cocoa-dark); }
.cta-band .btn--solid:hover { background: var(--white); color: var(--cocoa-dark); }
.cta-band .btn--ghost { border-color: var(--line-light); color: var(--cream); }
.cta-band .btn--ghost:hover { background: rgba(249,243,231,.1); color: var(--white); }

/* ---------- 18. Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(34px, 4vw, 56px); align-items: start; }

.form {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 42px);
  box-shadow: var(--shadow-sm);
}
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cocoa-600);
  margin-bottom: 8px;
  font-weight: 600;
}
.field label span { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23503320' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cocoa-400);
  box-shadow: 0 0 0 3px rgba(201,168,124,.28);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(92,70,50,.42); }
.field--check { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.field--check input { width: 20px; height: 20px; flex: none; margin-top: 3px; accent-color: var(--cocoa); }
.field--check label {
  margin: 0; font-size: .84rem; letter-spacing: 0; text-transform: none;
  color: var(--ink-soft); font-weight: 400; line-height: 1.6; flex: 1 1 240px;
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #A8412F; background: #FDF6F4; }
.field__error { margin: 6px 0 0; font-size: .78rem; color: #A8412F; min-height: 0; }
.field__error:empty { display: none; }
.form__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.form__status { font-size: .9rem; margin: 0 0 10px; color: var(--gold); font-weight: 500; }
.form__status:empty { display: none; }
.form__hint { font-size: .78rem; color: var(--cocoa-400); margin: 0; }

.contact__aside { display: grid; gap: 22px; }
.info-card, .legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  background: var(--cream-soft);
}
.info-card h3, .legal-card h3 { font-size: 1.1rem; margin-bottom: 16px; }
.info-list { display: grid; gap: 16px; }
.info-list li { font-size: .92rem; color: var(--cocoa-dark); line-height: 1.6; }
.info-list__label {
  display: block;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cocoa-400);
  margin-bottom: 3px;
}
.legal-list { display: grid; gap: 0; }
.legal-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .84rem;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.legal-list li:last-child { border-bottom: 0; }
.legal-list span { color: var(--cocoa-400); flex: none; }
.legal-list strong { color: var(--cocoa-dark); text-align: right; font-weight: 500; }

.map { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--cream-deep); }
.map iframe { display: block; width: 100%; height: 260px; border: 0; filter: sepia(.22) saturate(.85) contrast(1.02); }
.map__link {
  display: block;
  text-align: center;
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px;
  background: var(--cream-soft);
  border-top: 1px solid var(--line);
}

/* ---------- 19. Footer ---------- */
.footer {
  background: var(--cocoa-dark);
  color: rgba(249,243,231,.62);
  padding-top: clamp(56px, 6vw, 84px);
  font-size: .9rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(30px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.footer__wordmark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.footer__wordmark .serif-italic { color: var(--sand); }
.footer__col h3 {
  font-family: var(--font-body);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 600;
  margin-bottom: 16px;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { color: rgba(249,243,231,.72); }
.footer__col a:hover { color: var(--sand); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid rgba(249,243,231,.12);
  font-size: .8rem;
}
.footer__bottom p { margin: 0; }
.footer__meta { display: flex; gap: 22px; }
.footer__meta a { color: rgba(249,243,231,.6); }

/* ---------- 20. To top + lightbox ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  color: var(--cocoa);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .35s var(--ease);
  z-index: 50;
  box-shadow: var(--shadow-md);
}
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--cocoa); color: var(--cream); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(23, 14, 8, .93);
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 60px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { margin: 0; max-width: 1100px; text-align: center; }
.lightbox__figure img {
  max-height: 76vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox__figure figcaption { color: rgba(249,243,231,.8); font-size: .88rem; margin-top: 18px; letter-spacing: .04em; }
.lightbox__close {
  position: absolute;
  top: 22px; right: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(249,243,231,.35);
  background: transparent;
  color: var(--cream);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.lightbox__close:hover { background: var(--cream); color: var(--cocoa-dark); }

/* ---------- 21. Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track, .hero__scroll span { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- 22. Responsive ---------- */
@media (max-width: 1080px) {
  :root { --header-h: 82px; }
  .grid-2--about, .grid-2--commit { grid-template-columns: 1fr; }
  .grid-2--about .about__media { max-width: 520px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: 1fr; }
  .contact__aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-card { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -30px rgba(46,29,17,.5);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px clamp(20px, 5vw, 40px) 30px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
    letter-spacing: .12em;
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--gold); }
  .nav__cta { margin-top: 26px; width: 100%; }
  .language-switcher { align-self: flex-start; margin-top: 22px; }
  .topbar__right { gap: 18px; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .hero { min-height: auto; padding-block: 64px 90px; }
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(249,243,231,.9) 0%, rgba(249,243,231,.82) 42%, rgba(249,243,231,.66) 100%),
      linear-gradient(100deg, rgba(249,243,231,.7), rgba(249,243,231,.15));
  }
  .hero__img { object-position: 68% 40%; }
  .hero__actions .btn { flex: 1 1 220px; }
  .hero__scroll { display: none; }
  .numbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects { grid-template-columns: 1fr; }
  .project img, .project:nth-child(2) img { aspect-ratio: 4 / 3; }
  .footer__grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .contact__aside { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .about__badge { right: 0; bottom: -18px; min-width: 168px; padding: 14px 18px; }
  .cta-band__actions .btn { width: 100%; }
  .topbar { font-size: .72rem; }
}

/* ---------- 23. Print ---------- */
@media print {
  .topbar, .header, .hero__media, .to-top, .lightbox, .marquee, .cta-band__actions { display: none; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
