
:root {
  --header-h: 64px;
  --edge: 18px;
  --ink: #18211c;
  --muted: #59675e;
  --line: rgba(34, 48, 39, .14);
  --paper: #fffaf3;
  --sand: #f7f1e8;
  --green: #223027;
  --gold: #b98143;
  --gold-soft: rgba(185, 129, 67, .14);
  --shadow: 0 22px 58px rgba(24, 33, 28, .14);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  transition: background .24s ease, border-color .24s ease, box-shadow .24s ease, backdrop-filter .24s ease, height .24s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 246, 237, .94);
  border-bottom-color: rgba(34, 48, 39, .08);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(24, 33, 28, .12);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: 184px;
  height: 58px;
  object-fit: cover;
  object-position: center;
  transition: width .24s ease, height .24s ease, filter .24s ease, transform .24s ease;
}

.site-header.is-scrolled .brand__logo {
  width: 92px;
  height: 29px;
}

.site-header:not(.is-scrolled) .brand__logo {
  filter: brightness(0) invert(1);
}

.header-actions {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.menu-button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-button {
  width: 36px;
  height: 36px;
  padding: 0;
}

.menu-button span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, width .2s ease, background .24s ease;
}

.site-header:not(.is-scrolled) .menu-button span {
  background: #fff;
}

.menu-button span + span {
  margin-top: 6px;
}

.menu-button:hover span:nth-child(1) {
  transform: translateX(5px);
}

.menu-button:hover span:nth-child(2) {
  width: 22px;
}

.menu-button:hover span:nth-child(3) {
  transform: translateX(-5px);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
}

.drawer__shade {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 12, .48);
  opacity: 0;
  transition: opacity .2s ease;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: min(360px, 88vw);
  height: 100%;
  padding: 24px;
  background: var(--green);
  color: var(--paper);
  transform: translateX(100%);
  transition: transform .24s ease;
}

.drawer.open {
  pointer-events: auto;
}

.drawer.open .drawer__shade {
  opacity: 1;
}

.drawer.open .drawer__panel {
  transform: translateX(0);
}

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer__close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 250, 243, .22);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 28px;
  cursor: pointer;
}

.drawer nav {
  display: grid;
  gap: 16px;
}

.drawer nav a {
  color: var(--paper);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}

.drawer__contacts {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.drawer__contacts a {
  color: #d8ddd7;
  text-decoration: none;
}

main {
  min-height: 70vh;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 58px) 20px 78px;
  overflow: hidden;
  color: #fff;
  background: #1f2b25 center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(7, 12, 10, .72) 0%, rgba(7, 12, 10, .5) 43%, rgba(7, 12, 10, .18) 100%);
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
.title {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .96;
  letter-spacing: 0;
}

.hero p {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 250, 243, .88);
  font-size: 20px;
}

.hero__actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button--light {
  border-color: rgba(255, 250, 243, .7);
  background: var(--paper);
  color: var(--ink);
}

.button--outline {
  background: transparent;
  color: var(--green);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  width: min(680px, 100%);
  margin-top: 46px;
}

.stat {
  padding: 16px;
  border: 1px solid rgba(255, 250, 243, .22);
  border-radius: 8px;
  background: rgba(255, 250, 243, .08);
  backdrop-filter: blur(8px);
}

.stat strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 250, 243, .78);
  font-size: 14px;
}

.section {
  padding: 82px 20px;
}

.section--dark {
  background: var(--green);
  color: var(--paper);
}

.section--paper {
  background: var(--paper);
}

.wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 840px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.section--dark .section-head p {
  color: #d8ddd7;
}

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

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

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

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

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card__body {
  padding: 20px;
}

.card__meta {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}

.feature-list strong {
  display: block;
  margin-bottom: 6px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr);
  gap: 34px;
  align-items: center;
}

.media-frame {
  overflow: hidden;
  border-radius: 8px;
  background: #ded6cc;
}

.media-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 28px;
  font-weight: 700;
}

.price-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row strong:last-child {
  color: var(--gold);
}

.form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(34, 48, 39, .28);
  border-radius: 6px;
  padding: 0 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 112px;
  padding-top: 12px;
  resize: vertical;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--gold);
}

.form-status {
  min-height: 20px;
  color: var(--green);
  font-weight: 700;
}

.lead-panel {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.lead-panel h2,
.lead-panel p {
  margin: 0;
}

.lead-panel p {
  margin-top: 10px;
  color: var(--muted);
}

.lead-panel__top {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(260px, .55fr);
  gap: 24px;
  align-items: end;
}

.calc-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.calc-heading__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--paper);
  box-shadow: 0 14px 28px rgba(24, 33, 28, .16);
}

.calc-heading__icon svg {
  display: block;
  width: 29px;
  height: 29px;
}

.calc-heading .kicker {
  margin: 0 0 10px;
}

.lead-panel__note {
  padding: 18px;
  border-left: 2px solid var(--gold);
  background: var(--gold-soft);
  color: var(--green);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.calc-grid .field--wide {
  grid-column: span 2;
}

.calc-grid .field--full {
  grid-column: 1 / -1;
}

.calc-contact .field--full,
.calc-contact .calc-actions {
  grid-column: 1 / -1;
}

.calc-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 241, 232, .72);
}

.calc-contact[hidden] {
  display: none;
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.calc-actions .button {
  min-width: 220px;
}

.estimator-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.estimator-card .calc-heading {
  gap: 12px;
}

.estimator-card .calc-heading__icon {
  width: 46px;
  height: 46px;
}

.estimator-card .calc-heading__icon svg {
  width: 25px;
  height: 25px;
}

.lead-stack {
  display: grid;
  gap: 18px;
}

.estimator-card h3,
.estimator-card p {
  margin: 0;
}

.estimator-card p {
  color: var(--muted);
}

.estimator-output {
  display: grid;
  gap: 3px;
  padding: 18px;
  border-radius: 8px;
  background: var(--gold-soft);
}

.estimator-output strong {
  color: var(--green);
  font-size: 28px;
}

.lead-float {
  position: fixed;
  right: var(--edge);
  bottom: 92px;
  z-index: 1195;
}

.lead-float button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--green);
  color: var(--paper);
  box-shadow: 0 14px 34px rgba(24, 33, 28, .2);
  font-weight: 700;
  cursor: pointer;
}

.lead-float svg {
  display: block;
  width: 19px;
  height: 19px;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  place-items: center;
  padding: 18px;
}

.lead-modal.open {
  display: grid;
}

.lead-modal__shade {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 12, .58);
}

.lead-modal__panel {
  position: relative;
  z-index: 1;
  width: min(490px, 100%);
  max-height: min(560px, calc(100vh - 28px));
  overflow: auto;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(10, 15, 12, .35);
}

.lead-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 0;
}

.lead-modal__head h2,
.lead-modal__head p {
  margin: 0;
}

.lead-modal__head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.lead-modal__close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font-size: 20px;
  cursor: pointer;
}

.lead-modal .form {
  gap: 8px;
  margin: 10px 16px 14px;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.lead-modal .field {
  gap: 4px;
}

.lead-modal .field span {
  font-size: 13px;
}

.lead-modal input,
.lead-modal select,
.lead-modal textarea {
  min-height: 36px;
  padding: 0 10px;
}

.lead-modal textarea {
  min-height: 54px;
  padding-top: 8px;
}

.lead-modal .button {
  min-height: 38px;
}

.portfolio-carousel {
  position: relative;
}

.portfolio-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(310px, 31%);
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.portfolio-carousel__track .card {
  scroll-snap-align: start;
}

.portfolio-carousel__controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 18px 0 0;
}

.section:not(.section--dark) .icon-button {
  border-color: var(--line);
  background: #fff;
  color: var(--green);
}

.section:not(.section--dark) .icon-button:hover {
  background: var(--gold-soft);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .16);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-item img,
.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  transition: transform .24s ease, filter .24s ease;
}

.gallery-item:hover img {
  transform: scale(1.015);
  filter: saturate(1.06);
}

.gallery-grid .gallery-item:nth-child(5n + 1),
.gallery-grid > img:nth-child(5n + 1) {
  grid-column: span 2;
  grid-row: span 2;
  height: 100%;
}

.gallery-grid .gallery-item:nth-child(5n + 1) img {
  height: 100%;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.lightbox.open {
  display: flex;
}

.lightbox__shade {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 12, .82);
}

.lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 92px);
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}

.lightbox__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: var(--paper);
  color: var(--green);
  font-size: 22px;
  cursor: pointer;
}

.detail-hero {
  padding-top: calc(var(--header-h) + 54px);
}

.detail-hero img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 8px;
}

.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
}

.spec {
  padding: 18px;
  border-left: 2px solid var(--gold);
  background: rgba(255, 250, 243, .72);
}

.spec strong {
  display: block;
  font-size: 26px;
}

.site-footer {
  padding: 62px 20px 28px;
  background: var(--green);
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, .7fr) minmax(220px, .8fr);
  gap: 42px;
}

.footer-brand {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--paper);
  text-decoration: none;
}

.site-footer p {
  color: #d8ddd7;
}

.footer-links,
.footer-contacts {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-contacts a {
  color: #d8ddd7;
  text-decoration: none;
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 250, 243, .14);
  color: rgba(255, 250, 243, .68);
}

.chat-widget {
  position: fixed;
  right: var(--edge);
  bottom: var(--edge);
  z-index: 1200;
}

.chat-widget__toggle {
  position: relative;
  display: block;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 16px 36px rgba(24, 33, 28, .24);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  animation: chatFloat 3.2s ease-in-out infinite;
}

.chat-widget__toggle:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 20px 42px rgba(24, 33, 28, .3);
}

.chat-widget__toggle span {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(24, 33, 28, .14);
}

.chat-widget__toggle i {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: #26c46b;
}

.chat-widget__toggle::before {
  content: "";
  position: absolute;
  inset: 16px 14px 18px;
  border: 2px solid var(--paper);
  border-radius: 15px;
}

.chat-widget__toggle::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  background: var(--gold);
  transform: rotate(35deg);
}

.chat-widget__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: grid;
  gap: 10px;
  min-width: 228px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(.98);
  transform-origin: right bottom;
  transition: opacity .18s ease, transform .18s ease;
}

.chat-widget.open .chat-widget__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-widget__panel strong {
  color: var(--green);
  font-size: 15px;
}

.chat-widget__panel p {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 13px;
}

.chat-widget__panel a,
.chat-widget__panel button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding: 11px 12px;
  border: 0;
  border-radius: 6px;
  background: var(--gold-soft);
  color: var(--green);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease;
}

.chat-widget__panel a:hover,
.chat-widget__panel button:hover {
  transform: translateX(-2px);
  background: rgba(185, 129, 67, .22);
}

.chat-widget__panel a::after,
.chat-widget__panel button::after {
  content: "›";
  font-size: 20px;
  line-height: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .site-header {
    animation: headerDrop .46s ease-out both;
  }

  .brand {
    animation: logoReveal .62s .08s cubic-bezier(.2, .8, .2, 1) both;
  }

  .header-actions {
    animation: headerActions .55s .14s cubic-bezier(.2, .8, .2, 1) both;
  }

  .hero__content {
    animation: heroContent .65s .12s ease-out both;
  }
}

@keyframes headerDrop {
  from { opacity: 0; transform: translate3d(0, -16px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes logoReveal {
  from { opacity: 0; transform: translate3d(0, -8px, 0) scale(.94); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes headerActions {
  from { transform: translate3d(10px, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes phonePulse {
  0% { opacity: .48; transform: scale(.86); }
  70%, 100% { opacity: 0; transform: scale(1.35); }
}

@keyframes chatFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -5px, 0); }
}

@keyframes heroContent {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (max-width: 980px) {
  .grid--4,
  .grid--3,
  .grid--2,
  .split,
  .footer-grid,
  .specs {
    grid-template-columns: 1fr 1fr;
  }

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

  .portfolio-carousel__track {
    grid-auto-columns: minmax(280px, 48%);
  }
}

@media (max-width: 680px) {
  :root {
    --edge: 12px;
  }

  .site-header__inner {
    width: calc(100% - 16px);
  }

  .header-actions {
    position: absolute;
    top: 50%;
    left: auto;
    right: 0;
    z-index: 1002;
    gap: 0;
    display: flex;
    opacity: 1;
    visibility: visible;
    animation: none;
    transform: translateY(-50%);
  }

  .menu-button {
    width: 32px;
    height: 32px;
  }

  .menu-button span {
    width: 24px;
  }

  .menu-button span + span {
    margin-top: 5px;
  }

  .brand__logo {
    width: 154px;
    height: 50px;
  }

  .site-header.is-scrolled .brand__logo {
    width: 78px;
    height: 25px;
  }

  .hero {
    min-height: 92vh;
    padding-bottom: 64px;
  }

  h1,
  .title {
    max-width: 100%;
    font-size: clamp(32px, 10.2vw, 40px);
    line-height: 1;
    overflow-wrap: break-word;
  }

  .hero p {
    max-width: 100%;
    font-size: 18px;
  }

  .hero__stats,
  .lead-panel,
  .lead-panel__top,
  .calc-grid,
  .calc-contact,
  .grid--4,
  .grid--3,
  .grid--2,
  .split,
  .footer-grid,
  .specs {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-carousel__track {
    grid-auto-columns: minmax(252px, 86%);
  }

  .gallery-grid > img:nth-child(5n + 1) {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-grid .gallery-item:nth-child(5n + 1) {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-grid .gallery-item:nth-child(5n + 1) img {
    height: auto;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox__close {
    top: 8px;
    right: 8px;
  }

  .section {
    padding: 58px 16px;
  }

  .lead-panel {
    padding: 22px;
  }

  .calc-grid .field--wide {
    grid-column: auto;
  }

  .calc-actions .button {
    width: 100%;
  }

  .lead-float {
    top: auto;
    right: var(--edge);
    left: auto;
    bottom: calc(var(--edge) + 72px);
  }

  .lead-float button {
    min-height: 44px;
    padding: 0 13px;
    font-size: 13px;
  }

  .lead-float svg {
    width: 18px;
    height: 18px;
  }

}
