:root {
  --black: #050505;
  --white: #ffffff;
  --soft: #f6f5f2;
  --muted: #6f6f6f;
  --line: #e7e2d8;
  --gold: #d8aa3c;
  --gold-dark: #b98b2e;
  --danger: #bd251c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--black);
  background: var(--white);
}

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

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

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

[hidden] {
  display: none !important;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header,
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner,
.app-header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.nav,
.app-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
}

.nav a,
.app-nav a {
  color: #2f2f2f;
  transition: color 0.2s ease;
}

.nav a:hover,
.app-nav a:hover {
  color: var(--gold-dark);
}

.btn {
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-gold {
  background: linear-gradient(135deg, #f5dd8a, var(--gold));
  color: #050505;
  box-shadow: 0 14px 34px rgba(216, 170, 60, 0.28);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--line);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-lg {
  min-height: 54px;
  padding: 0 28px;
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.hero {
  min-height: calc(100vh - 92px);
  padding: 76px 0 64px;
  background:
    radial-gradient(circle at 80% 10%, rgba(216, 170, 60, 0.16), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7f5ef 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 560px;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

.hero p,
.page-title p,
.section-head p,
.about-text p,
.contact-card p {
  color: #333;
  font-size: 18px;
  line-height: 1.7;
}

.hero-content p {
  max-width: 680px;
  margin: 28px 0 0;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hero-stats div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.hero-stats strong {
  display: block;
  font-size: 24px;
}

.hero-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.hero-media {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 120px;
  grid-template-rows: 110px minmax(0, 1fr) 130px;
  align-items: center;
}

.hero-card-main {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  width: 100%;
  height: 600px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #ddd;
  z-index: 1;
}

.hero-card-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  padding: 22px;
  border-radius: 16px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.hero-card-caption span {
  display: block;
  color: #cfcfcf;
  font-size: 13px;
  font-weight: 800;
}

.hero-card-caption strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.floating-card {
  position: relative;
  width: 156px;
  padding: 10px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
  z-index: 4;
  pointer-events: none;
}

.floating-card img {
  width: 100%;
  height: 98px;
  object-fit: cover;
  border-radius: 12px;
}

.floating-card span {
  display: block;
  padding: 10px 4px 4px;
  font-size: 13px;
  font-weight: 800;
}

.floating-card-one {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  justify-self: end;
  align-self: end;
  transform: translate(28px, 24px);
}

.floating-card-two {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  justify-self: start;
  align-self: center;
  transform: translate(-34px, -18px);
}

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-head h2,
.about-grid h2,
.contact-card h2,
.portfolio-real-head h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-card span {
  color: var(--gold-dark);
  font-weight: 900;
}

.service-card h3 {
  margin: 34px 0 12px;
  font-size: 24px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.about-section {
  background: var(--black);
  color: var(--white);
}

.about-section .eyebrow,
.about-section p {
  color: #d6d6d6;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}

.about-text {
  display: grid;
  gap: 18px;
}

.portfolio-real-section {
  background: #f7f5ef;
  overflow: hidden;
}

.portfolio-real-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.portfolio-real-head h2 {
  max-width: 880px;
}

.portfolio-featured {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-bottom: 18px;
}

.featured-work,
.real-gallery-item {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 20px;
  background: #111;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.14);
  cursor: zoom-in;
}

.featured-work {
  height: 480px;
}

.featured-work img,
.real-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.featured-work:hover img,
.real-gallery-item:hover img {
  transform: scale(1.07);
  opacity: 0.88;
}

.featured-work div,
.real-gallery-item figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px;
  border-radius: 14px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.featured-work span {
  display: block;
  color: #d8d8d8;
  font-size: 13px;
  font-weight: 800;
}

.featured-work strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
}

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

.real-gallery-item {
  height: 320px;
}

.real-gallery-item figcaption {
  font-size: 14px;
  font-weight: 800;
}

.portfolio-cta {
  margin-top: 34px;
  padding: 28px;
  border-radius: 20px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.portfolio-cta p {
  margin: 0;
  color: #e6e6e6;
  font-size: 18px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
}

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

.lightbox-content {
  position: relative;
  width: min(1100px, 100%);
  max-height: 92vh;
  display: grid;
  gap: 14px;
}

.lightbox-image {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 18px;
  background: #111;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.lightbox-caption {
  color: var(--white);
  text-align: center;
  font-weight: 800;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--black);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-hint {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: #dedede;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.contact-section {
  background: var(--white);
}

.contact-card {
  padding: 48px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(216, 170, 60, 0.14), transparent),
    var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  box-shadow: var(--shadow);
}

.contact-card p {
  color: #d8d8d8;
}

.site-footer {
  background: var(--black);
  color: var(--white);
  border-top: 1px solid rgba(216, 170, 60, 0.32);
}

.footer-inner {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-inner img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.footer-inner p {
  margin: 0;
  color: #d7d7d7;
  font-weight: 700;
}

.app-body,
.admin-app {
  background: var(--soft);
}

.app-main {
  padding: 54px 0 90px;
}

.page-title {
  margin-bottom: 34px;
}

.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}

.panel h2 {
  margin: 0 0 22px;
  font-size: 22px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.panel-heading h2 {
  margin: 0;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 20px;
  align-items: start;
}

.quote-layout > .panel:nth-child(1),
.quote-layout > .panel:nth-child(2),
.quote-layout .span-all {
  grid-column: 1 / 2;
}

.summary-panel {
  position: sticky;
  top: 116px;
  grid-column: 2 / 3;
  grid-row: 1 / span 3;
  z-index: 4;
}

.form-grid,
.filters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

label {
  display: grid;
  gap: 8px;
  color: #222;
  font-size: 13px;
  font-weight: 800;
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  padding: 13px 14px;
  background: var(--white);
  color: var(--black);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(216, 170, 60, 0.16);
}

.materials-list {
  display: grid;
  gap: 14px;
}

.material-row {
  display: grid;
  grid-template-columns: 1fr 180px auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfaf7;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.summary-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.summary-row strong {
  font-size: 16px;
}

.summary-row.highlight strong {
  color: var(--gold-dark);
  font-size: 20px;
}

.actions-stack {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.whatsapp-panel {
  position: relative;
  z-index: 1;
}

.whatsapp-output {
  min-height: 260px;
  resize: vertical;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  max-width: 360px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background: var(--black);
}

.login-screen.is-hidden,
body.admin-logged .login-screen {
  display: none !important;
}

.login-card {
  width: min(420px, 100%);
  padding: 32px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.login-card img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 18px;
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

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

.login-card .btn {
  margin-top: 14px;
}

.error-text {
  display: block;
  margin-top: 12px;
  color: var(--danger);
  font-weight: 800;
}

.admin-body {
  background: var(--soft);
}

.admin-app {
  min-height: 100vh;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.metric-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.05);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-size: 24px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

td select {
  min-width: 150px;
  padding: 9px;
}

@media (max-width: 1180px) {
  .hero-grid,
  .about-grid,
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: auto;
    display: block;
  }

  .hero-card-main {
    height: 520px;
    max-width: 100%;
  }

  .floating-card {
    display: none;
  }

  .summary-panel {
    position: static;
    grid-column: auto;
    grid-row: auto;
  }

  .quote-layout > .panel:nth-child(1),
  .quote-layout > .panel:nth-child(2),
  .quote-layout .span-all {
    grid-column: 1 / -1;
  }

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

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

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

  .portfolio-featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner,
  .app-header-inner {
    min-height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .brand img {
    width: 68px;
    height: 68px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .site-header .btn {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero {
    padding: 46px 0 52px;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero h1,
  .page-title h1 {
    font-size: 48px;
  }

  .hero p,
  .page-title p,
  .section-head p,
  .about-text p,
  .contact-card p {
    font-size: 16px;
  }

  .hero-actions,
  .contact-card,
  .portfolio-real-head,
  .portfolio-cta {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-card-main,
  .featured-work {
    height: 420px;
    border-radius: 20px;
  }

  .hero-card-caption {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 16px;
  }

  .hero-card-caption strong {
    font-size: 24px;
  }

  .section {
    padding: 64px 0;
  }

  .services-grid,
  .real-gallery,
  .form-grid,
  .filters-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .real-gallery-item {
    height: 380px;
  }

  .material-row {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 30px;
  }

  .footer-inner {
    min-height: 180px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .app-nav {
    gap: 14px;
    flex-wrap: wrap;
  }

  .panel {
    padding: 20px;
  }

  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .login-card {
    padding: 24px;
  }

  .login-card img {
    width: 130px;
    height: 130px;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
  }
}
