:root {
  --bg: #f5f3ef;
  --surface: #ffffff;
  --ink: #15171b;
  --ink-2: #565b63;
  --ink-3: #8a8f97;
  --line: #e6e2da;
  --dark: #131519;
  --dark-2: #1b1e23;
  --dark-line: #2c3037;
  --accent: #b8843b;
  --accent-d: #9a6c2c;
  --accent-soft: #f3e8d4;
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --wrap-pad: var(--gut);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
}

p {
  margin: 0;
}

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

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

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px !important;
  min-width: 0 !important;
  height: 1px;
  border: 0 !important;
  padding: 0 !important;
  opacity: 0;
  pointer-events: none;
}

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

.wrap {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding-inline: var(--gut);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--accent-d);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  flex: 0 0 26px;
  background: var(--accent);
}

.lead {
  color: var(--ink-2);
  font-size: 1.18rem;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
  box-shadow: 0 14px 30px -18px rgba(184, 132, 59, 0.9);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-d);
  background: var(--accent-d);
  box-shadow: 0 20px 38px -20px rgba(184, 132, 59, 1);
}

.btn.lg {
  min-height: 60px;
  padding-inline: 36px;
  font-size: 1.05rem;
}

.site-head {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid transparent;
  padding: 18px 0;
  transition: background 300ms ease, padding 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-head.scrolled,
.site-head.nav-open {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  color: #fff;
  transition: color 300ms ease;
}

.brand__logo {
  display: block;
  width: clamp(132px, 13vw, 184px);
  height: auto;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.45));
  transition: filter 300ms ease, transform 200ms ease;
}

.brand:hover .brand__logo {
  transform: translateY(-1px);
}

.scrolled .brand__logo,
.nav-open .brand__logo {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.nav {
  display: flex;
  gap: 18px;
  margin-left: 14px;
}

.nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 200ms ease;
}

.scrolled .nav a,
.nav-open .nav a {
  color: var(--ink-2);
}

.nav a:hover {
  color: var(--accent);
}

.nav a[aria-current="page"] {
  color: var(--accent);
}

.head-right {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.head-phones {
  display: flex;
  align-items: center;
  gap: 13px;
}

.head-phones a {
  color: #fff;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color 300ms ease;
}

.head-phones span {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.32);
}

.scrolled .head-phones a,
.nav-open .head-phones a {
  color: var(--ink);
}

.socials {
  display: flex;
  gap: 9px;
}

.socials a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  color: #fff;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.socials svg {
  width: 18px;
  height: 18px;
}

.scrolled .socials a,
.nav-open .socials a {
  border-color: var(--line);
  color: var(--ink);
}

.socials a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 10px;
}

.burger span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.scrolled .burger,
.nav-open .burger {
  border-color: var(--line);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.hero--solar .hero__image {
  object-position: 58% center;
}

.hero--metal .hero__image,
.hero--air .hero__image {
  object-position: 62% center;
}

.hero__overlay {
  z-index: 1;
  background:
    radial-gradient(circle at 74% 30%, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(180deg, rgba(15, 17, 20, 0.5) 0%, rgba(15, 17, 20, 0.28) 38%, rgba(15, 17, 20, 0.84) 100%),
    linear-gradient(90deg, rgba(15, 17, 20, 0.74), rgba(15, 17, 20, 0.18) 68%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 160px;
  padding-bottom: clamp(58px, 10vh, 118px);
}

.hero .eyebrow {
  color: #fff;
}

.hero .reveal {
  opacity: 1;
  transform: none;
}

.hero h1 {
  max-width: 16ch;
  margin-top: 18px;
  color: #fff;
  font-size: clamp(3rem, 6vw, 5.2rem);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero p.lead {
  max-width: 56ch;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.hero-phones {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone-ico {
  display: grid;
  width: 46px;
  height: 46px;
  flex: none;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  border-radius: 11px;
}

.phone-ico svg {
  width: 21px;
  height: 21px;
  color: var(--accent);
}

.phone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.phone-list a {
  color: #fff;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.26rem;
  font-weight: 800;
  white-space: nowrap;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
}

.hero-trust svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: translateX(-50%);
  animation: bob 2.2s ease-in-out infinite;
}

.scroll-cue span {
  width: 1px;
  height: 34px;
  background: linear-gradient(rgba(255, 255, 255, 0.7), transparent);
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

.stats {
  background: var(--dark);
  color: #fff;
}

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-block: 54px;
}

.stat {
  position: relative;
  text-align: center;
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14%;
  right: -9px;
  width: 1px;
  height: 72%;
  background: var(--dark-line);
}

.stat__num {
  color: #fff;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
}

.stat__num span:last-child {
  color: var(--accent);
}

.stat p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.96rem;
  font-weight: 600;
}

.band {
  padding-block: clamp(72px, 10vw, 128px);
}

.sec-head {
  max-width: 760px;
  margin-bottom: 54px;
}

.sec-head h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.sec-head p {
  margin-top: 18px;
}

.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 84px);
  align-items: center;
}

.svc-row + .svc-row {
  margin-top: clamp(56px, 8vw, 104px);
}

.svc-row--flip .svc-media {
  order: 2;
}

.svc-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: #d7d2c9;
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.42);
}

.svc-media img,
.about-media img,
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-num {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  border-radius: 6px;
  padding: 7px 13px;
  background: var(--accent);
  color: #fff;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.svc-body h3 {
  margin-top: 18px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.svc-body .lead {
  margin-top: 16px;
}

.feat {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.feat span,
.chips span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 700;
}

.feat span {
  border-radius: 30px;
  padding: 9px 16px;
}

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

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
  color: var(--ink);
  font-weight: 800;
  transition: gap 200ms ease, color 200ms ease;
}

.svc-link::after {
  content: "→";
}

.svc-link:hover {
  gap: 15px;
  color: var(--accent-d);
}

.brands {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.brands .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 40px;
}

.brands .wrap > span {
  color: var(--ink-3);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 60px);
}

.brand-strip b {
  color: #a7a39b;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.products {
  padding-block: clamp(56px, 7vw, 90px);
}

.products .sec-head {
  margin-bottom: 34px;
}

.products h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chips span {
  border-radius: 8px;
  padding: 13px 20px;
  color: var(--ink);
  transition: transform 200ms ease, border-color 200ms ease, color 200ms ease;
}

.chips span:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent-d);
}

.promo {
  padding-block: clamp(42px, 6vw, 82px);
}

.promo .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--dark);
  color: #fff;
  padding: clamp(34px, 5vw, 58px);
}

.promo .wrap::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 132, 59, 0.48), transparent 70%);
}

.promo-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 30px;
  padding: 7px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.promo h2 {
  margin-top: 18px;
  color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

.promo p {
  max-width: 48ch;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.74);
}

.promo .btn {
  margin-top: 26px;
}

.promo__price {
  position: relative;
  z-index: 1;
  justify-self: end;
  color: var(--accent);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.9;
  text-align: center;
}

.promo__price small {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.about .wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
}

.about-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 6;
  border-radius: 14px;
  background: #d7d2c9;
  box-shadow: 0 36px 70px -36px rgba(0, 0, 0, 0.45);
}

.about-media img {
  object-position: center 40%;
}

.about-badge {
  position: absolute;
  left: 22px;
  bottom: 26px;
  border-radius: 12px;
  padding: 20px 26px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.45);
}

.about-badge b {
  display: block;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.about-badge span {
  font-size: 0.86rem;
  font-weight: 700;
  opacity: 0.92;
}

.about-copy h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.about-copy .lead {
  margin-top: 20px;
}

.about-copy ul {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.about-copy li {
  display: grid;
  grid-template-columns: 10px minmax(120px, 0.78fr) minmax(0, 1fr);
  align-items: start;
  column-gap: 14px;
  color: var(--ink-2);
  font-size: 1.04rem;
}

.about-copy li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--accent);
}

.about-copy b {
  color: var(--ink);
  line-height: 1.45;
}

.about-copy li span {
  line-height: 1.65;
}

.gallery-section {
  padding-top: 0;
}

.gallery {
  display: grid;
  grid-auto-rows: 215px;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: #d7d2c9;
  color: #fff;
  cursor: pointer;
}

.gallery-card--wide {
  grid-column: span 2;
}

.gallery-card--tall {
  grid-row: span 2;
}

.gallery-card img {
  transition: transform 260ms ease, filter 260ms ease;
}

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

.gallery-card span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 24px);
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(19, 21, 25, 0.74);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: left;
  backdrop-filter: blur(12px);
}

.gallery-dots {
  display: none;
}

.contact {
  background: var(--dark);
  color: #fff;
}

.contact .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.contact .eyebrow,
.contact h2 {
  color: #fff;
}

.contact h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.contact .lead {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.region-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.region-list span {
  border: 1px solid var(--dark-line);
  border-radius: 30px;
  padding: 9px 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 34px;
}

.contact-phones a {
  color: #fff;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  transition: color 200ms ease;
}

.contact-phones a:hover {
  color: var(--accent);
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-socials a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--dark-line);
  border-radius: 8px;
  padding: 11px 16px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 200ms ease, border-color 200ms ease;
}

.contact-socials a:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.formcard {
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  padding: clamp(26px, 3vw, 38px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}

.formcard h3 {
  font-size: 1.5rem;
}

.formcard p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.96rem;
}

.formcard label {
  display: block;
  margin: 18px 0 7px;
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 800;
}

.formcard input,
.formcard select,
.formcard textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 14px 16px;
  resize: vertical;
  transition: border-color 200ms ease;
}

.formcard input:focus,
.formcard select:focus,
.formcard textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.formcard .btn {
  width: 100%;
  margin-top: 24px;
}

.formcard .form-note {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 0.78rem;
  text-align: center;
}

.foot {
  background: #0e1013;
  color: rgba(255, 255, 255, 0.62);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 46px;
}

.foot .brand {
  color: #fff;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 700;
}

.foot a:hover {
  color: #fff;
}

.foot-bottom {
  border-top: 1px solid #1f2227;
}

.foot-bottom .wrap {
  display: block;
  justify-content: flex-start;
  padding-block: 20px;
  font-size: 0.84rem;
}

.callbar {
  position: fixed;
  z-index: 55;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 2px solid var(--accent);
  background: var(--dark);
  color: #fff;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(110%);
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.callbar.show {
  transform: translateY(0);
}

.callbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-block: 14px;
}

.callbar__text {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.callbar__text small {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.callbar form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: auto;
}

.callbar input {
  min-width: 210px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 13px 16px;
}

.callbar .btn {
  min-height: 48px;
  padding-block: 10px;
}

.callbar__close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 6px;
}

.callbar__close:hover {
  color: #fff;
}

.lightbox {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 70px 20px 24px;
  background: rgba(0, 0, 0, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1120px, 100%);
  max-height: 84vh;
  border-radius: 10px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.fit-door {
  object-position: center 43%;
}

.fit-wide {
  object-position: center;
}

.fit-window {
  object-position: center 38%;
}

.fit-high {
  object-position: center 22%;
}

.fit-room {
  object-position: center 36%;
}

.fit-center {
  object-position: center;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal.l {
  transform: translateX(-50px);
}

.reveal.r {
  transform: translateX(50px);
}

.reveal.l.in,
.reveal.r.in {
  transform: none;
}

.reveal[data-d="1"] {
  transition-delay: 90ms;
}

.reveal[data-d="2"] {
  transition-delay: 180ms;
}

.reveal[data-d="3"] {
  transition-delay: 270ms;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-cue {
    animation: none;
  }
}

@media (max-width: 1120px) {
  .head-phones {
    display: none;
  }
}

@media (max-width: 980px) {
  .site-head .wrap {
    position: relative;
  }

  .burger {
    display: block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 16px);
    left: var(--gut);
    right: var(--gut);
    display: none;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  }

  .nav.is-open {
    display: grid;
  }

  .nav a,
  .scrolled .nav a,
  .nav-open .nav a {
    color: var(--ink);
    padding: 7px 0;
  }

  .hero__image {
    object-position: 64% center;
  }

  .hero--metal .hero__image,
  .hero--air .hero__image {
    object-position: 68% center;
  }

  .stats .wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 18px;
  }

  .stat:nth-child(2)::after {
    display: none;
  }

  .svc-row,
  .about .wrap,
  .contact .wrap,
  .promo .wrap {
    grid-template-columns: 1fr;
  }

  .svc-row--flip .svc-media {
    order: 0;
  }

  .about-media {
    max-width: 560px;
    aspect-ratio: 16 / 11;
  }

  .promo__price {
    justify-self: start;
    text-align: left;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .site-head {
    padding: 14px 0;
  }

  .brand {
    flex: 0 0 auto;
  }

  .brand__logo {
    width: 126px;
  }

  .socials {
    display: none;
  }

  .hero {
    min-height: 780px;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(15, 17, 20, 0.58) 0%, rgba(15, 17, 20, 0.48) 34%, rgba(15, 17, 20, 0.88) 100%),
      linear-gradient(90deg, rgba(15, 17, 20, 0.64), rgba(15, 17, 20, 0.22));
  }

  .hero__content {
    width: 100vw;
    max-width: 100vw;
    padding-top: 120px;
    padding-bottom: 70px;
  }

  .hero__content > * {
    max-width: 330px;
  }

  .hero h1 {
    max-width: 10.5ch;
    font-size: clamp(2.35rem, 10vw, 2.75rem);
  }

  .hero p.lead,
  .lead {
    font-size: 1rem;
  }

  .hero .eyebrow {
    max-width: 100%;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    white-space: normal;
  }

  .hero p.lead {
    width: 330px;
    max-width: 330px;
    overflow-wrap: anywhere;
  }

  .btn,
  .btn.lg {
    width: min(100%, 330px);
    min-height: 54px;
    padding-inline: 18px;
  }

  .hero-phones {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    width: 100%;
    max-width: 330px;
    gap: 12px;
  }

  .phone-list {
    display: grid;
    gap: 5px;
    min-width: 0;
  }

  .phone-list a {
    font-size: 1.05rem;
    line-height: 1.1;
  }

  .hero-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 330px;
  }

  .hero-trust span {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 0;
    text-align: center;
    font-size: 0.86rem;
    line-height: 1.2;
  }

  .hero-trust svg {
    width: 22px;
    height: 22px;
  }

  .reveal.l,
  .reveal.r {
    transform: translateY(24px);
  }

  .reveal.l.in,
  .reveal.r.in {
    transform: none;
  }

  .scroll-cue {
    display: none;
  }

  .stats .wrap {
    grid-template-columns: 1fr 1fr;
  }

  .stat::after {
    display: none;
  }

  .svc-media {
    aspect-ratio: 4 / 3.4;
  }

  .gallery {
    display: flex;
    gap: 14px;
    margin-inline: calc(var(--wrap-pad) * -1);
    padding-inline: var(--wrap-pad);
    padding-bottom: 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--wrap-pad);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .gallery::-webkit-scrollbar {
    display: none;
  }

  .gallery-card {
    flex: 0 0 min(82vw, 360px);
    height: 300px;
    scroll-snap-align: center;
  }

  .gallery-card--wide,
  .gallery-card--tall {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }

  .gallery-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(19, 21, 25, 0.28);
    cursor: pointer;
    transition: width 180ms ease, background 180ms ease;
  }

  .gallery-dot.is-active {
    width: 24px;
    background: var(--accent);
  }

  .contact-socials a {
    width: 100%;
    justify-content: center;
  }

  .callbar .wrap {
    gap: 12px;
  }

  .callbar form {
    width: 100%;
    margin-left: 0;
  }

  .callbar input {
    width: 100%;
    min-width: 0;
  }

  .callbar__close {
    position: absolute;
    top: 10px;
    right: 16px;
  }
}

@media (max-width: 360px) {
  .hero__content > *,
  .hero p.lead {
    width: 288px;
    max-width: 288px;
  }

  .btn,
  .btn.lg {
    width: min(100%, 288px);
  }
}
