/* =========================================================================
   Advanced Concrete Construction, LLC
   1. Tokens & reset          8.  Clients
   2. Layout & typography     9.  Quote band
   3. Buttons                 10. Split sections & galleries
   4. Header & navigation     11. Contact & form
   5. Hero                    12. Footer, to-top, lightbox
   6. About & stats           13. Legal pages
   7. Service cards           14. Reveal & responsive
   ========================================================================= */

/* ---------------------------------- 1 ---------------------------------- */
:root {
  --dark:        #252a34;
  --dark-soft:   #2f3641;
  --text:        #51565f;
  --muted:       #8ca0b4;
  --accent:      #ff8a00;
  --accent-dark: #e57b00;
  --line:        #e2e7ec;
  --bg:          #ffffff;
  --bg-alt:      #f5f7f9;
  --danger:      #d64545;
  --success:     #2f9e5f;

  --container: 1200px;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 18px 40px rgba(37, 42, 52, .10);
  --shadow-sm: 0 6px 18px rgba(37, 42, 52, .08);
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --header-h:  128px;
}

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

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

body {
  margin: 0;
  font-family: 'Montserrat', 'Segoe UI', Arial, Helvetica, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

/* keep the [hidden] attribute authoritative over the layout rules below */
[hidden] { display: none !important; }

a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-dark); }

button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.01em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

address { font-style: normal; }

.svg-sprite { display: none; }

.ic {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

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

/* ---------------------------------- 2 ---------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  position: relative;
  padding: 92px 0;
  background: var(--bg);
}

.section--light   { background: var(--bg-alt); }
.section--tight   { padding-bottom: 26px; }
.section--top-0   { padding-top: 0; }

.section--clients { background: #fff; }

/* pattern overlay — the background colour comes from .section / .section--light */
.section--pattern { overflow: hidden; }
.section--pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/bg-top-layer.png');
  background-size: 1400px auto;
  background-repeat: repeat;
  mix-blend-mode: multiply;
  opacity: .5;
  pointer-events: none;
}
.section--pattern > .container { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow--light { color: var(--accent); }

.section-title {
  font-size: clamp(27px, 3.2vw, 42px);
  margin-bottom: .5em;
}
.section-title--light { color: #fff; }

.section-lead {
  max-width: 62ch;
  font-size: 17px;
  color: var(--text);
}

.section-head { margin-bottom: 48px; max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }

.checklist { margin: 0 0 26px; display: grid; gap: 12px; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--dark);
  font-weight: 500;
}
.checklist .ic { color: var(--accent); margin-top: 4px; }

/* ---------------------------------- 3 ---------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .18s var(--ease),
              box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 138, 0, .28);
}
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn--ghost {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--dark); }

.btn--dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn--dark:hover { background: #10141b; color: #fff; }

.btn--lg    { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }

.btn[disabled] { opacity: .7; pointer-events: none; }

.btn__spinner { display: none; width: 18px; height: 18px; }
.btn.is-loading .btn__spinner {
  display: block;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------- 4 ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: #fff;
  box-shadow: 0 2px 16px rgba(37, 42, 52, .08);
  transition: box-shadow .25s var(--ease);
}

.topbar {
  background: var(--dark);
  color: #cfd6de;
  font-size: 13.5px;
  transition: max-height .3s var(--ease), opacity .25s var(--ease);
  max-height: 60px;
  overflow: hidden;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 28px;
  padding-block: 9px;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cfd6de;
  font-weight: 500;
}
.topbar__item .ic { width: 16px; height: 16px; color: var(--accent); }
.topbar__item:hover { color: #fff; }

.header-main { background: #fff; }
.header-main__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 20px 8px;
}

.logo { display: block; transition: transform .25s var(--ease); }
.logo img {
  width: auto;
  height: 74px;
  transition: height .25s var(--ease);
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
}
.nav__link {
  position: relative;
  display: block;
  padding: 10px 14px;
  color: var(--dark);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--accent); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { display: none; }

.burger {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* shrink on scroll */
.site-header.is-scrolled .topbar { max-height: 0; opacity: 0; padding-block: 0; }
.site-header.is-scrolled .logo img { height: 52px; }
.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(37, 42, 52, .14); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(37, 42, 52, .55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.nav-overlay.is-visible { opacity: 1; }

/* ---------------------------------- 5 ---------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(76vh, 720px);
  padding: 96px 0;
  background: var(--dark);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(37, 42, 52, .62) 0%, rgba(37, 42, 52, .78) 55%, rgba(37, 42, 52, .92) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero__title {
  margin-bottom: .35em;
  color: #fff;
  font-size: clamp(32px, 5.2vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  text-align: center;
}
.hero__text {
  max-width: 60ch;
  color: #dfe5ec;
  font-size: clamp(16px, 1.3vw, 18px);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
  justify-content: center;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__badges li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #eef2f6;
  font-size: 14.5px;
  font-weight: 500;
}
.hero__badges .ic { width: 17px; height: 17px; color: var(--accent); }

/* ---------------------------------- 6 ---------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 24px 70px;
  align-items: start;
}
.about__head { position: relative; padding-left: 26px; }
.about__head::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--accent);
}
.about__head .section-title { margin-bottom: 26px; }
.about__head .checklist { margin-bottom: 0; }
.about__body { font-size: 16.5px; }
.about__cta { margin: 28px 0 0; }

/* stats strip — hairline rules instead of floating cards */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 72px 0 0;
  border-top: 1px solid var(--line);
}
.stats__item {
  padding: 30px 30px 6px 0;
  border-right: 1px solid var(--line);
}
.stats__item:last-child { border-right: 0; }
.stats__item + .stats__item { padding-left: 30px; }
.stats__num {
  margin: 0;
  color: var(--dark);
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}
.stats__num span { color: var(--accent); }
.stats__label {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  max-width: 24ch;
}

/* ---------------------------------- 7 ---------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  position: relative;
  padding: 40px 34px 38px;
  background: #fff;
  transition: background-color .3s var(--ease);
}
.service::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.service:hover::after { transform: scaleX(1); }

.service__num {
  position: absolute;
  top: 26px;
  right: 30px;
  color: #c7d0d9;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
}
.service__icon {
  display: block;
  margin-bottom: 26px;
  color: var(--dark);
  transition: color .3s var(--ease);
}
.service__icon .ic { width: 40px; height: 40px; stroke-width: 1.4; }
.service:hover .service__icon { color: var(--accent); }

.service__title {
  margin-bottom: .5em;
  font-size: 19px;
  font-weight: 700;
}
.service__text { margin: 0; color: var(--text); font-size: 15px; line-height: 1.65; }

/* ---------------------------------- 8 ---------------------------------- */
.clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px 26px;
}
.clients__item {
  flex: 0 1 calc(16.666% - 22px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
}
.clients__item img {
  width: auto;
  max-width: 158px;
  max-height: 74px;
  height: auto;
  transition: transform .25s var(--ease);
}
.clients__item:hover img { transform: scale(1.06); }
.clients__note {
  margin-top: 46px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

/* ---------------------------------- 9 ---------------------------------- */
.quote-band {
  position: relative;
  padding: 76px 0;
  background: var(--dark);
  color: #e7ecf1;
}
.quote-band--alt { background: var(--dark-soft); }
.quote-band__inner { display: block; }
.quote-band__body {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding-top: 54px;
  text-align: center;
}
.quote-band__body::before {
  content: '“';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
}
.quote-band__body p {
  margin-bottom: 26px;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 500;
  line-height: 1.55;
  color: #fff;
}
.quote-band__body footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.quote-band__body strong {
  color: var(--accent);
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.quote-band__body span { color: var(--muted); font-size: 14px; }

/* ---------------------------------- 10 --------------------------------- */
.split {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 60px;
  align-items: start;
}
.split--reverse .split__text  { order: 2; }
.split--reverse .split__media { order: 1; }
.split__text { padding-top: 6px; }

.gallery { display: grid; gap: 16px; }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery--3 { grid-template-columns: repeat(2, 1fr); }
/* three photos: two on top, one running the full width underneath */
.gallery--trio { grid-template-columns: repeat(2, 1fr); }
.gallery--trio .gallery__item:nth-child(3) { grid-column: 1 / -1; }
.gallery--trio .gallery__item:nth-child(3) .gallery__btn img { aspect-ratio: 16 / 9; }

.gallery__item { margin: 0; }
.gallery__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery__btn img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery__btn:hover img { transform: scale(1.06); }
.gallery__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 42, 52, .45);
  color: #fff;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.gallery__zoom .ic { width: 32px; height: 32px; }
.gallery__btn:hover .gallery__zoom,
.gallery__btn:focus-visible .gallery__zoom { opacity: 1; }
.gallery__caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.single-figure { margin: 0; }
.single-figure .gallery__btn img { aspect-ratio: 16 / 10; }

.wide-figure { margin: 54px 0 0; }
.wide-figure .gallery__btn img { aspect-ratio: 2 / 1; border-radius: var(--radius); }
.wide-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

/* ---------------------------------- 11 --------------------------------- */
.contact {
  background: var(--dark);
  color: #dfe5ec;
}
.contact .section-title { color: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: start;
}
.contact-info__text { max-width: 52ch; color: #c3ccd6; }
.contact-info__list { display: grid; gap: 20px; margin-top: 34px; }
.contact-info__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-info__list .ic { width: 22px; height: 22px; color: var(--accent); margin-top: 4px; }
.contact-info__list span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.contact-info__list a,
.contact-info__list address,
.contact-info__list p {
  margin: 2px 0 0;
  color: #fff;
  font-size: 16.5px;
  font-weight: 600;
}
.contact-info__list a:hover { color: var(--accent); }

.form-wrap {
  padding: 36px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 18px; }
.field__label {
  display: block;
  margin-bottom: 7px;
  color: var(--dark);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
}
.req { color: var(--accent); }

.field__input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcfd;
  color: var(--dark);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field__input::placeholder { color: #a9b3bd; }
.field__input:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 138, 0, .14);
}
.field__input--area { resize: vertical; min-height: 130px; }

select.field__input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%238ca0b4' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}

.field__error {
  display: none;
  margin-top: 6px;
  color: var(--danger);
  font-size: 12.5px;
  font-weight: 500;
}
.field.is-invalid .field__input { border-color: var(--danger); background: #fff7f7; }
.field.is-invalid .field__error { display: block; }

.field--check { margin-top: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.check__box {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
  color: transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.check__box .ic { width: 14px; height: 14px; }
.check input:checked + .check__box {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.check input:focus-visible + .check__box { outline: 3px solid var(--accent); outline-offset: 2px; }
.check__text { font-size: 13.5px; line-height: 1.55; color: var(--text); }

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__note { margin: 14px 0 0; color: var(--muted); font-size: 12.5px; }

.form__result {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
}
.form__result--ok {
  background: rgba(47, 158, 95, .10);
  border: 1px solid rgba(47, 158, 95, .35);
  color: #1f7a48;
}
.form__result--error {
  background: rgba(214, 69, 69, .08);
  border: 1px solid rgba(214, 69, 69, .32);
  color: #b03535;
}

/* ---------------------------------- 12 --------------------------------- */
.site-footer {
  padding: 72px 0 26px;
  background: #1c2129;
  color: #a9b4c0;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr .9fr .9fr;
  gap: 44px;
}
.footer-logo {
  display: inline-block;
  padding: 12px 16px;
  margin-bottom: 18px;
  background: #fff;
  border-radius: var(--radius-sm);
}
.footer-logo img { height: 64px; width: auto; }
.footer-about { max-width: 46ch; line-height: 1.75; }

.footer-title {
  margin-bottom: 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-contacts { display: grid; gap: 16px; }
.footer-contacts li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contacts .ic { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.footer-contacts a { color: #e3e9ef; font-weight: 500; }
.footer-contacts a:hover { color: var(--accent); }

.footer-links { display: grid; gap: 10px; }
.footer-links a { color: #a9b4c0; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  font-size: 13.5px;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #a9b4c0; }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom__legal { display: flex; gap: 10px; align-items: center; }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 138, 0, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.to-top .ic { transform: rotate(-90deg); }
.to-top:hover { color: #fff; background: var(--accent-dark); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: rgba(20, 24, 30, .93);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; max-width: 1100px; text-align: center; }
.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
}
.lightbox__caption { margin-top: 14px; color: #cfd6de; font-size: 14px; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--accent); border-color: var(--accent); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev .ic { transform: rotate(180deg); }

/* ---------------------------------- 13 --------------------------------- */
.page-hero {
  padding: 62px 0 54px;
  background: var(--dark);
  color: #cfd6de;
}
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); margin-bottom: .3em; }
.page-hero p { margin: 0; color: var(--muted); font-size: 14.5px; }
.breadcrumbs { margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

.legal { padding: 64px 0 88px; }
.legal__layout { display: grid; grid-template-columns: 260px 1fr; gap: 54px; align-items: start; }

.legal__toc {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 24px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.legal__toc h2 {
  margin-bottom: 14px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal__toc ol { margin: 0; padding: 0 0 0 18px; display: grid; gap: 9px; font-size: 14px; }
.legal__toc a { color: var(--text); font-weight: 500; }
.legal__toc a:hover { color: var(--accent); }

.legal__content { max-width: 78ch; }
.legal__content h2 {
  margin-top: 44px;
  padding-top: 8px;
  font-size: 22px;
}
.legal__content h2:first-child { margin-top: 0; }
.legal__content h3 { margin-top: 26px; font-size: 17px; }
.legal__content ul { margin: 0 0 1.1em; padding-left: 20px; list-style: disc; }
.legal__content ul li { margin-bottom: 8px; }
.legal__content .meta {
  padding: 16px 20px;
  margin-bottom: 30px;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
}
.legal__content address { margin: 8px 0 0; line-height: 1.8; }

/* ---------------------------------- 14 --------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---- ≤ 1200px ---- */
@media (max-width: 1200px) {
  .section { padding: 78px 0; }
  .split,
  .about,
  .contact-grid { gap: 24px 44px; }
  .clients__item { flex-basis: calc(20% - 21px); }
}

/* ---- ≤ 1024px ---- */
@media (max-width: 1024px) {
  :root { --header-h: 112px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .split,
  .about,
  .contact-grid,
  .legal__layout { grid-template-columns: 1fr; }
  .split--reverse .split__text,
  .split--reverse .split__media { order: 0; }
  .about__head { padding-left: 20px; }
  .stats { margin-top: 54px; }
  .stats__item { padding-right: 20px; }
  .stats__item + .stats__item { padding-left: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .legal__toc { position: static; }
}

/* ---- ≤ 900px: mobile navigation ---- */
@media (max-width: 900px) {
  :root { --header-h: 104px; }

  .burger { display: block; }

  .header-main__inner { padding: 10px 20px; }
  .logo img { height: 58px; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 130;
    width: min(330px, 86vw);
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 86px 24px 32px;
    background: var(--dark);
    box-shadow: -20px 0 50px rgba(0, 0, 0, .3);
    transform: translateX(105%);
    transition: transform .32s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; gap: 2px; align-items: stretch; }
  .nav__link {
    padding: 14px 10px;
    color: #e7ecf1;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .nav__link::after { display: none; }
  .nav__cta { display: inline-flex; margin-top: 22px; }

  .topbar__item--hide-sm { display: none; }
  .topbar__inner { justify-content: center; }

  .hero { min-height: auto; padding: 72px 0 66px; }
  .quote-band__body { padding-top: 46px; }
  .clients__item { flex-basis: calc(25% - 20px); }
  .form-wrap { padding: 26px 22px; }
}

/* ---- ≤ 640px ---- */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .section { padding: 58px 0; }
  .section--tight { padding-bottom: 18px; }
  .section-head { margin-bottom: 32px; }

  .services,
  .form__row { grid-template-columns: 1fr; }

  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 42px; }
  .stats__item {
    padding: 24px 18px 6px 0;
    border-bottom: 1px solid var(--line);
  }
  .stats__item:nth-child(2n) { border-right: 0; padding-left: 18px; }
  .stats__item:nth-child(2n+1) { padding-left: 0; }
  .stats__item:nth-last-child(-n+2) { border-bottom: 0; }

  .gallery--2,
  .gallery--3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery__caption { font-size: 12px; }

  .clients { gap: 26px 20px; }
  .clients__item { flex-basis: calc(33.333% - 14px); min-height: 72px; }
  .clients__item img { max-height: 62px; }

  .hero__actions .btn { width: 100%; }
  .hero__badges { gap: 10px 18px; }

  .service { padding: 30px 24px 28px; }
  .service__icon { margin-bottom: 18px; }
  .service__icon .ic { width: 34px; height: 34px; }
  .quote-band { padding: 56px 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .wide-figure { margin-top: 34px; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

/* ---- ≤ 400px ---- */
@media (max-width: 400px) {
  .clients__item { flex-basis: calc(50% - 10px); }
  .logo img { height: 50px; }
  .gallery--2,
  .gallery--3 { gap: 8px; }
}

@media print {
  .site-header, .site-footer, .to-top, .lightbox, .hero__actions { display: none !important; }
  body { color: #000; }
}
