/* Chow Gar – graficzna strona główna */
.cg-root,.cg-root *{box-sizing:border-box}
.cg-root{--cg-gold:#e7b450;--cg-bordo:#89070d;--cg-deep:#160305;color:#fff;background:radial-gradient(ellipse at 75% 45%,#3d070a 0%,#200608 45%,#100407 100%);font-family:Arial,Helvetica,sans-serif;width:100%;min-height:100vh;overflow:hidden;line-height:1.3}
.cg-root a{text-decoration:none;color:inherit}.cg-root img{max-width:100%;display:block}.cg-root button{font:inherit}.cg-root a:focus-visible,.cg-root button:focus-visible{outline:3px solid #fff;outline-offset:5px}
.cg-header{position:relative;z-index:3;min-height:107px;background:linear-gradient(135deg,transparent 0 4%,#a10a12 4% 4.5%,transparent 4.5% 17%,#1b0b0c 17% 100%),linear-gradient(100deg,#260708,#100508);box-shadow:0 3px 18px #0009}
.cg-header-inner{min-height:107px;max-width:1536px;padding:0 25px 0 268px;margin:auto;display:flex;align-items:center;gap:21px}
.cg-logo{width:200px;height:200px;position:absolute;top:6px;left:max(35px,calc((100vw - 1536px)/2 + 58px));z-index:5;border-radius:50%;filter:drop-shadow(0 1px 2px #000);overflow:hidden;border:3px solid #eee;background:#fff}
.cg-logo img{width:100%;height:100%;object-fit:cover}
.cg-brand{font-family:Impact,'Arial Narrow',Arial,sans-serif;transform:skew(-7deg);white-space:nowrap;font-style:italic;font-size:clamp(23px,2.7vw,40px);font-weight:900;letter-spacing:-.5px;border-left:3px solid var(--cg-gold);padding-left:20px;line-height:1.1}
.cg-brand-accent{color:var(--cg-gold)}
.cg-nav{margin-left:auto;display:flex;align-items:center;gap:clamp(15px,2.9vw,48px);font-size:clamp(15px,1.5vw,23px);white-space:nowrap}
.cg-nav>a:not(.cg-nav-join):hover,.cg-social a:hover{color:var(--cg-gold)}
.cg-button{display:inline-block;padding:9px 22px;border:3px solid var(--cg-gold);transform:skew(-20deg);font-size:clamp(17px,1.65vw,27px);font-weight:700;font-style:italic;white-space:nowrap;box-shadow:0 5px 12px #000a;transition:background .15s,filter .15s}
.cg-button>span{display:block;transform:skew(20deg)}
.cg-button:hover{filter:brightness(1.2)}
.cg-button-red{background:linear-gradient(180deg,#d30d18,#93060d)}
.cg-button-outline{background:linear-gradient(180deg,#1c1010,#080505)}
.cg-nav-join{padding:8px 22px;font-size:clamp(15px,1.6vw,26px)}
.cg-menu-toggle{display:none}
.cg-pattern-bar{height:21px;background:#240407 url(meander.svg) repeat-x center center;background-size:72px 20px;border-top:2px solid #ecb951;border-bottom:2px solid #e7a735}
.cg-header + .cg-pattern-bar{position:relative;z-index:2}
.cg-hero{height:482px;position:relative;background:radial-gradient(ellipse at 50% 110%,#6e180c 0%,#2c0607 34%,#130507 85%)}
.cg-hero-photo{position:absolute;inset:0 0 0 39%;background-image:url(hero.webp);background-size:cover;background-position:center center}
.cg-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(18,3,5,1) 0%,rgba(22,4,7,.96) 28%,rgba(22,4,7,.6) 39%,transparent 50%)}
.cg-corner-accent{pointer-events:none;position:absolute;left:-100px;top:-110px;width:405px;height:460px;border-left:28px solid #880912;transform:rotate(46deg);opacity:.35}
.cg-hero-inner{position:relative;z-index:1;max-width:1536px;height:100%;margin:auto;display:flex;align-items:center;padding:28px 0 16px 65px}
.cg-hero-copy{max-width:590px}
.cg-root h1,.cg-root h2,.cg-card-title{font-family:Impact,'Arial Black','Arial Narrow',sans-serif;font-weight:900;font-style:italic;transform:skew(-7deg);text-shadow:3px 4px 2px #000;letter-spacing:.2px}
.cg-root h1{font-size:clamp(43px,4.7vw,72px);line-height:1.08;margin:0 0 2px}
.cg-root h1 span{display:block;white-space:nowrap}
.cg-hero-gold{color:var(--cg-gold);background:linear-gradient(#ffe9a1,#d58d26);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.cg-subtitle{font-size:clamp(20px,2vw,32px);font-style:italic;margin:6px 0 8px 14px;white-space:nowrap}
.cg-rule,.cg-heading-rule,.cg-footer-rule{display:flex;align-items:center;justify-content:center;gap:0}
.cg-rule{max-width:400px;margin:12px auto 23px}.cg-rule span,.cg-heading-rule span,.cg-footer-rule span{height:1px;background:linear-gradient(90deg,transparent,var(--cg-gold));flex:1}.cg-rule span:last-child,.cg-heading-rule span:last-child,.cg-footer-rule span:last-child{transform:scaleX(-1)}.cg-rule img,.cg-heading-rule img,.cg-footer-rule img{width:51px;height:29px;object-fit:contain}
.cg-actions{display:flex;align-items:center;gap:23px;margin-top:8px}
.cg-groups{padding:3px 35px 18px;background:radial-gradient(ellipse at center,#4e080d,#1b0305 65%,#330305)}
.cg-section-heading{max-width:1536px;margin:0 auto 13px;display:flex;align-items:center;gap:28px}.cg-root h2{font-size:clamp(31px,3.3vw,48px);margin:0 0 0 65px;white-space:nowrap;line-height:1.25}.cg-heading-rule{flex:1;max-width:900px}
.cg-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:1470px;margin:auto}
.cg-card{height:238px;position:relative;isolation:isolate;overflow:hidden;border:3px solid var(--cg-gold);clip-path:polygon(17px 0,100% 0,100% calc(100% - 20px),calc(100% - 17px) 100%,0 100%,0 17px);background:#250909;transition:transform .18s,filter .18s}
.cg-card:hover{transform:translateY(-5px);filter:brightness(1.1)}
.cg-card-photo{width:100%;height:100%;object-fit:cover;object-position:center 16%}
.cg-card-shade{position:absolute;inset:40% 0 0;background:linear-gradient(transparent,#000b 85%);pointer-events:none}
.cg-card-cut{position:absolute;right:-18px;bottom:6px;height:38px;width:160px;background:repeating-linear-gradient(155deg,#a5080e 0 7px,#ee1923 7px 10px,#210406 10px 15px);transform:rotate(-16deg);clip-path:polygon(0 70%,100% 0,100% 100%,0 100%);opacity:.9}
.cg-card-corner{position:absolute;width:22px;height:22px;border:2px solid var(--cg-gold);pointer-events:none}.cg-card-corner-top{right:3px;top:3px;border-left:0;border-bottom:0}.cg-card-corner-bottom{left:3px;bottom:3px;border-top:0;border-right:0}
.cg-card-title{position:absolute;bottom:12px;left:26px;z-index:1;font-size:clamp(27px,2.65vw,39px);line-height:1;color:white}
.cg-footer{min-height:58px;max-width:1536px;margin:auto;display:flex;align-items:center;gap:30px;padding:0 40px;background:linear-gradient(90deg,#1e0406,#160406)}
.cg-address{font-size:21px;white-space:nowrap}.cg-footer-rule{flex:1}.cg-social{display:flex;gap:50px;font-size:21px;white-space:nowrap}
@media(min-width:1537px){.cg-hero{height:min(37vw,600px)}.cg-hero-photo{background-size:cover}.cg-hero-inner{padding-left:65px}.cg-card{height:clamp(238px,17vw,280px)}}
@media(max-width:1250px){.cg-header-inner{padding-left:190px;gap:10px}.cg-logo{width:150px;height:150px;left:30px}.cg-brand{font-size:25px;padding-left:12px}.cg-nav{gap:18px;font-size:16px}.cg-nav-join{font-size:17px}.cg-hero-inner{padding-left:45px}.cg-hero-copy{max-width:540px}.cg-root h1{font-size:56px}.cg-card{height:200px}.cg-card-title{font-size:28px;left:15px}.cg-root h2{margin-left:24px}}
@media(max-width:950px){.cg-header,.cg-header-inner{min-height:92px}.cg-header-inner{padding:0 25px 0 126px}.cg-logo{height:106px;width:106px;left:13px;top:8px}.cg-brand{font-size:25px}.cg-menu-toggle{display:flex;margin-left:auto;flex-direction:column;justify-content:center;gap:6px;padding:14px;background:#73080f;border:2px solid var(--cg-gold);cursor:pointer}.cg-menu-toggle span{display:block;width:25px;height:2px;background:#fff}.cg-nav{display:none;position:absolute;top:92px;left:0;right:0;padding:20px 25px;background:#190407;border-bottom:2px solid var(--cg-gold);flex-direction:column;align-items:stretch;gap:16px;text-align:center;z-index:7}.cg-nav.cg-nav-open{display:flex}.cg-hero{height:450px}.cg-hero-photo{left:24%;opacity:.75}.cg-hero-overlay{background:linear-gradient(90deg,#100406 0%,#180507ed 38%,#13030566 80%)}.cg-hero-copy{max-width:500px}.cg-root h1{font-size:52px}.cg-groups{padding:8px 20px 22px}.cg-grid{grid-template-columns:repeat(2,1fr);gap:15px}.cg-card{height:clamp(190px,29vw,260px)}.cg-root h2{margin-left:0}.cg-footer{flex-wrap:wrap;justify-content:space-between;gap:10px;padding:15px 24px}.cg-footer-rule{display:none}.cg-social{gap:25px}}
@media(max-width:600px){.cg-header,.cg-header-inner{min-height:76px}.cg-header-inner{padding-left:88px;padding-right:14px}.cg-logo{width:74px;height:74px;top:4px;left:8px;border-width:2px}.cg-brand{font-size:clamp(17px,4.5vw,23px);padding-left:9px;border-left-width:2px;white-space:normal}.cg-menu-toggle{padding:11px;gap:4px}.cg-menu-toggle span{width:21px}.cg-nav{top:76px}.cg-pattern-bar{height:13px;background-size:54px 15px}.cg-hero{height:auto;min-height:575px;display:flex;align-items:flex-end}.cg-hero-photo{inset:0 0 34% 0;background-position:61% center;opacity:.98}.cg-hero-overlay{background:linear-gradient(0deg,#160305 0%,#160305 21%,#180305d9 40%,#16030500 70%)}.cg-hero-inner{width:100%;height:auto;min-height:575px;align-items:flex-end;padding:275px 22px 28px}.cg-hero-copy{width:100%;max-width:none}.cg-root h1{font-size:clamp(36px,9.1vw,54px);line-height:1.07}.cg-subtitle{font-size:clamp(16px,4.2vw,22px);margin:9px 0 0;white-space:normal}.cg-rule{margin:10px auto 17px}.cg-actions{flex-direction:column;align-items:stretch;gap:13px;margin:0 8px}.cg-button{text-align:center;font-size:20px;padding:9px 11px}.cg-groups{padding:14px 12px 18px}.cg-section-heading{display:block;margin-bottom:16px}.cg-root h2{font-size:33px;margin:0 0 4px 8px}.cg-heading-rule{max-width:100%}.cg-grid{gap:12px;grid-template-columns:1fr}.cg-card{height:clamp(225px,57vw,325px)}.cg-card-title{font-size:35px;left:22px}.cg-footer{padding:16px;flex-direction:column;gap:14px;text-align:center}.cg-address{font-size:16px}.cg-social{font-size:17px;gap:30px}}
@media(prefers-reduced-motion:reduce){.cg-card,.cg-button{transition:none}}


/* Chow Gar v1.0.2 – korekta 1:1 projektu klienta */
/* Zapewniamy przestrzeń dla dolnych części liter (g, j, y). */
.cg-root .cg-hero-copy{max-width:680px;position:relative;z-index:2;overflow:visible}
.cg-root h1{
  font-size:clamp(43px,4.15vw,64px);
  line-height:1.16;
  margin:0 0 2px;
  padding:0 0 .13em;
  letter-spacing:-.7px;
  overflow:visible;
  text-shadow:none;
}
.cg-root h1 span{display:block;white-space:nowrap;overflow:visible}
.cg-root h1 .cg-hero-white{text-shadow:2px 3px 2px #000}
.cg-root h1 .cg-hero-gold{
  color:#e8b14f;
  background:linear-gradient(180deg,#ffe09a 7%,#e8b14f 52%,#c78623 92%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:none;
  filter:none;
  line-height:1.24;
  padding:0 0 .18em;
  margin-bottom:-.14em;
}
.cg-root .cg-subtitle{margin-top:0}
/* Złoty separator o delikatnej linii i gęstym węźle pośrodku. */
.cg-root .cg-rule{width:min(100%,440px);max-width:none;margin:13px auto 22px}
.cg-root .cg-rule span{height:2px;background:linear-gradient(90deg,transparent 0%,#cd9132 18%,#f0c663 60%,#dba240 100%)}
.cg-root .cg-rule span:last-child{transform:scaleX(-1)}
.cg-root .cg-rule img{width:64px;height:37px;object-fit:contain;margin:0 -2px}
/* Fotografia pozostaje po prawej, a copy nie jest maskowane przez overlay. */
.cg-root .cg-hero-overlay{pointer-events:none;background:linear-gradient(90deg,#160305 0%,rgba(22,3,5,.98) 26%,rgba(22,3,5,.84) 36%,rgba(22,3,5,.32) 49%,transparent 63%)}
/* Ramka odrysowana jako osobny SVG: lewy górny skos, prawy górny ornament, prawy dolny skos. */
.cg-root .cg-card{
  border:0;
  clip-path:polygon(22px 0,100% 0,100% calc(100% - 22px),calc(100% - 22px) 100%,0 100%,0 22px);
}
.cg-root .cg-card::before{
  content:"";position:absolute;inset:0;
  background:url(card-frame.svg) center/100% 100% no-repeat;
  z-index:5;pointer-events:none;
}
.cg-root .cg-card-corner{display:none}
.cg-root .cg-card-cut{right:-8px;bottom:2px;width:145px;height:36px;opacity:.92}
.cg-root .cg-card-title{text-shadow:2px 3px 2px #000}
@media(max-width:1250px){
  .cg-root .cg-hero-copy{max-width:630px}
  .cg-root h1{font-size:clamp(43px,4.5vw,60px)}
}
@media(max-width:950px){
  .cg-root .cg-hero-copy{max-width:100%}
  .cg-root h1{font-size:clamp(36px,5.4vw,50px)}
  .cg-root .cg-hero-overlay{background:linear-gradient(90deg,#160305 0%,#160305ea 30%,#16030588 65%,transparent 100%)}
}
@media(max-width:600px){
  .cg-root .cg-hero-copy{max-width:100%}
  .cg-root h1{font-size:clamp(32px,8.6vw,48px);line-height:1.15;letter-spacing:-.5px}
  .cg-root h1 span{white-space:normal}
  .cg-root h1 .cg-hero-gold{padding-bottom:.17em}
  .cg-root .cg-rule{width:min(100%,360px);margin:12px auto 17px}
  .cg-root .cg-rule img{width:56px;height:32px}
  .cg-root .cg-hero-overlay{background:linear-gradient(0deg,#160305 0%,#160305 22%,#180305d9 43%,#16030500 70%)}
}

/* === poprawa kadrowania zdjęć w kafelkach - włosy ponad linią === */
.cg-card{
  overflow: hidden !important;
}

.cg-card-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

/* indywidualne kadrowanie zdjęć */
.cg-grid .cg-card:nth-child(1) .cg-card-photo{
  object-position: center 28% !important;
}

.cg-grid .cg-card:nth-child(2) .cg-card-photo{
  object-position: center 24% !important;
}

.cg-grid .cg-card:nth-child(3) .cg-card-photo{
  object-position: center 24% !important;
}

.cg-grid .cg-card:nth-child(4) .cg-card-photo{
  object-position: center 20% !important;
}
