@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg: #0b1220;
  --bg2: #0f1a2e;
  --bg3: #142035;
  --surface: #162340;
  --surface2: #1c2d50;
  --border: #1e3356;
  --green: #22c55e;
  --green-dim: #16a34a;
  --green-glow: rgba(34,197,94,0.18);
  --green-glow2: rgba(34,197,94,0.08);
  --text: #e8f0fe;
  --text2: #8eafd4;
  --text3: #4d6a8f;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 32px rgba(0,0,0,0.45);
  --shadow-green: 0 0 28px rgba(34,197,94,0.2);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(34,197,94,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ======= NAV ======= */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,18,32,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(16px,5vw,64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  transition: background var(--transition);
}

nav.scrolled { background: rgba(11,18,32,0.98); }

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo span {
  background: var(--green);
  color: #0b1220;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--green);
  background: var(--green-glow2);
}

.nav-links a.active {
  border: 1px solid rgba(34,197,94,0.25);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 68px;
  left: 0;
  width: 100%;
  background: var(--bg2);
  padding: 20px;
  z-index: 999;
  border-bottom: 1px solid var(--border);
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-menu.active { display: flex; }

.mobile-menu a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.mobile-menu a:hover, .mobile-menu a.active {
  color: var(--green);
  background: var(--green-glow2);
}

/* ======= HERO ======= */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(60px,10vw,120px) clamp(16px,5vw,64px) clamp(40px,6vw,80px);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(34,197,94,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--green-glow2);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem,5.5vw,4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
  position: relative;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--text2);
  font-size: clamp(0.95rem,2vw,1.1rem);
  line-height: 1.7;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* ======= BUTTONS ======= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--green);
  color: #0b1220;
  box-shadow: 0 0 20px rgba(34,197,94,0.3);
}

.btn-primary:hover {
  background: #4ade80;
  box-shadow: 0 0 30px rgba(34,197,94,0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

.btn-download {
  background: transparent;
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.4);
  padding: 8px 18px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-download:hover {
  background: var(--green);
  color: #0b1220;
  box-shadow: var(--shadow-green);
  transform: translateY(-1px);
}

.btn-download svg { width: 14px; height: 14px; }

/* ======= STATS ======= */
.stats-row {
  display: flex;
  justify-content: center;
  gap: clamp(24px,5vw,64px);
  flex-wrap: wrap;
  padding: 48px clamp(16px,5vw,64px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  animation: fadeUp 0.6s 0.4s ease both;
}

.stat-item { text-align: center; }

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  display: block;
}

.stat-num span { color: var(--green); }

.stat-label {
  font-size: 0.8rem;
  color: var(--text3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ======= SECTIONS ======= */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(48px,8vw,96px) clamp(16px,5vw,64px);
}

.section-header { margin-bottom: 40px; }

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
  display: block;
}

.section-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem,3.5vw,2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text2);
  font-size: 0.95rem;
  max-width: 480px;
}

/* ======= SUBJECTS GRID ======= */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 20px;
}

.subject-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.5s ease both;
}

.subject-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-glow2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.subject-card:hover {
  border-color: rgba(34,197,94,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-green), var(--shadow);
}

.subject-card:hover::before { opacity: 1; }

.subject-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
}

.subject-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.subject-card p {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.subject-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text3);
  position: relative;
  z-index: 1;
}

.subject-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.subject-arrow {
  margin-top: auto;
  color: var(--green);
  font-size: 1.2rem;
  transition: transform var(--transition);
  position: relative;
  z-index: 1;
}

.subject-card:hover .subject-arrow { transform: translateX(6px); }

/* ======= PAGE HERO ======= */
.page-hero {
  padding: clamp(40px,7vw,80px) clamp(16px,5vw,64px) clamp(32px,5vw,56px);
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text3);
  margin-bottom: 20px;
}

.breadcrumb a { color: var(--text3); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb svg { width: 12px; height: 12px; }

.page-hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.page-hero-text h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem,4vw,3rem);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.page-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.page-hero-text p {
  color: var(--text2);
  margin-top: 12px;
  font-size: 0.95rem;
  max-width: 520px;
  line-height: 1.7;
}

.page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
}

/* ======= TOOLBAR ======= */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px clamp(16px,5vw,64px);
  flex-wrap: wrap;
  position: sticky;
  top: 68px;
  z-index: 90;
  background: rgba(11,18,32,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.search-wrap { position: relative; flex: 1; min-width: 220px; }

.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px 10px 38px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow2);
}

.search-input::placeholder { color: var(--text3); }

.filter-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.filter-btn {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #0b1220;
}

/* ======= CONTENT ======= */
.content-section {
  padding: clamp(32px,5vw,56px) clamp(16px,5vw,64px);
}

.content-section + .content-section { border-top: 1px solid var(--border); }

.content-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.content-section-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-section-header h2::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--green);
  border-radius: 2px;
}

.count-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--green-glow);
  color: var(--green);
  padding: 3px 10px;
  border-radius: 999px;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 16px;
}

.item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.item-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.item-card:hover {
  border-color: rgba(34,197,94,0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.item-card:hover::after { transform: scaleX(1); }

.item-type {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
  width: fit-content;
}

.type-course { background: rgba(34,197,94,0.12); color: var(--green); }
.type-exercise { background: rgba(59,130,246,0.12); color: #60a5fa; }
.type-series { background: rgba(245,158,11,0.12); color: #fbbf24; }

.item-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--white); line-height: 1.4; }
.item-card p { font-size: 0.83rem; color: var(--text2); line-height: 1.6; flex: 1; }

.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.item-meta {
  font-size: 0.75rem;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-meta svg { width: 13px; height: 13px; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
  display: none;
  flex-direction: column;
  align-items: center;
}

.empty-state svg { width: 48px; height: 48px; margin-bottom: 16px; color: var(--text3); }
.empty-state p { font-size: 0.9rem; }

/* ======= FOOTER ======= */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: clamp(32px,5vw,56px) clamp(16px,5vw,64px) 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3,1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 260px;
}

.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.875rem; color: var(--text2); text-decoration: none; transition: color var(--transition); }
.footer-col a:hover { color: var(--green); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text3);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom span { color: var(--green); }

/* ======= CONTACT ======= */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card h3 { font-family: 'Syne', sans-serif; font-size: 1.2rem; color: var(--white); }
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group label { color: var(--text2); font-size: 0.85rem; }

.input-group input, .input-group textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}

.input-group input:focus, .input-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow2);
}

.input-group textarea { min-height: 160px; resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; }

/* ======= COOKIE BANNER ======= */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 48px);
  max-width: 780px;
  background: var(--surface2);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: cookieSlideUp 0.4s cubic-bezier(0.4,0,0.2,1) both;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

#cookie-banner.hide {
  animation: cookieSlideDown 0.3s ease forwards;
}

@keyframes cookieSlideDown {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

.cookie-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.cookie-text { flex: 1; min-width: 200px; }

.cookie-text h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.cookie-text p {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-cookie-accept {
  background: var(--green);
  color: #0b1220;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-cookie-accept:hover {
  background: #4ade80;
  box-shadow: 0 0 20px rgba(34,197,94,0.4);
  transform: translateY(-1px);
}

.btn-cookie-decline {
  background: transparent;
  color: var(--text3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-cookie-decline:hover {
  color: var(--text2);
  border-color: var(--text3);
}

/* ======= SCROLL TO TOP ======= */
#scroll-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 500;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#scroll-top:hover {
  background: var(--green);
  color: #0b1220;
  box-shadow: 0 0 20px rgba(34,197,94,0.4);
}

/* ======= ANIMATIONS ======= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======= PROGRESS BAR ======= */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--green), #4ade80);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(34,197,94,0.5);
}

/* ======= GRID BG ======= */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(30,51,86,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,51,86,0.3) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 70%);
}

/* ======= NOTIFICATION TOAST ======= */
#toast {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 9000;
  background: var(--surface2);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.85rem;
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.3s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

#toast::before {
  content: '✓';
  display: inline-flex;
  width: 20px;
  height: 20px;
  background: var(--green);
  color: #0b1220;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ======= RESPONSIVE ======= */
@media (max-width:900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width:640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  .page-hero-inner { flex-direction: column; }
  .toolbar { position: static; }
  #cookie-banner {
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-actions { width: 100%; }
  .btn-cookie-accept, .btn-cookie-decline { flex: 1; text-align: center; }
  #scroll-top { right: 12px; bottom: 80px; }
}

/* ======= SCROLLBAR ======= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-dim); }

/* ======= RTL ======= */
[dir="rtl"] .item-card { text-align: right; }
[dir="rtl"] .content-section-header h2::before { order: 1; margin-left: 10px; margin-right: 0; }
