:root {
  --black: #070b0e;
  --ink: #101419;
  --muted: #646b73;
  --paper: #f4f5f6;
  --white: #fff;
  --yellow: #ffc317;
  --yellow-dark: #d99a00;
  --line: rgba(255, 255, 255, .16);
  --soft-line: #dfe3e7;
  --shadow: 0 20px 60px rgba(8, 12, 16, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; border-radius: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 0 34px;
  color: var(--white);
  background: rgba(5, 9, 12, .97);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
}

.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 210px; }
.brand-mark { color: var(--yellow); font-size: clamp(34px, 4vw, 48px); font-weight: 900; font-style: italic; }
.brand strong, .brand small { display: block; line-height: 1; }
.brand strong { font-size: 25px; font-weight: 900; }
.brand small { margin-top: 4px; color: var(--yellow); font-size: 12px; font-weight: 800; }

.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 30px); }
.main-nav a { position: relative; padding: 31px 0 27px; color: rgba(255, 255, 255, .9); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.main-nav a.active, .main-nav a:hover { color: var(--yellow); }
.main-nav a.active::after { position: absolute; right: 0; bottom: 13px; left: 0; height: 3px; background: var(--yellow); content: ""; }
.header-actions { display: flex; align-items: center; justify-content: end; gap: 16px; }
.saved { font-size: 13px; font-weight: 800; text-transform: uppercase; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
}
.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 950;
}
.lang-switch a.active {
  color: #0b0f13;
  background: var(--yellow);
}

.primary-btn, .dark-btn, .admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 6px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}
.primary-btn, .admin-btn { color: #0b0f13; background: linear-gradient(180deg, #ffd34a 0%, var(--yellow) 100%); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.dark-btn { color: var(--white); background: var(--black); }
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 6px;
  color: var(--white);
  background: #18b956;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14);
}
.whatsapp-btn:hover { background: #10a84a; }
.whatsapp-btn.wide { width: 100%; margin-bottom: 12px; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  min-height: 560px;
  padding: 44px 40px 28px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(90deg, rgba(5, 8, 10, .98), rgba(5, 8, 10, .7)), #111;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background: url("reference-design.png") center top / cover no-repeat; filter: saturate(1.08) contrast(1.08); opacity: .62; }
.hero::after { position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, rgba(5, 8, 10, .86), transparent 45%); content: ""; }
.hero-copy, .hero-map { position: relative; z-index: 1; }
.hero-copy { max-width: 800px; }
.eyebrow { margin: 0 0 14px; color: var(--yellow); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.eyebrow.dark { color: var(--yellow-dark); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 14px; font-size: clamp(42px, 6vw, 76px); line-height: .98; font-weight: 950; text-transform: uppercase; text-wrap: balance; }
.hero h1 { color: var(--yellow); }
.hero-text { max-width: 620px; margin-bottom: 26px; color: rgba(255, 255, 255, .92); font-size: clamp(17px, 2vw, 22px); line-height: 1.45; }

.search-panel, .filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) auto;
  align-items: stretch;
  gap: 0;
  max-width: 940px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 16, 20, .84);
  box-shadow: var(--shadow);
}
.search-panel label { display: grid; gap: 4px; padding: 8px 18px; border-right: 1px solid var(--line); }
.search-panel span { color: rgba(255, 255, 255, .76); font-size: 12px; }
input, select, textarea { width: 100%; border: 1px solid var(--soft-line); border-radius: 6px; padding: 12px 13px; color: var(--ink); background: var(--white); font: inherit; }
.search-panel input, .search-panel select { border: 0; padding: 0; color: var(--white); background: transparent; font-weight: 800; }
.search-panel option { color: var(--ink); }
textarea { resize: vertical; min-height: 110px; }
.search-btn { min-width: 210px; }

.trust-row { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 16px; max-width: 900px; margin-top: 32px; }
.trust-row span { min-height: 58px; padding: 15px 12px; border-left: 1px solid var(--line); color: rgba(255, 255, 255, .92); font-size: 15px; font-weight: 700; line-height: 1.3; }

.hero-map { align-self: end; justify-self: end; width: min(100%, 340px); padding: 24px; border: 1px solid rgba(255, 195, 23, .42); border-radius: 8px; background: rgba(9, 12, 15, .78); box-shadow: var(--shadow); }
.hero-map strong { display: block; margin-bottom: 18px; font-size: 20px; line-height: 1.15; text-transform: uppercase; }
.hero-map ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hero-map li { position: relative; padding-left: 24px; font-weight: 800; }
.hero-map li::before { position: absolute; left: 0; color: var(--yellow); content: "●"; }

.section { padding: 34px 40px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section h2 { margin-bottom: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 950; text-transform: uppercase; }
.section-heading a { color: var(--yellow-dark); font-weight: 800; }

.category-grid { display: grid; grid-template-columns: repeat(6, minmax(145px, 1fr)); gap: 12px; }
.category-card { position: relative; min-height: 220px; overflow: hidden; padding: 18px 14px 14px; border-radius: 8px; background: linear-gradient(145deg, #fff, #d9dde1 48%, #737a81); box-shadow: 0 10px 24px rgba(12, 16, 20, .16); }
.category-card::after, .equipment-media::after { position: absolute; right: -18px; bottom: -22px; width: 150px; height: 96px; border-radius: 16px 16px 4px 4px; background: rgba(8, 12, 16, .84); clip-path: polygon(10% 42%, 24% 12%, 78% 12%, 92% 46%, 100% 46%, 100% 82%, 0 82%, 0 46%); content: ""; }
.card-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 9px; border-radius: 6px; color: var(--yellow); background: var(--black); font-weight: 900; }
.category-card h3 { position: relative; z-index: 1; margin-bottom: 7px; font-size: 15px; line-height: 1.2; }
.category-card p { position: relative; z-index: 1; max-width: 160px; color: #252b31; font-size: 12px; line-height: 1.35; }
.category-price { position: relative; z-index: 1; display: inline-block; margin-top: 6px; padding: 7px 9px; border-radius: 5px; color: #0b0f13; background: rgba(255, 195, 23, .92); font-size: 12px; line-height: 1.1; }
.card-arrow { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; background: var(--yellow); font-size: 22px; font-weight: 900; }

.split-section, .detail-layout, .contact-grid, .service-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.equipment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.equipment-card { overflow: hidden; border-radius: 8px; background: var(--white); box-shadow: 0 10px 26px rgba(12, 16, 20, .1); }
.equipment-media { position: relative; min-height: 160px; overflow: hidden; background: linear-gradient(145deg, #e8ebee, #828990); }
.equipment-card a.equipment-media { display: block; color: inherit; }
.equipment-card a.equipment-media:hover img { transform: scale(1.035); }
.equipment-media img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.equipment-media img { transition: transform .25s ease; }
.equipment-media.large { min-height: 420px; border-radius: 8px; }
.equipment-body { padding: 18px; }
.equipment-body span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.equipment-body h2, .equipment-body h3 { margin: 8px 0; font-size: 20px; line-height: 1.2; }
.equipment-body p { color: var(--muted); line-height: 1.45; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-row a { color: var(--yellow-dark); font-weight: 900; }

.advert-card, .request-card, .contact-card, .detail-card {
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.advert-card { color: var(--white); background: linear-gradient(135deg, rgba(7, 11, 14, .98), rgba(15, 21, 26, .92)), url("reference-design.png") right bottom / 120% auto no-repeat; }
.advert-card h2 { max-width: 300px; margin-bottom: 12px; font-size: 25px; line-height: 1.12; }
.advert-card p, .advert-card li { color: rgba(255, 255, 255, .88); line-height: 1.45; }
.advert-card ul { display: grid; gap: 14px; margin: 24px 0; padding: 0; list-style: none; }
.advert-card li { position: relative; padding-left: 28px; }
.advert-card li::before { position: absolute; left: 0; color: var(--yellow); content: "✓"; }

.page-hero { padding: 70px 40px; color: var(--white); background: linear-gradient(90deg, rgba(5, 8, 10, .96), rgba(5, 8, 10, .68)), url("reference-design.png") center / cover no-repeat; }
.page-hero.compact { padding-block: 54px; }
.page-hero p { max-width: 760px; font-size: 20px; line-height: 1.45; }
.demolition-hero h1 { color: var(--yellow); }
.filter-bar { grid-template-columns: minmax(180px, 260px) minmax(180px, 1fr) auto; max-width: none; margin-bottom: 24px; background: var(--white); border-color: var(--soft-line); }
.detail-layout { grid-template-columns: minmax(0, 1fr) 420px; }
.detail-media { display: grid; gap: 12px; }
.request-card form { display: grid; gap: 12px; }
.price-list { display: grid; gap: 8px; margin: 20px 0; padding: 18px; border-radius: 8px; background: #f7f8f9; }
.price-list strong { font-size: 25px; color: var(--yellow-dark); }
.spec-list { display: grid; gap: 8px; margin: 0 0 22px; padding-left: 20px; }
.notice { padding: 12px; border-radius: 6px; background: #e9f8ee; color: #126b2f; font-weight: 800; }
.service-price { display: inline-block; margin-top: 16px; color: var(--yellow-dark); font-size: 24px; }
.demolition-section {
  background:
    linear-gradient(135deg, rgba(7, 11, 14, .96), rgba(24, 29, 34, .9)),
    url("reference-design.png") center / cover no-repeat;
  color: var(--white);
}
.demolition-section .section-heading {
  align-items: end;
}
.demolition-section h2 {
  color: var(--white);
}
.demolition-section .section-heading a {
  color: var(--yellow);
}
.demolition-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}
.demolition-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
}
.demolition-card.main {
  background: rgba(255, 195, 23, .14);
  border-color: rgba(255, 195, 23, .36);
}
.demolition-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--yellow);
  font-weight: 950;
}
.demolition-card h3 {
  margin-bottom: 12px;
  font-size: 25px;
  line-height: 1.08;
  text-transform: uppercase;
}
.demolition-card p {
  color: rgba(255, 255, 255, .86);
  line-height: 1.5;
}
.demolition-card strong,
.demolition-card a {
  color: var(--yellow);
  font-weight: 950;
}
.catalog-demolition-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding: 18px 20px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, #080c10, #242b31);
  box-shadow: 0 12px 30px rgba(12, 16, 20, .14);
}
.catalog-demolition-link span {
  color: var(--yellow);
  font-weight: 950;
  text-transform: uppercase;
}
.catalog-demolition-link strong {
  line-height: 1.25;
}
.catalog-demolition-link em {
  color: var(--yellow);
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border-radius: 8px; background: var(--white); box-shadow: 0 10px 26px rgba(12, 16, 20, .08); }
.steps.vertical { grid-template-columns: 1fr; }
.steps article { min-height: 128px; padding: 22px; border-right: 1px solid #e2e4e6; }
.steps.vertical article { border-right: 0; border-bottom: 1px solid #e2e4e6; }
.steps span { display: block; margin-bottom: 9px; color: var(--yellow-dark); font-size: 13px; font-weight: 950; }
.steps h3 { margin-bottom: 6px; font-size: 17px; }
.steps p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr auto auto; align-items: center; gap: 28px; padding: 24px 40px; color: var(--white); background: linear-gradient(112deg, var(--black) 0%, var(--black) 63%, var(--yellow) 63%, var(--yellow) 100%); }
.site-footer div { display: grid; gap: 5px; }
.site-footer strong { text-transform: uppercase; }
.site-footer span { color: rgba(255, 255, 255, .78); line-height: 1.4; }
.phone-block span, .phone-block a { color: #12161a; }
.phone-block a { font-size: 25px; font-weight: 950; }
.footer-actions {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
}
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px 0 12px;
  border-radius: 999px;
  color: var(--white);
  background: #18b956;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(5, 9, 12, .28);
}
.floating-whatsapp span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #18b956;
  background: var(--white);
  font-size: 12px;
}

.admin-body { min-height: 100vh; background: #eef1f4; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; padding: 24px; color: var(--white); background: var(--black); }
.admin-brand { margin-bottom: 30px; }
.admin-sidebar nav { display: grid; gap: 8px; }
.admin-sidebar nav a { padding: 12px 14px; border-radius: 7px; color: rgba(255, 255, 255, .86); font-weight: 800; }
.admin-sidebar nav a:hover { color: var(--black); background: var(--yellow); }
.admin-main { margin-left: 260px; padding: 28px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.admin-top h1 { margin: 0; color: var(--ink); font-size: 34px; text-transform: none; }
.admin-card { padding: 22px; border-radius: 10px; background: var(--white); box-shadow: 0 12px 34px rgba(12, 16, 20, .08); }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(120deg, #090d11, #242a30); }
.login-card { width: min(100%, 420px); display: grid; gap: 14px; }
.login-card h1 { font-size: 34px; color: var(--ink); text-transform: none; }
.admin-form { display: grid; gap: 14px; }
.admin-form label { display: grid; gap: 7px; color: #3d454d; font-weight: 800; }
.check { display: flex !important; align-items: center; gap: 8px; }
.check input { width: auto; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .65fr); gap: 18px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.metric-grid article { padding: 22px; border-radius: 10px; color: var(--white); background: linear-gradient(135deg, #0b1014, #2a3036); box-shadow: var(--shadow); }
.metric-grid span { color: rgba(255, 255, 255, .68); font-weight: 800; }
.metric-grid strong { display: block; margin-top: 10px; color: var(--yellow); font-size: 34px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px; border-bottom: 1px solid var(--soft-line); text-align: left; vertical-align: top; }
.admin-table a { color: var(--yellow-dark); font-weight: 800; }
.row-line { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--soft-line); padding-bottom: 10px; }
.alert { padding: 12px; border-radius: 6px; background: #ffe9e9; color: #9f2020; font-weight: 800; }
.ghost { background: #e7eaee; color: var(--ink); }
.media-list p { padding-bottom: 12px; border-bottom: 1px solid var(--soft-line); }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto auto; }
  .main-nav { display: none; }
  .hero, .split-section, .detail-layout, .contact-grid, .service-grid { grid-template-columns: 1fr; }
  .hero-map { justify-self: start; margin-top: 24px; }
  .category-grid, .equipment-grid, .catalog-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .demolition-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; background: var(--black); }
  .phone-block span, .phone-block a { color: var(--yellow); }
  .admin-sidebar { position: static; width: auto; }
  .admin-main { margin-left: 0; }
}

@media (max-width: 760px) {
  .site-header, .hero, .section, .site-footer, .page-hero { padding-right: 18px; padding-left: 18px; }
  .site-header { grid-template-columns: 1fr; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
  .header-actions { justify-content: start; flex-wrap: wrap; }
  .hero { min-height: auto; padding-top: 34px; }
  .search-panel, .filter-bar, .trust-row, .steps, .site-footer, .form-grid, .admin-grid, .metric-grid { grid-template-columns: 1fr; }
  .search-panel label { border-right: 0; border-bottom: 1px solid var(--line); }
  .category-grid, .equipment-grid, .catalog-grid { grid-template-columns: 1fr 1fr; }
  .catalog-demolition-link { grid-template-columns: 1fr; }
  .footer-actions { align-items: stretch; flex-direction: column; }
  .floating-whatsapp { right: 14px; bottom: 14px; min-height: 46px; padding-right: 14px; font-size: 13px; }
  .section-heading, .admin-top { align-items: flex-start; flex-direction: column; }
  .steps article { border-right: 0; border-bottom: 1px solid #e2e4e6; }
}

@media (max-width: 480px) {
  .category-grid, .equipment-grid, .catalog-grid { grid-template-columns: 1fr; }
  .primary-btn, .dark-btn, .admin-btn { width: 100%; }
  .whatsapp-btn { width: 100%; }
}

/* Detail page polish */
.detail-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  grid-template-areas:
    "media info"
    "media request";
  gap: 24px;
}

.detail-media {
  grid-area: media;
  align-self: start;
}

.detail-media > img,
.detail-media > video {
  width: 100%;
  max-height: 620px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-card {
  grid-area: info;
  overflow: hidden;
}

.detail-layout > .request-card {
  grid-area: request;
}

.detail-card h1 {
  max-width: 100%;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(34px, 3.2vw, 54px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.detail-card h2 {
  margin: 28px 0 10px;
  font-size: 28px;
  line-height: 1.1;
  text-transform: uppercase;
}

.detail-card > p {
  color: #2f3740;
  font-size: 16px;
  line-height: 1.45;
}

.price-list {
  gap: 9px;
  margin: 20px 0;
  padding: 20px;
  background: #f1f3f5;
}

.price-list strong {
  font-size: clamp(22px, 2vw, 29px);
}

.spec-list {
  gap: 9px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .detail-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "media" "info" "request";
  }
}

@media (max-width: 760px) {
  .detail-card h1 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .detail-media > img,
  .detail-media > video {
    max-height: none;
    aspect-ratio: 4 / 3;
  }
}
