:root {
  --anthracite: #202326;
  --charcoal: #111315;
  --ink: #25282b;
  --muted: #687078;
  --bronze: #b78952;
  --bronze-dark: #8a6239;
  --paper: #ffffff;
  --soft: #f5f3ef;
  --mist: #eceff0;
  --border: #ded8cf;
  --whatsapp: #25d366;
  --shadow: 0 18px 44px rgba(17, 19, 21, 0.12);
  --shadow-deep: 0 26px 70px rgba(17, 19, 21, 0.28);
  --radius: 8px;
  --container: 1180px;
  --header-height: 90px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

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

img {
  display: block;
}

svg {
  fill: currentColor;
}

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

button {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 76px 0;
}

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

.section--dark {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(183, 137, 82, 0.18), transparent 36%),
    linear-gradient(145deg, #151719, #282b2e);
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--bronze-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading h2,
.about__content h2,
.quality__grid h2,
.guarantee__inner h2 {
  margin: 0;
  color: var(--anthracite);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.18;
}

.section--dark .section-heading h2,
.cta-strip h2 {
  color: #ffffff;
}

.section-heading p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(32, 35, 38, 0.12);
  backdrop-filter: blur(14px);
}

.navbar {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.footer-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.brand__frame,
.footer-logo__frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.brand__frame {
  width: 156px;
  height: 78px;
}

.brand img,
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 9px;
  border-radius: var(--radius);
  color: #32363a;
  font-size: 0.79rem;
  font-weight: 800;
  line-height: 1;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--charcoal);
  background: rgba(183, 137, 82, 0.18);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--anthracite);
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(17, 19, 21, 0.2);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(32, 35, 38, 0.18);
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--charcoal);
}

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background: url("img/generated/stock-premium-door-hero.png") center / cover no-repeat;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 13, 15, 0.9), rgba(16, 18, 20, 0.7) 48%, rgba(16, 18, 20, 0.24)),
    linear-gradient(0deg, rgba(12, 13, 15, 0.18), rgba(12, 13, 15, 0.18));
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 72px 0 64px;
}

.hero .section-kicker {
  color: #e6be83;
}

.hero h1 {
  max-width: 750px;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.15rem);
  line-height: 1.06;
}

.hero__text {
  max-width: 670px;
  margin: 20px 0 0;
  color: #f2eee8;
  font-size: 1.08rem;
}

.hero__actions,
.cta-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
}

.btn--primary {
  color: #111315;
  background: linear-gradient(135deg, #d7ac72, var(--bronze));
  box-shadow: 0 16px 34px rgba(183, 137, 82, 0.28);
}

.btn--outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.btn--call {
  color: #ffffff;
  background: var(--anthracite);
}

.btn--whatsapp {
  color: #ffffff;
  background: var(--whatsapp);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 920px;
  margin-top: 40px;
}

.trust-grid div,
.mini-stats div,
.advantage-grid div,
.process-grid div {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
}

.trust-grid div {
  padding: 16px;
}

.trust-grid strong,
.trust-grid span,
.mini-stats strong,
.mini-stats span,
.advantage-grid strong,
.advantage-grid span {
  display: block;
}

.trust-grid strong {
  color: #ffffff;
  font-size: 1rem;
}

.trust-grid span {
  color: #e4ded4;
  font-size: 0.88rem;
}

.about__grid,
.quality__grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
}

.about__media,
.quality__grid img,
.map-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about__media img,
.quality__grid img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.about__content p,
.quality__grid p,
.guarantee__inner p {
  color: var(--muted);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.mini-stats div {
  padding: 15px;
  border-color: var(--border);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(32, 35, 38, 0.08);
}

.mini-stats strong {
  color: var(--anthracite);
  font-size: 0.94rem;
}

.mini-stats span {
  color: var(--muted);
  font-size: 0.84rem;
}

.product-grid,
.service-grid,
.advantage-grid,
.gallery-grid,
.process-grid {
  display: grid;
  gap: 20px;
}

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

.product-card,
.service-card,
.contact-card,
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.product-card {
  overflow: hidden;
}

.lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
}

.product-card .lightbox-trigger {
  height: 390px;
  background: #e9e5df;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-card__body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-card h3,
.service-card h3,
.contact-card h3 {
  margin: 0;
  color: var(--anthracite);
  font-size: 1.04rem;
  line-height: 1.3;
}

.product-card a {
  color: var(--bronze-dark);
  font-weight: 900;
  font-size: 0.9rem;
}

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

.service-card {
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  border-color: rgba(183, 137, 82, 0.5);
  transform: translateY(-5px);
}

.service-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--anthracite), #3a3f43);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

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

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

.advantage-grid div {
  padding: 24px;
}

.advantage-grid strong {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 1.02rem;
}

.advantage-grid span {
  color: #ded8cf;
}

.quality {
  background: #ffffff;
}

.quality__grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

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

.gallery-item {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #e9e5df;
  box-shadow: var(--shadow);
}

.gallery-item--wide {
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery-item--wide img {
  object-fit: cover;
}

.gallery-item:hover img {
  filter: contrast(1.04) saturate(1.03);
  transform: scale(1.03);
}

.guarantee {
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(17, 19, 21, 0.9), rgba(32, 35, 38, 0.76)),
    url("img/generated/stock-modern-home-entrance.png") center / cover no-repeat;
}

.guarantee__inner {
  max-width: 760px;
  margin-inline: auto;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(17, 19, 21, 0.52);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(10px);
}

.guarantee__inner h2,
.guarantee__inner p {
  color: #ffffff;
}

.guarantee__inner .section-kicker {
  color: #e6be83;
}

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

.process-grid div {
  padding: 22px;
  border-color: var(--border);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.process-grid span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--bronze-dark);
  font-weight: 900;
}

.process-grid strong {
  display: block;
  color: var(--anthracite);
  line-height: 1.35;
}

.faq-list {
  max-width: 900px;
  display: grid;
  gap: 12px;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border: 0;
  color: var(--anthracite);
  background: #ffffff;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-question span {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--anthracite);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.24s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

.faq-item.active .faq-answer {
  max-height: 180px;
}

.faq-item.active .faq-question span {
  background: var(--bronze-dark);
}

.cta-strip {
  padding: 58px 0;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(183, 137, 82, 0.18), transparent 38%),
    linear-gradient(145deg, #111315, #272a2d);
}

.cta-strip__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
}

.cta-strip h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.18;
}

.cta-strip p {
  max-width: 640px;
  margin: 12px 0 0;
  color: #e6dfd6;
}

.cta-strip__actions {
  justify-content: flex-end;
  margin-top: 0;
}

.contact-grid {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: stretch;
}

.contact-card {
  padding: 28px;
}

.contact-list {
  display: grid;
  gap: 15px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: 3px;
}

.contact-list strong {
  color: var(--anthracite);
}

.contact-list span,
.contact-list a {
  color: var(--muted);
}

.contact-list a {
  font-weight: 900;
}

.map-wrapper {
  min-height: 430px;
  background: var(--soft);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 430px;
  display: block;
  border: 0;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-btn {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(17, 19, 21, 0.26);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.floating-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-3px);
}

.floating-btn svg {
  width: 27px;
  height: 27px;
}

.floating-btn--whatsapp {
  background: var(--whatsapp);
}

.floating-btn--phone {
  background: var(--bronze-dark);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 66px 18px 34px;
  background: rgba(10, 11, 12, 0.88);
}

.lightbox.open {
  display: flex;
}

.lightbox__image {
  width: auto;
  max-width: min(92vw, 980px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-deep);
}

.lightbox__caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  margin: 0;
  color: #ffffff;
  text-align: center;
  font-weight: 800;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}

.site-footer {
  padding: 48px 0 24px;
  color: #ffffff;
  background: var(--charcoal);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.7fr) minmax(220px, 0.85fr);
  gap: 34px;
  align-items: start;
}

.footer-logo__frame {
  width: 168px;
  height: 92px;
}

.footer-brand p {
  max-width: 390px;
  margin: 18px 0 0;
  color: #d9d2c8;
}

.footer-column h3 {
  margin: 0 0 13px;
  color: #ffffff;
  font-size: 1rem;
}

.footer-column ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column a,
.footer-column span {
  color: #d9d2c8;
}

.footer-column a:hover {
  color: #e6be83;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
  margin: 0;
  color: #d9d2c8;
}

.digital-signature a {
  color: #ffffff;
  font-weight: 800;
}

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

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

@media (max-width: 940px) {
  .menu-toggle {
    display: block;
  }

  .navbar {
    gap: 12px;
  }

  .nav-menu {
    position: absolute;
    top: var(--header-height);
    left: 16px;
    right: 16px;
    display: none;
    max-height: calc(100vh - var(--header-height) - 24px);
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    min-height: 42px;
    padding: 12px;
  }

  .hero {
    min-height: 590px;
    background-position: center;
  }

  .trust-grid,
  .mini-stats,
  .advantage-grid,
  .process-grid,
  .service-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about__grid,
  .quality__grid,
  .contact-grid,
  .cta-strip__inner {
    grid-template-columns: 1fr;
  }

  .cta-strip__actions {
    justify-content: flex-start;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .section {
    padding: 58px 0;
  }

  .brand__frame {
    width: 124px;
    height: 62px;
  }

  .hero {
    min-height: auto;
    background-position: 58% center;
  }

  .hero__overlay {
    background: linear-gradient(90deg, rgba(12, 13, 15, 0.92), rgba(16, 18, 20, 0.76));
  }

  .hero__content {
    padding: 60px 0 46px;
  }

  .hero__text {
    font-size: 1rem;
    max-width: 330px;
  }

  .hero h1 {
    font-size: clamp(1.78rem, 8vw, 2.18rem);
    line-height: 1.12;
    max-width: 330px;
    overflow-wrap: break-word;
  }

  .hero .section-kicker {
    font-size: 0.7rem;
  }

  .hero__actions,
  .cta-strip__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .trust-grid,
  .mini-stats,
  .product-grid,
  .service-grid,
  .advantage-grid,
  .gallery-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .product-card .lightbox-trigger {
    height: 430px;
  }

  .gallery-item,
  .gallery-item--wide {
    aspect-ratio: 3 / 4;
  }

  .gallery-item--wide img {
    object-fit: cover;
  }

  .service-card,
  .contact-card,
  .guarantee__inner {
    padding: 22px;
  }

  .map-wrapper,
  .map-wrapper iframe {
    min-height: 340px;
  }

  .floating-actions {
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }

  .floating-btn {
    width: 49px;
    height: 49px;
  }

  .floating-btn svg {
    width: 24px;
    height: 24px;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .product-card .lightbox-trigger {
    height: 380px;
  }

  .faq-question {
    padding: 16px;
  }
}
