/* Base CSS shared across all sites.
   Keep ONLY non-design resets/structure here.
   Put colors, backgrounds, component styling in data/sites/<siteSlug>/site.css
*/
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  /* Default site-wide typography (body text). */
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Keep headings customizable per site via CSS variables if desired. */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading, inherit); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, 92vw); margin: 0 auto; }

/* -------- Responsive tables (structure only) -------- */
.tbl { width: 100%; }
.tblRow { width: 100%; }
.tblCell { min-width: 0; }

/* Support 4-column tables (prevents the last column from collapsing). */
.tbl.tbl--4 .tblRow .tblCell:nth-child(1) { width: 34%; }
.tbl.tbl--4 .tblRow .tblCell:nth-child(2) { width: 26%; }
.tbl.tbl--4 .tblRow .tblCell:nth-child(3) { width: 14%; white-space: nowrap; }
.tbl.tbl--4 .tblRow .tblCell:nth-child(4) { width: 26%; }

/* Fallback for 5+ columns: allow natural widths (site CSS can refine). */
.tbl.tbl--auto .tblCell { width: auto; }

/* -------- FAQ accordion (structure only, no colors) -------- */
.faq { margin: 24px 0; }
.faqItem { display: block; }
.faqQ { cursor: pointer; }
.faqQ::-webkit-details-marker { display: none; }
.faqA { padding-top: 10px; }


/* --- SITE OVERRIDES (pinup-brasil-net) --- */
/* =========================================================
   PIN-UP THEME — site.css (REWORK)
   ---------------------------------------------------------
   ВАЖНО:
   - Названия классов НЕ меняем (.header, .hero, .tbl и т.д.)
   - Визуал под Pin-Up: dark navy + orange accent
   ========================================================= */


/* =========================================================
   1) THEME VARIABLES
   ========================================================= */
:root{
  /* Backgrounds */
  --bg:#0b1018;              /* общий фон */
  --bg2:#0a0f16;             /* чуть темнее */
  --panel:rgba(19,27,39,0.94);   /* карточки */
  --panel2:rgba(15,22,33,0.94);  /* вторичный слой */
  --panelBorder:rgba(255,255,255,0.10);

  /* Text */
  --text:rgba(255,255,255,0.92);
  --muted:rgba(255,255,255,0.70);
  --muted2:rgba(255,255,255,0.55);

  /* Accent (Pin-Up orange) */
  --accent:#ff4a1a;
  --accent2:#ff5b2b;
  --accentText:#0a0f16;

  --danger:#ff3b30;
  --success:#34c759;

  /* Layout */
  --containerMax: 1120px;
  --containerPad: 18px;

  /* UI */
  --radiusCard: 12px;     /* Pin-Up выглядит чуть более “квадратно” */
  --radiusBtn: 10px;

  --shadowCard: 0 18px 55px rgba(0,0,0,0.55);
  --shadowCta: 0 16px 42px rgba(255,74,26,0.22);

  --line: rgba(255,255,255,0.10);
  --line2: rgba(255,255,255,0.08);
}


/* =========================================================
   2) GLOBAL / BODY
   ========================================================= */
body{
  color: var(--text);
  background: var(--bg);
  position: relative;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(820px 520px at 22% -5%, rgba(255,74,26,0.16), transparent 60%),
    radial-gradient(680px 420px at 86% 8%, rgba(255,255,255,0.06), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  background-repeat: no-repeat;
}


/* =========================================================
   3) GLOBAL CONTAINER
   ========================================================= */
.container{
  width: min(var(--containerMax), calc(100% - (var(--containerPad) * 2)));
  margin-inline: auto;
}

main,
.headerInner,
.footerInner,
.heroContent,
.content{
  width: min(var(--containerMax), calc(100% - (var(--containerPad) * 2)));
  margin-inline: auto;
}


/* =========================================================
   4) HEADER
   ========================================================= */
.header{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(9,13,19,0.88);
  border-bottom: 1px solid var(--line);
}

.headerInner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
}

.brand{display:flex; align-items:center; gap:10px;}
.brandLogo{
  width:118px;
  height:auto;
  display:block;
  flex:0 0 auto;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.55));
}
@media (max-width:520px){ .brandLogo{ width:104px; } }

.nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

.nav a{
  color: rgba(255,255,255,0.82);
  font-size:13px;
  font-weight:900;
  padding:8px 10px;
  border-radius:10px;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease, border-color 140ms ease;
  letter-spacing: 0.15px;
  border: 1px solid transparent;
}

.nav a:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color:#fff;
  transform: translateY(-1px);
}


/* =========================================================
   5) CTA BUTTON
   ========================================================= */
.ctaBtn{
  appearance:none;
  border:0;
  cursor:pointer;
  padding:12px 18px;
  border-radius: var(--radiusBtn);
  font-weight:980;
  letter-spacing:0.25px;

  background: linear-gradient(180deg, var(--accent2) 0%, var(--accent) 100%);
  color: var(--accentText);

  box-shadow: var(--shadowCta);
  transition: filter 120ms ease, transform 120ms ease, box-shadow 120ms ease;

  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:8px;
}

.ctaBtn:hover{
  filter: brightness(1.04);
  box-shadow: 0 18px 48px rgba(255,74,26,0.28);
}
.ctaBtn:active{ transform: translateY(1px); }

.ctaBtnSm{
  padding:10px 14px;
  font-size:13px;
  border-radius:10px;
}
.ctaBtnLg{
  padding:14px 22px;
  font-size:14px;
  border-radius:12px;
}


/* =========================================================
   6) HERO
   ========================================================= */
.hero{
  position:relative;
  min-height:520px;
  display:grid;
  align-items:center;
  overflow:hidden;
  border-bottom:1px solid var(--line);
}

.heroMedia{
  position:absolute;
  inset:0;
  z-index:0;
}

.heroMedia > *{
  position:absolute !important;
  inset:0 !important;
}

.heroImage{
  width:100% !important;
  height:100% !important;
  object-fit:cover;
  filter: saturate(1.05) contrast(1.02);
}

.heroOverlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(90deg, rgba(8,11,16,0.95) 0%, rgba(8,11,16,0.72) 42%, rgba(8,11,16,0.26) 100%),
    radial-gradient(900px 540px at 20% 22%, rgba(255,74,26,0.18), transparent 62%);
}

.heroContent{
  position:relative;
  z-index:2;
  text-align:left;
  padding:52px 0 44px;
}

.heroTitle{
  margin:0 0 14px;
  font-size:clamp(28px,4vw,52px);
  line-height:1.05;
  font-weight:1000;
  text-shadow: 0 12px 28px rgba(0,0,0,0.65);
  letter-spacing: -0.6px;
}

.heroSubtitle{
  margin:0 0 22px;
  max-width:70ch;
  color: rgba(255,255,255,0.78);
  font-size:clamp(15px,1.7vw,18px);
  line-height:1.55;
  text-shadow: 0 10px 24px rgba(0,0,0,0.55);
}

.heroCta{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  gap:12px;
}


/* =========================================================
   7) CONTENT
   ========================================================= */
.content{
  padding:28px 0 54px;
}

.contentCard{
  background:
    linear-gradient(180deg, rgba(20,28,40,0.96) 0%, rgba(14,21,32,0.94) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radiusCard);
  padding:20px;
  box-shadow: var(--shadowCard);
}

.contentCard h2{ margin:26px 0 12px; font-size:22px; }
.contentCard h3{ margin:18px 0 8px; font-size:18px; }

.contentCard p,
.contentCard li{
  color: rgba(255,255,255,0.82);
  line-height:1.75;
}

.contentCard ul{ padding-left:18px; }

.contentCard img{
  width:100%;
  height:auto;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,0.18);
  margin:16px 0;
}

.contentCard .ctaBtn{
  margin-left:auto;
  margin-right:auto;
}


/* =========================================================
   8) FIGURES / INLINE IMAGES
   ========================================================= */
.inlineFigure{
  margin:22px 0;
  width:100%;
  display:block;
}

.inlineFigure > img{
  display:block;
  margin:0 auto;
  max-width:100%;
  height:auto;
}

.inlineFigureCta{
  display:flex;
  justify-content:center;
  margin-top:14px;
  width:100%;
}

.content-image{
  display:block;
  margin:28px 0;
  width:100%;
}

.content-image img{
  display:block;
  margin:0 auto;
  max-width:100%;
  height:auto;
}


/* =========================================================
   9) TABLES (Desktop)
   ========================================================= */
.tbl{
  width:100%;
  margin:18px 0;
  border-radius:12px;
  overflow:hidden;
  border: 1px solid var(--line);
  background: rgba(14,21,32,0.94);
  box-shadow: 0 18px 55px rgba(0,0,0,0.50);

  display: table;
  border-collapse: separate;
  border-spacing: 0;
}

.tblRow{ display: table-row; }

.tblCell{
  display: table-cell;
  padding: 13px 14px;
  vertical-align: top;
  color: rgba(255,255,255,.88);
  line-height: 1.55;
  word-break: break-word;
  border-top: 1px solid var(--line2);
}

/* header row */
.tblRow:first-child .tblCell{
  border-top: 0;
  background:
    linear-gradient(180deg, rgba(255,74,26,0.18) 0%, rgba(255,74,26,0.10) 100%);
  color: rgba(255,255,255,0.96);
  font-weight: 980;
}

/* zebra + hover */
.tblRow:nth-child(odd):not(:first-child) .tblCell{
  background: rgba(255,255,255,0.02);
}
.tblRow:hover .tblCell{
  background: rgba(255,74,26,0.06);
}

/* first column */
.tblRow:not(:first-child) .tblCell:first-child{
  font-weight: 950;
  color: rgba(255,255,255,0.95);
}

/* Column widths */
.tbl.tbl--2 .tblRow .tblCell:nth-child(1){ width: 42%; }
.tbl.tbl--2 .tblRow .tblCell:nth-child(2){ width: 58%; }

.tbl.tbl--3 .tblRow .tblCell:nth-child(1){ width: 36%; }
.tbl.tbl--3 .tblRow .tblCell:nth-child(2){ width: 18%; white-space: nowrap; }
.tbl.tbl--3 .tblRow .tblCell:nth-child(3){ width: 46%; }

.tblCell[data-label]::before{ display:none; }


/* =========================================================
   TABLES — MOBILE (NO SCROLL, CARDS)
   Works for .tbl--2 / .tbl--3 / .tbl--4
   ========================================================= */
@media (max-width: 680px){

  .tbl{
    display:grid;
    gap:12px;
    border:0;
    background:transparent;
    box-shadow:none;
    margin:16px 0;
  }

  .tblRow{
    display:block;
    padding:14px 14px 12px;
    border-radius:12px;
    border:1px solid var(--line);
    background: rgba(14,21,32,0.94);
    box-shadow: 0 14px 42px rgba(0,0,0,0.48);
  }

  .tblCell{
    display:block;
    padding:0;
    border:0;
    line-height:1.45;
    color: rgba(255,255,255,0.92);

    word-break: normal !important;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  /* hide header row */
  .tblRow:first-child{
    display:none;
  }

  /* 2 columns */
  .tbl.tbl--2 .tblRow .tblCell:first-child{
    display:inline-flex;
    align-items:center;
    gap:8px;
    max-width:100%;
    font-size:12px;
    font-weight:980;
    letter-spacing:.30px;
    text-transform:uppercase;

    color: rgba(255,255,255,0.80);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding:8px 10px;
    margin:0 0 10px;

    position: relative;
  }

  .tbl.tbl--2 .tblRow .tblCell:first-child::after{
    content:"";
    width:10px;
    height:10px;
    border-radius:999px;
    background: rgba(255,74,26,0.95);
    box-shadow: 0 0 0 4px rgba(255,74,26,0.14);
    flex: 0 0 auto;
  }

  .tbl.tbl--2 .tblRow .tblCell:nth-child(2){
    font-size:14px;
    font-weight:780;
    color: rgba(255,255,255,0.94);
  }

  /* 3 / 4 columns */
  .tbl.tbl--3 .tblCell,
  .tbl.tbl--4 .tblCell{
    padding:10px 0;
    border-top:1px solid var(--line2);
  }
  .tbl.tbl--3 .tblCell:first-child,
  .tbl.tbl--4 .tblCell:first-child{
    border-top:0;
    padding-top:0;
  }

  .tbl.tbl--3 .tblCell[data-label]::before,
  .tbl.tbl--4 .tblCell[data-label]::before{
    content: attr(data-label);
    display:block;
    font-size:12px;
    font-weight:980;
    letter-spacing:.30px;
    text-transform:uppercase;
    color: rgba(255,255,255,0.66);
    margin-bottom:6px;
  }

  /* fallback labels */
  .tbl.tbl--3 .tblCell:not([data-label]):nth-child(1)::before{ content:"Campo 1"; }
  .tbl.tbl--3 .tblCell:not([data-label]):nth-child(2)::before{ content:"Campo 2"; }
  .tbl.tbl--3 .tblCell:not([data-label]):nth-child(3)::before{ content:"Campo 3"; }

  .tbl.tbl--4 .tblCell:not([data-label]):nth-child(1)::before{ content:"Campo 1"; }
  .tbl.tbl--4 .tblCell:not([data-label]):nth-child(2)::before{ content:"Campo 2"; }
  .tbl.tbl--4 .tblCell:not([data-label]):nth-child(3)::before{ content:"Campo 3"; }
  .tbl.tbl--4 .tblCell:not([data-label]):nth-child(4)::before{ content:"Campo 4"; }

  .tbl.tbl--3 .tblCell:not([data-label])::before,
  .tbl.tbl--4 .tblCell:not([data-label])::before{
    display:block;
    font-size:12px;
    font-weight:980;
    letter-spacing:.30px;
    text-transform:uppercase;
    color: rgba(255,255,255,0.66);
    margin-bottom:6px;
  }

  .tbl.tbl--3 .tblCell,
  .tbl.tbl--4 .tblCell{
    font-size:14px;
    font-weight:780;
  }
}


/* =========================================================
   11) FAQ
   ========================================================= */
.faq{
  margin-top:22px;
  background: rgba(14,21,32,0.94);
  border: 1px solid var(--line);
  border-radius:12px;
  padding:18px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.48);
}

.faqTitle{ margin:0 0 12px; font-size:20px; }

.faqItem{
  border-top:1px solid var(--line);
  padding:10px 0;
}
.faqItem:first-child{ border-top:0; }

.faqQ{
  cursor:pointer;
  font-weight:950;
  color: rgba(255,255,255,0.92);
  list-style:none;
}
.faqQ::-webkit-details-marker{ display:none; }

.faqQ::after{
  content:"+";
  float:right;
  opacity:0.95;
  color: var(--accent);
}

.faqItem[open] .faqQ::after{ content:"–"; }

.faqA{
  color: rgba(255,255,255,0.76);
  line-height:1.7;
  padding-top:8px;
}


/* =========================================================
   12) FOOTER
   ========================================================= */
.footer{
  margin-top:42px;
  border-top:1px solid var(--line);
  background: rgba(8,11,16,0.78);
}

.footerInner{
  padding:24px 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  text-align:center;
}

.footerLinks{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
}

.footerLinks a{
  color: rgba(255,255,255,0.88);
  font-size:13px;
  font-weight:900;
  padding:8px 10px;
  border-radius:12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  transition: background 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.footerLinks a:hover{
  background: rgba(255,74,26,0.10);
  border-color: rgba(255,74,26,0.22);
  transform: translateY(-1px);
}

.footerNote,
.footerText{
  color: var(--muted2);
  font-size:13px;
  line-height:1.5;
}


/* =========================================================
   13) RESPONSIVE
   ========================================================= */
@media (max-width: 640px){
  .hero{ min-height:400px; }
  .headerInner{ padding:11px 0; }
  .brandLogo{ width:102px; }
  .nav{ gap:8px; }
  .nav a{ padding:7px 9px; font-size:13px; }
  .contentCard{ padding:16px; }
}
