/* =========================================================
   VARIABLES — aluminum palette
========================================================= */
:root{
  --page:#f5f5f7;

  /* aluminum surfaces */
  --al-bg:#e6e7ea;
  --al-bg-2:#dcdde1;
  --al-border:rgba(0,0,0,.06);

  /* text */
  --ink:#0b0f1a;
  --text-main:#1b1f26;
  --text-muted:#5f6672;

  /* radii */
  --r-xl:28px;
  --r-lg:22px;
  --r-md:18px;

  /* shadows */
  --sh-main:0 18px 40px rgba(0,0,0,.12);
  --sh-soft:0 10px 26px rgba(0,0,0,.10);
  --sh-hover:0 22px 50px rgba(0,0,0,.16);

  --font:'Montserrat', system-ui, -apple-system, Segoe UI, Arial;
}

/* =========================================================
   PAGE BACKGROUND
========================================================= */
html, body{
  background:var(--page) !important;
  font-family:var(--font) !important;
  color:var(--ink) !important;
  -webkit-font-smoothing:antialiased;
}

body{
  position:relative;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  background:#ffffff;
  opacity:.55;
  backdrop-filter:blur(1px);
  -webkit-backdrop-filter:blur(1px);
  pointer-events:none;
  z-index:0;
}

/* lift content */
.facade,
.site, .page, .page-wrapper, .content, #page, #content{
  position:relative;
  z-index:1;
  background:transparent !important;
}

/* =========================================================
   LAYOUT
========================================================= */
.facade{
  max-width:1600px;
  margin:0 auto;
  padding:56px 20px 84px;
}

/* breadcrumbs */
.breadcrumbs{
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#3a3f48;
  margin-bottom:22px;
}
.breadcrumbs a{
  color:#3a3f48;
  text-decoration:none;
  border-bottom:1px solid transparent;
}
.breadcrumbs a:hover{
  border-bottom-color:#3a3f48;
}

.grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:32px;
  align-items:start;
}

/* =========================================================
   PANELS
========================================================= */
.panel{
  background:linear-gradient(180deg,var(--al-bg),var(--al-bg-2));
  border:1px solid var(--al-border);
  border-radius:var(--r-xl);
  box-shadow:var(--sh-main);
}

.panel,
.panel *{
  color:var(--text-main);
}

.panel .meta{
  color:var(--text-muted);
}

/* =========================================================
   LEFT
========================================================= */
.left{
  position:relative !important;
}

/* =========================================================
   PREVIEW
========================================================= */
.preview{ padding:20px; }

.stage{
  height:460px;
  border-radius:var(--r-lg);
  background:linear-gradient(145deg,#fbfbfd,#eef0f4);
  display:flex;
  align-items:center;
  justify-content:center;
}

.preview-image{
  width:100%;
  height:100%;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  display:none;
}

/* =========================================================
   COLORS
========================================================= */
.colors{
  padding:16px 20px 28px;
  border-top:1px solid rgba(0,0,0,.06);
  text-align:center;
}

.colors h4{
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#5f6672;
  margin-bottom:14px;
}

.swatches{
  display:grid;
  grid-template-columns:repeat(8, 1fr);
  gap:12px;
  max-width:360px;
  margin:0 auto;
}

.swatch{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:6px;
  border-radius:999px;
  background:#ffffff;
  border:1px solid rgba(0,0,0,.08);
  cursor:pointer;
  transition:.15s;
  box-shadow:var(--sh-soft);
}

.swatch-icon{
  width:56px;
  height:56px;
  border-radius:16px;
  background-size:cover;
  background-position:center;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.12),
    0 8px 18px rgba(0,0,0,.14);
}

.swatch-name{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:22px;
  padding:9px 12px;
  font-size:12px;
  background:#1b1f26;
  color:#fff;
  border-radius:10px;
  opacity:0;
  pointer-events:none;
  transition:.15s;
  z-index:2147483647;
}

.swatch:hover .swatch-name{
  opacity:1;
}

.swatch.active{
  background:linear-gradient(180deg,#d7d9df,#c9ccd3);
}

/* =========================================================
   RIGHT
========================================================= */
.right{ padding:26px 28px 30px; }

h1{
  font-size:40px;
  font-weight:800;
  letter-spacing:-0.035em;
  margin-bottom:12px;
  background:linear-gradient(90deg,#2b2f36,#6b7280);
  -webkit-background-clip:text;
  color:transparent;
}

.meta{
  font-size:14px;
  line-height:1.6;
}

/* =========================================================
   SECTIONS
========================================================= */
.section{
  margin-top:12px;
  padding:14px;
  background:#ffffff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:var(--r-md);
  box-shadow:var(--sh-soft);
}

.section h3{
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#5f6672;
  margin-bottom:8px;
}

.section p,
.section li{
  font-size:14px;
  line-height:1.75;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media(max-width:980px){
  .grid{ grid-template-columns:1fr; }
  h1{ font-size:34px; }
}
/* =========================
   FIX SWATCHES BEHAVIOR
========================= */

/* нормальная адаптивная сетка */
.swatches{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
  max-width:100%;
  margin:0 auto;
}

/* свотч — якорь для тултипа */
.swatch{
  position:relative;
}

/* тултип — ВНУТРИ карточки */
.swatch-name{
  position:absolute;
  left:50%;
  bottom:calc(100% + 10px);
  transform:translateX(-50%);
  padding:8px 12px;
  font-size:11px;
  background:#1b1f26;
  color:#fff;
  border-radius:8px;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity .15s ease, transform .15s ease;
  z-index:10;
}

/* лёгкое появление */
.swatch:hover .swatch-name{
  opacity:1;
  transform:translateX(-50%) translateY(-2px);
}

/* чтобы тултип не обрезался */
.colors{
  overflow:visible;
}

/* =========================
   MOBILE — аккуратно
========================= */
@media(max-width:640px){
  .swatches{
    justify-content:flex-start;
  }

  /* на мобиле тултипы не нужны */
  .swatch-name{
    display:none;
  }
}
/* =========================
   FACADES LINK BUTTON
========================= */

.facades-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 22px;
  background:linear-gradient(180deg,#2b2f36,#1b1f26);
  color:#ffffff;
  text-decoration:none;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  border-radius:999px;
  box-shadow:var(--sh-soft);
  transition:.2s;
}

.facades-link:hover{
  transform:translateY(-1px);
  box-shadow:var(--sh-hover);
}
