/* =====================================================
   GURU IPTV — Global CSS
   Used on every page. Link with:
   <link rel="stylesheet" href="/css/global.css">
   ===================================================== */

/* =====================================================
   ROOT TOKENS
   ===================================================== */
:root {
  --c-dark:     #0a0f1e;
  --c-accent:   #e63946;
  --c-accent2:  #c1121f;
  --c-white:    #ffffff;
  --c-surf:     #f7f8fa;
  --c-border:   #e8ecf0;
  --c-muted:    #6b7280;
  --c-text:     #1f2937;
  --c-text2:    #4b5563;
  --nav-h:      70px;
  --f-head:     'Syne', sans-serif;
  --f-body:     'DM Sans', sans-serif;
  --r:          10px;
  --r-lg:       16px;
  --ease:       cubic-bezier(.4,0,.2,1);
}

/* =====================================================
   BASE RESET
   ===================================================== */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased; }
body { font-family:var(--f-body); font-size:16px; line-height:1.6; color:var(--c-dark); background:#fff; }
a { text-decoration:none; color:inherit; }
ul,ol { list-style:none; }
button { font-family:var(--f-body); cursor:pointer; border:none; background:none; padding:0; }
img { display:block; max-width:100%; }

/* =====================================================
   NAVBAR WRAPPER
   ===================================================== */
.gn {
  position:sticky;
  top:0;
  z-index:9000;
  background:#fff;
  border-bottom:1px solid var(--c-border);
  box-shadow:0 1px 10px rgba(0,0,0,.06);
  height:var(--nav-h);
}
.gn-inner {
  max-width:1280px;
  margin:0 auto;
  padding:0 28px;
  height:100%;
  display:flex;
  align-items:center;
  gap:12px;
}

/* =====================================================
   LOGO
   ===================================================== */
.gn-logo {
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
  margin-right:8px;
}
.gn-logo-box {
  width:40px;
  height:40px;
  min-width:40px;
  background:var(--c-accent);
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 3px 10px rgba(230,57,70,.3);
}
.gn-logo-box svg { width:21px; height:21px; display:block; }
.gn-logo-words { line-height:1.15; }
.gn-logo-name {
  display:block;
  font-family:var(--f-head);
  font-size:18px;
  font-weight:800;
  color:var(--c-dark);
  letter-spacing:-.3px;
}
.gn-logo-name em { font-style:normal; color:var(--c-accent); }
.gn-logo-tag {
  display:block;
  font-size:9px;
  font-weight:600;
  letter-spacing:1.6px;
  text-transform:uppercase;
  color:#9ca3af;
  margin-top:1px;
}

/* =====================================================
   DESKTOP NAV LINKS
   ===================================================== */
.gn-links {
  display:flex;
  align-items:center;
  gap:1px;
  flex:1;
  justify-content:center;
}
.gn-links > li { position:relative; }
.gn-links > li > a {
  display:flex;
  align-items:center;
  gap:3px;
  padding:8px 14px;
  font-size:14.5px;
  font-weight:500;
  color:var(--c-text2);
  border-radius:var(--r);
  white-space:nowrap;
  transition:color .15s,background .15s;
  position:relative;
}
.gn-links > li > a:hover     { color:var(--c-dark); background:var(--c-surf); }
.gn-links > li.is-active > a { color:var(--c-dark); font-weight:600; }
.gn-links > li.is-active > a::after {
  content:'';
  position:absolute;
  bottom:4px;
  left:50%;
  transform:translateX(-50%);
  width:4px; height:4px;
  border-radius:50%;
  background:var(--c-accent);
}
.gn-chev {
  width:12px; height:12px;
  color:#9ca3af;
  transition:transform .2s var(--ease),color .15s;
  flex-shrink:0;
}
.gn-links > li.dd-open > a .gn-chev { transform:rotate(180deg); color:var(--c-accent); }

/* =====================================================
   DROPDOWN MENUS
   ===================================================== */
.gn-dd {
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  background:#fff;
  border:1px solid var(--c-border);
  border-radius:var(--r-lg);
  box-shadow:0 16px 48px rgba(0,0,0,.12);
  padding:6px;
  min-width:200px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-6px);
  transition:opacity .18s var(--ease),transform .18s var(--ease),visibility .18s;
  z-index:9100;
}
.gn-dd::before {
  content:'';
  position:absolute;
  top:-12px; left:0; right:0;
  height:12px;
}
.gn-links > li.dd-open > .gn-dd {
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}
.gn-dd a {
  display:block;
  padding:9px 14px;
  border-radius:8px;
  font-size:14px;
  font-weight:500;
  color:var(--c-text2);
  white-space:nowrap;
  transition:background .12s,color .12s;
}
.gn-dd a:hover { background:var(--c-surf); color:var(--c-accent); }
.gn-dd-sep { height:1px; background:var(--c-border); margin:5px 6px; }
.gn-ch-dd { min-width:460px; }
.gn-dd-label {
  font-family:var(--f-head);
  font-size:9px;
  font-weight:700;
  letter-spacing:2px;
  text-transform:uppercase;
  color:#9ca3af;
  padding:4px 10px 10px;
  border-bottom:1px solid var(--c-border);
  margin-bottom:6px;
}
.gn-ch-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1px;
}
.gn-ch-grid a { white-space:nowrap; font-size:13.5px; }
.gn-more-dd { left:auto; right:0; }

/* =====================================================
   RIGHT SIDE BUTTONS
   ===================================================== */
.gn-right {
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
  margin-left:8px;
}
.gn-btn-ghost {
  padding:8px 16px;
  font-size:13.5px;
  font-weight:500;
  color:var(--c-text2);
  border:1.5px solid var(--c-border);
  border-radius:var(--r);
  transition:border-color .15s,color .15s;
  white-space:nowrap;
}
.gn-btn-ghost:hover { border-color:var(--c-accent); color:var(--c-accent); }
.gn-btn-buy {
  display:flex;
  align-items:center;
  gap:6px;
  padding:9px 20px;
  font-family:var(--f-head);
  font-size:13.5px;
  font-weight:700;
  color:#fff;
  background:var(--c-accent);
  border-radius:var(--r);
  white-space:nowrap;
  transition:background .15s,transform .15s,box-shadow .15s;
}
.gn-btn-buy:hover { background:var(--c-accent2); transform:translateY(-1px); box-shadow:0 6px 18px rgba(230,57,70,.3); }
.gn-btn-buy svg { width:13px; height:13px; }

/* =====================================================
   HAMBURGER (mobile only)
   ===================================================== */
.gn-ham {
  display:none;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  width:42px;
  height:42px;
  min-width:42px;
  border-radius:var(--r);
  border:1.5px solid var(--c-border);
  background:#fff;
  flex-shrink:0;
  transition:border-color .15s;
}
.gn-ham:hover { border-color:var(--c-accent); }
.gn-ham span {
  display:block;
  width:18px;
  height:2px;
  background:var(--c-dark);
  border-radius:2px;
  transition:transform .28s var(--ease),opacity .2s;
  pointer-events:none;
}
.gn-ham.is-x span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.gn-ham.is-x span:nth-child(2) { opacity:0; }
.gn-ham.is-x span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* =====================================================
   MOBILE DRAWER
   ===================================================== */
.gn-mob {
  display:none;
  position:fixed;
  inset:0;
  z-index:8999;
}
.gn-mob-bg {
  position:absolute;
  inset:0;
  background:rgba(10,15,30,.5);
  backdrop-filter:blur(3px);
}
.gn-drawer {
  position:absolute;
  top:0; right:0; bottom:0;
  width:min(320px,90vw);
  background:#fff;
  display:flex;
  flex-direction:column;
  transform:translateX(100%);
  transition:transform .3s var(--ease);
  box-shadow:-6px 0 32px rgba(0,0,0,.12);
}
.gn-mob.is-open .gn-drawer { transform:translateX(0); }
.gn-drawer-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--c-border);
  flex-shrink:0;
}
.gn-drawer-close {
  width:36px; height:36px;
  border-radius:8px;
  border:1.5px solid var(--c-border);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:17px;
  color:var(--c-muted);
  transition:background .15s,color .15s;
  flex-shrink:0;
}
.gn-drawer-close:hover { background:var(--c-surf); color:var(--c-dark); }
.gn-drawer-body { flex:1; overflow-y:auto; padding:8px 10px; }
a.gn-mlink {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:13px 14px;
  border-radius:var(--r);
  font-size:15.5px;
  font-weight:500;
  color:var(--c-text2);
  transition:background .12s,color .12s;
}
a.gn-mlink:hover { background:var(--c-surf); color:var(--c-dark); }
button.gn-macc {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:13px 14px;
  border-radius:var(--r);
  font-size:15.5px;
  font-weight:500;
  color:var(--c-text2);
  font-family:var(--f-body);
  transition:background .12s,color .12s;
}
button.gn-macc:hover { background:var(--c-surf); color:var(--c-dark); }
.gn-macc-chev {
  width:15px; height:15px;
  color:#9ca3af;
  flex-shrink:0;
  transition:transform .22s var(--ease),color .15s;
}
button.gn-macc.is-open .gn-macc-chev { transform:rotate(180deg); color:var(--c-accent); }
.gn-msub {
  overflow:hidden;
  max-height:0;
  transition:max-height .3s var(--ease);
  padding-left:8px;
}
.gn-msub.is-open { max-height:800px; }
.gn-msub a {
  display:block;
  padding:9px 14px;
  border-radius:8px;
  font-size:14.5px;
  color:var(--c-muted);
  transition:background .12s,color .12s;
}
.gn-msub a:hover { background:var(--c-surf); color:var(--c-accent); }
.gn-drawer-foot {
  flex-shrink:0;
  padding:14px 14px 22px;
  border-top:1px solid var(--c-border);
}
.gn-drawer-foot a {
  display:block;
  text-align:center;
  padding:13px;
  border-radius:var(--r);
  font-family:var(--f-head);
  font-size:15px;
  font-weight:700;
  background:var(--c-accent);
  color:#fff;
  transition:background .15s;
}
.gn-drawer-foot a:hover { background:var(--c-accent2); }

/* =====================================================
   NAV RESPONSIVE BREAKPOINTS
   ===================================================== */
@media (max-width:960px) {
  .gn-links     { display:none; }
  .gn-btn-ghost { display:none; }
  .gn-ham       { display:flex; }
  .gn-right     { margin-left:auto; }
}
@media (max-width:500px) {
  .gn-inner        { padding:0 14px; gap:8px; }
  .gn-logo-name    { font-size:16px; }
  .gn-btn-buy      { padding:8px 14px; font-size:13px; }
  .gn-btn-buy svg  { display:none; }
}

/* =====================================================
   FOOTER
   ===================================================== */
.gf { background:var(--c-dark); color:#6b7280; padding:60px 0 0; }
.gf-inner { max-width:1280px; margin:0 auto; padding:0 28px; }
.gf-grid {
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1.5fr;
  gap:48px;
  padding-bottom:48px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.gf-brand-logo { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.gf-logo-box {
  width:40px; height:40px; min-width:40px;
  background:var(--c-accent);
  border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 3px 12px rgba(230,57,70,.3);
}
.gf-logo-box svg { width:21px; height:21px; display:block; }
.gf-brand-name { font-family:var(--f-head); font-size:20px; font-weight:800; color:#fff; letter-spacing:-.3px; }
.gf-brand-name em { font-style:normal; color:var(--c-accent); }
.gf-desc { font-size:14px; line-height:1.8; color:#6b7280; margin-bottom:24px; max-width:290px; }
.gf-contacts { display:flex; flex-direction:column; gap:10px; }
.gf-contacts a { display:flex; align-items:center; gap:10px; font-size:14px; color:#6b7280; transition:color .15s; }
.gf-contacts a:hover { color:#fff; }
.gf-icon {
  width:32px; height:32px; min-width:32px;
  border-radius:8px;
  background:rgba(255,255,255,.06);
  display:flex; align-items:center; justify-content:center;
  transition:background .15s;
}
.gf-contacts a:hover .gf-icon { background:rgba(230,57,70,.2); }
.gf-icon svg { width:15px; height:15px; display:block; }
.gf-col h4 {
  font-family:var(--f-head);
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:2px;
  color:#fff;
  margin-bottom:16px;
  padding-bottom:12px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.gf-col a { display:flex; align-items:center; gap:7px; font-size:13.5px; color:#6b7280; padding:5px 0; transition:color .15s; }
.gf-col a:hover { color:#fff; }
.gf-col a::before { content:''; width:3px; height:3px; border-radius:50%; background:var(--c-accent); flex-shrink:0; opacity:.7; }
.gf-ch-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 6px; }
.gf-bottom { padding:20px 0; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; }
.gf-copy { font-size:13px; color:#374151; }
.gf-copy strong { color:#6b7280; }
.gf-legal { display:flex; gap:18px; flex-wrap:wrap; }
.gf-legal a { font-size:13px; color:#374151; transition:color .15s; }
.gf-legal a:hover { color:#9ca3af; }

/* =====================================================
   FOOTER RESPONSIVE
   ===================================================== */
@media (max-width:1040px) {
  .gf-grid { grid-template-columns:1fr 1fr; gap:36px; }
  .gf-brand { grid-column:1/-1; }
  .gf-ch-grid { grid-template-columns:repeat(3,1fr); }
}
@media (max-width:680px) {
  .gf-inner { padding:0 20px; }
  .gf-grid  { gap:28px; }
  .gf-desc  { max-width:100%; }
  .gf-ch-grid { grid-template-columns:1fr 1fr; }
  .gf-bottom { flex-direction:column; align-items:flex-start; }
  .gf-legal  { gap:12px; }
}
@media (max-width:440px) {
  .gf { padding-top:44px; }
  .gf-grid  { grid-template-columns:1fr; gap:24px; }
  .gf-brand { grid-column:auto; }
  .gf-legal { flex-direction:column; gap:8px; }
}
