@charset "UTF-8";

:root {
  --bg: #030704;
  --bg-soft: #071009;
  --panel: rgba(8, 19, 11, 0.92);
  --panel-strong: #09150d;
  --panel-light: #0d1c12;
  --text: #f4fff6;
  --muted: #a5b8aa;
  --green: #58ff7c;
  --green-strong: #22e657;
  --green-dark: #0aa53a;
  --line: rgba(88, 255, 124, 0.18);
  --line-strong: rgba(88, 255, 124, 0.42);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --header-height: 86px;
  --container: 1240px;
  --section-space: clamp(68px, 7vw, 118px);
}

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

html {
  width: 100%;
  min-width: 0;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% 5%, rgba(27, 255, 90, 0.08), transparent 32rem),
    radial-gradient(circle at 5% 42%, rgba(27, 255, 90, 0.055), transparent 27rem),
    var(--bg);
  color: var(--text);
  font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

p,
h1,
h2,
h3,
h4,
ul,
figure {
  margin-top: 0;
}

p,
h1,
h2,
h3,
h4,
span,
small,
strong,
a,
button,
label {
  overflow-wrap: anywhere;
}

section,
header,
footer,
main,
nav,
article,
aside,
div,
form {
  min-width: 0;
}

::selection {
  background: var(--green);
  color: #001a07;
}

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

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(88, 255, 124, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 255, 124, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 4, 0.92);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.2);
}

@supports (backdrop-filter: blur(14px)) {
  .header {
    backdrop-filter: blur(14px);
  }
}

.nav {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 1.08rem;
  font-weight: 900;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.cube-logo {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  transform: rotate(30deg);
}

.cube-logo i {
  position: absolute;
  inset: 5px;
  border: 2px solid var(--green);
  border-radius: 4px;
  box-shadow: 0 0 18px rgba(88, 255, 124, 0.22);
}

.cube-logo .cube-top {
  transform: translateY(-6px) rotate(60deg);
}

.cube-logo .cube-left {
  transform: translateX(-6px) rotate(-60deg);
}

.cube-logo .cube-right {
  transform: translateX(6px);
}

.links {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 1.5vw, 28px);
}

.links a {
  position: relative;
  flex: 0 1 auto;
  padding: 12px 0;
  color: #dce9df;
  font-size: 0.93rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 180ms ease;
}

.links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transition: width 180ms ease;
}

.links a:hover,
.links a:focus-visible,
.links a.active {
  color: var(--green);
}

.links a:hover::after,
.links a:focus-visible::after,
.links a.active::after {
  width: 100%;
}

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(88, 255, 124, 0.06);
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 4px;
  background: var(--green);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.btn-main,
.btn-whatsapp {
  background: linear-gradient(135deg, var(--green), var(--green-strong));
  color: #021306;
  box-shadow: 0 14px 32px rgba(34, 230, 87, 0.16);
}

.btn-main:hover,
.btn-main:focus-visible,
.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  box-shadow: 0 18px 40px rgba(34, 230, 87, 0.25);
}

.btn-whatsapp {
  min-height: 44px;
  padding-inline: 18px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  isolation: isolate;
  padding:
    clamp(54px, 6vw, 92px)
    0
    clamp(70px, 7vw, 108px);
  overflow: clip;
}

@supports not (overflow: clip) {
  .hero {
    overflow: hidden;
  }
}

.hero-glow {
  position: absolute;
  inset: 5% -15% auto auto;
  z-index: -1;
  width: 58vw;
  height: 58vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 255, 101, 0.13), rgba(46, 255, 101, 0) 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(36px, 6vw, 86px);
}

.hero-media {
  position: relative;
}

.image-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #071009;
  box-shadow: var(--shadow);
}

.image-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.48), transparent 42%),
    radial-gradient(circle at 50% 75%, rgba(72, 255, 115, 0.12), transparent 45%);
}

.image-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.scan {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: -12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 16px var(--green);
  opacity: 0.65;
  animation: scan 6s linear infinite;
}

@keyframes scan {
  to {
    top: 112%;
  }
}

.media-label {
  position: absolute;
  right: clamp(16px, 2.2vw, 28px);
  bottom: clamp(16px, 2.2vw, 28px);
  z-index: 4;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.56);
  color: var(--green);
  font-size: clamp(0.68rem, 0.8vw, 0.82rem);
  font-weight: 900;
  letter-spacing: 0.14em;
}

.hero-content {
  max-width: 680px;
}

.overline {
  margin-bottom: 12px;
  color: var(--green);
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  font-weight: 800;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  color: var(--green);
  font-size: 0.62em;
  line-height: 1.2;
}

.lead {
  max-width: 62ch;
  margin-bottom: 26px;
  color: #c1d2c5;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.9;
}

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

.hero-features article {
  min-width: 0;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(8, 22, 12, 0.78);
  text-align: center;
}

.hero-features b {
  margin-bottom: 7px;
  color: var(--green);
  font-size: 1.35rem;
}

.hero-features strong {
  font-size: 0.92rem;
}

.hero-features small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.side-tools {
  position: fixed;
  left: max(10px, env(safe-area-inset-left, 0px));
  top: 50%;
  z-index: 900;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.side-tools a {
  width: 58px;
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(3, 12, 6, 0.92);
  color: var(--green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.side-tools small {
  color: #d2e4d5;
  font-size: 0.64rem;
  line-height: 1.25;
}

.section {
  position: relative;
  padding: var(--section-space) 0;
}

.section-title {
  display: grid;
  grid-template-columns: minmax(30px, 1fr) auto minmax(30px, 1fr);
  align-items: center;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto 20px;
}

.section-title span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0.7;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.25;
  text-align: center;
}

.section-subtitle {
  max-width: 760px;
  margin: 0 auto 34px;
  color: var(--muted);
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.service-card {
  min-width: 0;
  min-height: 220px;
  padding: 26px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(88, 255, 124, 0.035), transparent 35%),
    var(--panel);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.service-card .icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(88, 255, 124, 0.06);
  color: var(--green);
  font-size: 1.55rem;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

.works-section {
  background: linear-gradient(180deg, rgba(88, 255, 124, 0.025), transparent);
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 20, 11, 0.8);
  color: #d8e9dc;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.filter-btn:hover,
.filter-btn:focus-visible,
.filter-btn.active {
  border-color: var(--green);
  background: rgba(88, 255, 124, 0.1);
  color: var(--green);
}

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

.portfolio-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.17);
}

.portfolio-card[hidden] {
  display: none !important;
}

.portfolio-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.88;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #071009;
  cursor: zoom-in;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.045);
}

.zoom-icon {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.64);
  color: var(--green);
  font-size: 1.15rem;
}

.portfolio-info {
  padding: 20px;
}

.portfolio-category {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.portfolio-info h3 {
  margin-bottom: 9px;
  font-size: 1.04rem;
}

.portfolio-info p {
  min-height: 54px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.portfolio-order {
  display: inline-flex;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 800;
}

.compact-section {
  padding-top: 38px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

.panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.panel h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.process-panel,
.material-panel {
  padding: 28px;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  column-gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(88, 255, 124, 0.11);
}

.steps div:last-child {
  border-bottom: 0;
}

.steps b {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--green);
}

.steps span {
  font-weight: 800;
}

.steps small {
  color: var(--muted);
  line-height: 1.55;
}

.material-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 16px 0 20px;
  border-radius: 16px;
  object-fit: cover;
}

.material-names {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.material-names span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
}

.why-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  min-height: 100%;
}

.why-panel > img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.why-panel > div {
  padding: 28px;
}

.why-panel h2 {
  margin-bottom: 6px;
}

.why-panel h3 {
  margin-bottom: 16px;
  color: var(--green);
  font-size: 1.42rem;
}

.why-panel ul {
  padding-right: 20px;
  color: var(--muted);
}

.why-panel li {
  margin-bottom: 8px;
}

.trust-bar {
  padding: 24px 0;
  border-block: 1px solid var(--line);
  background: rgba(8, 20, 11, 0.78);
}

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

.trust-grid > div {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
}

.trust-icon {
  flex: 0 0 auto;
  font-size: 1.45rem;
}

.trust-grid span:not(.trust-icon) {
  display: grid;
}

.trust-grid b {
  font-size: 0.94rem;
}

.trust-grid small {
  color: var(--muted);
  line-height: 1.45;
}

.order-section {
  background:
    radial-gradient(circle at 12% 50%, rgba(88, 255, 124, 0.065), transparent 28rem),
    transparent;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(30px, 6vw, 84px);
}

.order-intro {
  position: sticky;
  top: calc(var(--header-height) + 36px);
}

.order-intro h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.15;
}

.order-intro p:last-child {
  max-width: 44ch;
  color: var(--muted);
}

.order-form {
  min-width: 0;
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

.order-form label {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: #dcecdf;
  font-weight: 700;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: #071009;
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.order-form input,
.order-form select {
  min-height: 50px;
  padding: 10px 13px;
}

.order-form textarea {
  min-height: 132px;
  padding: 13px;
  resize: vertical;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(88, 255, 124, 0.1);
}

.order-form select option {
  background: #071009;
  color: #fff;
}

.payment-box {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.payment-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.payment-copy > div {
  min-width: 0;
  display: grid;
}

.payment-copy small {
  max-width: 48ch;
  color: var(--muted);
  line-height: 1.5;
}

.paypal-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #0d2d85;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
}

.btn-paypal {
  flex: 0 0 auto;
  border-color: #2d68ff;
  background: #133fb5;
  color: #fff;
  white-space: nowrap;
}

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

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
}

.faq-list summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 800;
}

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

footer {
  padding:
    64px
    0
    max(24px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: #020503;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) repeat(3, minmax(150px, 1fr));
  gap: 38px;
}

.footer-brand p {
  max-width: 34ch;
  margin-top: 18px;
  color: var(--muted);
}

.footer-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-column h3 {
  margin-bottom: 8px;
  color: var(--green);
}

.footer-column a,
.footer-column span {
  color: #b6c8bb;
  line-height: 1.6;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--green);
}

.copyright {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(88, 255, 124, 0.1);
  color: #87998b;
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  place-items: center;
  padding:
    max(18px, env(safe-area-inset-top, 0px))
    max(18px, env(safe-area-inset-right, 0px))
    max(18px, env(safe-area-inset-bottom, 0px))
    max(18px, env(safe-area-inset-left, 0px));
  background: rgba(0, 0, 0, 0.9);
}

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

.lightbox figure {
  width: min(1100px, 94vw);
  max-height: 88vh;
  max-height: 88svh;
  display: grid;
  place-items: center;
  gap: 12px;
  margin: 0;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(88vh - 70px);
  max-height: calc(88svh - 70px);
  border-radius: 16px;
  object-fit: contain;
}

.lightbox figcaption {
  color: #dcecdf;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: max(18px, env(safe-area-inset-top, 0px));
  left: max(18px, env(safe-area-inset-left, 0px));
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(14, 14, 14, 0.88);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.floating-wa {
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  z-index: 1200;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: linear-gradient(135deg, #60ff82, #1ed859);
  color: #021306;
  box-shadow: 0 12px 35px rgba(30, 216, 89, 0.24);
  font-size: 1.45rem;
  font-weight: 900;
}

.no-js .reveal,
.no-js .reveal.delay {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.js .reveal.delay {
  transition-delay: 100ms;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

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

@media (max-width: 1180px) {
  :root {
    --container: 1060px;
  }

  .nav {
    gap: 18px;
  }

  .links {
    gap: 15px;
  }

  .links a {
    font-size: 0.86rem;
  }

  .btn-whatsapp {
    padding-inline: 14px;
    font-size: 0.82rem;
  }

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

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

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

  .why-panel {
    grid-column: 1 / -1;
    min-height: 430px;
  }

  .why-panel > img {
    min-height: 430px;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 76px;
  }

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

  .nav {
    position: relative;
    grid-template-columns: auto 1fr auto;
  }

  .menu-btn {
    display: block;
    grid-column: 3;
  }

  .desktop-only {
    display: none !important;
  }

  .links {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - var(--header-height) - 20px);
    max-height: calc(100svh - var(--header-height) - 20px);
    overflow-y: auto;
    padding:
      14px
      max(16px, env(safe-area-inset-right, 0px))
      max(20px, env(safe-area-inset-bottom, 0px))
      max(16px, env(safe-area-inset-left, 0px));
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: rgba(3, 9, 5, 0.98);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.38);
  }

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

  .links a {
    width: 100%;
    padding: 14px;
    border-bottom: 1px solid rgba(88, 255, 124, 0.08);
    font-size: 1rem;
    white-space: normal;
  }

  .links a:last-child {
    border-bottom: 0;
  }

  .links a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

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

  .hero-content {
    max-width: none;
    text-align: center;
  }

  .lead {
    margin-inline: auto;
  }

  .hero-features {
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: 28px;
  }

  .hero-content .btn-main {
    margin-inline: auto;
  }

  .side-tools {
    display: none;
  }

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

  .order-layout {
    grid-template-columns: 1fr;
  }

  .order-intro {
    position: static;
    text-align: center;
  }

  .order-intro p:last-child {
    margin-inline: auto;
  }

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

@media (max-width: 720px) {
  :root {
    --section-space: 64px;
  }

  body {
    font-size: 15px;
  }

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

  .brand-copy strong {
    font-size: 0.98rem;
  }

  .brand-copy small {
    font-size: 0.68rem;
  }

  .cube-logo {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .hero {
    padding-top: 32px;
    padding-bottom: 68px;
  }

  .hero-layout {
    gap: 30px;
  }

  .image-shell {
    border-radius: 20px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 11vw, 3.55rem);
  }

  .hero h1 span {
    font-size: 0.58em;
  }

  .lead {
    font-size: 1rem;
  }

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

  .hero-features article {
    min-height: 108px;
  }

  .service-grid,
  .portfolio-grid,
  .info-grid,
  .trust-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    margin-top: 32px;
  }

  .service-card {
    min-height: 0;
  }

  .portfolio-info p {
    min-height: 0;
  }

  .why-panel {
    grid-column: auto;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .why-panel > img {
    height: 300px;
    min-height: 0;
  }

  .trust-grid > div {
    justify-content: flex-start;
    padding-inline: 6px;
  }

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

  .payment-box {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-paypal {
    width: 100%;
    white-space: normal;
  }

  .section-title {
    grid-template-columns: minmax(18px, 1fr) auto minmax(18px, 1fr);
    gap: 10px;
  }

  .section-title h2 {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .portfolio-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .floating-wa {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 430px) {
  :root {
    --header-height: 72px;
  }

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

  .nav {
    gap: 10px;
  }

  .menu-btn {
    width: 42px;
    height: 42px;
  }

  .brand {
    gap: 8px;
  }

  .brand-copy strong {
    font-size: 0.91rem;
  }

  .brand-copy small {
    font-size: 0.61rem;
  }

  .cube-logo {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  .hero h1 {
    letter-spacing: -0.02em;
  }

  .hero-features {
    gap: 8px;
  }

  .hero-features article {
    min-height: 100px;
    padding: 12px 8px;
  }

  .portfolio-info,
  .process-panel,
  .material-panel,
  .why-panel > div,
  .order-form {
    padding: 20px;
  }

  .lightbox {
    padding: 10px;
  }
}

@media (orientation: landscape) and (max-height: 560px) and (max-width: 980px) {
  .header {
    position: sticky;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 26px;
  }

  .hero-content {
    text-align: right;
  }

  .hero h1 {
    font-size: clamp(2rem, 5.6vw, 3.1rem);
  }

  .lead {
    font-size: 0.9rem;
    line-height: 1.65;
  }

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

  .hero-features article {
    min-height: 88px;
    padding: 8px;
  }

  .hero-features b {
    margin-bottom: 2px;
    font-size: 1.05rem;
  }

  .hero-features strong {
    font-size: 0.78rem;
  }

  .hero-features small {
    font-size: 0.63rem;
  }
}

@media (min-width: 1600px) {
  :root {
    --container: 1500px;
  }

  body {
    font-size: 18px;
  }

  .nav {
    gap: 38px;
  }

  .hero-layout {
    gap: 100px;
  }

  .service-grid {
    gap: 24px;
  }

  .portfolio-grid {
    gap: 26px;
  }
}

@media (min-width: 2200px) {
  :root {
    --container: 1780px;
    --header-height: 104px;
  }

  body {
    font-size: 20px;
  }

  .brand-copy strong {
    font-size: 1.22rem;
  }

  .brand-copy small {
    font-size: 0.85rem;
  }

  .links a {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: clamp(4.4rem, 4.4vw, 6.8rem);
  }

  .lead {
    font-size: 1.25rem;
  }

  .service-card {
    min-height: 255px;
  }
}
