.full-bleed { padding: 0; }

.section-media { display: block; }
.section-media.left {
  float: left;
  width: calc(30% + 16px);
  max-width: 360px;
  margin: 0 16px 12px -16px;
  border-radius: 12px;
  overflow: hidden;
}
.section-media.left.outside {
  width: clamp(280px, 28vw, 420px);
  max-width: none;
  margin-left: calc(-16px - 6vw);
}
.section-media img { display: block; width: 100%; height: auto; }

@media (max-width: 768px) {
  .section-media.left { float: none; width: 100%; max-width: none; margin: 0 0 12px 0; }
  .section-media.left.outside { margin: 0 0 12px 0; width: 100%; }
}

section.no-media { overflow: visible; position: relative; }
section.no-media::after { content: ''; display: table; clear: both; }
.full-bleed .bleed-media {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  border-radius: 0;
}
.full-bleed .bleed-media img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.85) 10%, #000 25%, #000 75%, rgba(0,0,0,.85) 90%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.85) 10%, #000 25%, #000 75%, rgba(0,0,0,.85) 90%, rgba(0,0,0,0) 100%);
}

@media (max-width: 1024px) {
  .full-bleed .bleed-media img { height: 260px; }
}
@media (max-width: 640px) {
  .full-bleed .bleed-media img {
    height: 200px;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
:root {
  --bg: #0b0f14;
  --bg-elev: #121820;
  --text: #e6eef8;
  --muted: #96a2b3;
  --primary: #2dd4bf;
  --primary-700: #0ea5a3;
  --link: #60a5fa;
  --link-700: #3b82f6;
  --border: rgba(255,255,255,.08);
  --shadow: 0 8px 24px rgba(0,0,0,.45);
  --radius: 12px;
  --maxw: 1120px;
  --textw: min(860px, 92vw);
  --videow: min(640px, 92vw);
}

main section:not(.faq-section):not(.no-media)::before,
article section:not(.faq-section):not(.no-media)::before {
  content: '';
  display: block;
  background-image: url('../img/webp/bg.webp');
  background-size: cover;
  background-position: center;
  border-radius: 12px;
}

main section:not(.faq-section):not(.no-media)::after,
article section:not(.faq-section):not(.no-media)::after {
  content: '';
  display: table;
  clear: both;
}

main section:not(.faq-section):not(.no-media):nth-of-type(3n+1)::before,
article section:not(.faq-section):not(.no-media):nth-of-type(3n+1)::before {
  background-image: none !important;
  background: none;
  float: left;
  width: 38%;
  max-width: 360px;
  aspect-ratio: 4 / 3;
  min-height: 180px;
  margin: 0 16px 12px 0;
}

main section:not(.faq-section):not(.no-media):nth-of-type(3n+2)::before,
article section:not(.faq-section):not(.no-media):nth-of-type(3n+2)::before {
  float: right;
  width: 38%;
  max-width: 360px;
  aspect-ratio: 4 / 3;
  min-height: 180px;
  margin: 0 0 12px 16px;
}

main section:not(.faq-section):not(.no-media):nth-of-type(3n)::before,
article section:not(.faq-section):not(.no-media):nth-of-type(3n)::before {
  float: none;
  width: 100%;
  height: 220px;
  margin: 0 0 16px 0;
}

article section:not(.faq-section):not(.no-media):nth-of-type(3n+1)::before,
article section:not(.faq-section):not(.no-media):nth-of-type(3n+2)::before {
  width: 30%;
  max-width: 260px;
  min-height: 140px;
}

article section:not(.faq-section):not(.no-media):nth-of-type(3n)::before {
  height: 180px;
}

@media (max-width: 768px) {
  main section:not(.faq-section):not(.no-media)::before,
  article section:not(.faq-section):not(.no-media)::before {
    float: none !important;
    width: 100% !important;
    margin: 0 0 12px 0 !important;
    height: 200px;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Roboto', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/webp/bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: blur(4px);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(7,10,14,.75), rgba(11,15,20,.85));
  z-index: -1;
}

img { max-width: 100%; height: auto; display: block; }
img.rounded { border-radius: var(--radius); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(140%) blur(8px);
  background: linear-gradient(180deg, rgba(11,15,20,.78), rgba(11,15,20,.62));
  border-bottom: 1px solid var(--border);
  z-index: 60;
  padding: 14px 0;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--link));
  opacity: .6;
}

.header h1 {
  display: none;
}

.header nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 16px;
}

nav a, .nav a { 
  color: var(--muted); 
  text-decoration: none; 
  padding: 12px 20px; 
  border-radius: 10px; 
  font-weight: 500; 
  font-size: 16px; 
  transition: all .3s ease; 
  border: 1px solid transparent; 
}
nav a:hover, .nav a:hover { 
  color: var(--text); 
  background: rgba(45,212,191,.1);
  border-color: rgba(45,212,191,.3);
  transform: translateY(-1px);
}

.header nav a { 
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--text);
}
.header nav a:hover { 
  background: linear-gradient(180deg, rgba(45,212,191,.14), rgba(99,102,241,.14));
  border-color: rgba(99,102,241,.35);
  color: var(--text);
}
.header nav a:focus-visible {
  outline: 2px solid rgba(99,102,241,.6);
  outline-offset: 2px;
}

main { display: block; }
.section { padding: 40px 0; }
.hero { padding: 56px 0 24px; }
main > section { width: 100%; max-width: none; margin: 0; padding-left: 16px; padding-right: 16px; }
.header > * { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
body > main { width: 100%; max-width: none; margin: 0; padding-left: 16px; padding-right: 16px; }
body > article { width: 100%; max-width: none; margin: 24px 0; padding-left: 16px; padding-right: 16px; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 16px;
  line-height: 1.25;
}

h1 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; }
h2 { font-size: clamp(22px, 3.2vw, 28px); font-weight: 700; }
h3 { font-size: clamp(18px, 2.8vw, 22px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 600; }
h5 { font-size: 16px; font-weight: 600; }
h6 { font-size: 14px; font-weight: 600; letter-spacing: .2px; color: var(--muted); }

p { margin: 0 0 14px; color: var(--text); }
small, .muted { color: var(--muted); }

a { color: var(--link); }
a:hover { color: var(--link-700); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--text); text-decoration: none; transition: transform .1s ease, background-color .2s; }
.btn:hover { background: rgba(255,255,255,.08); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--primary), var(--primary-700)); border: 0; color: #042222; }

.card { background: rgba(15,20,28,.65); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 16px; }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.grid-articles { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.list-inline { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }

.table, table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.table th, .table td, table th, table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table thead th, table thead th { background: rgba(255,255,255,.04); text-align: left; color: var(--muted); font-weight: 600; }

blockquote { margin: 12px 0; padding: 12px 14px; border-left: 3px solid var(--primary); background: rgba(255,255,255,.04); border-radius: 8px; color: var(--muted); }

footer {
  margin-top: auto;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: rgba(11,15,20,.6);
  backdrop-filter: blur(8px);
  width: 100%;
}

footer .container {
  text-align: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.gallery img { border-radius: var(--radius); box-shadow: var(--shadow); filter: saturate(1.05) contrast(1.02); }

article { background: rgba(15,20,28,.55); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
article img { border-radius: var(--radius); box-shadow: var(--shadow); }
article header nav { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
article > section + section { margin-top: 20px; }
article ul { padding-left: 20px; }
article ul li { margin: 6px 0; }

input, select, textarea { width: 100%; padding: 10px 12px; color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 10px; }

pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; }
pre { padding: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 10px; overflow: auto; }

.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:32px}
.text-center{text-align:center}

[data-reveal], .reveal { 
  opacity: 0; 
  transform: translateY(16px); 
  transition: opacity .6s ease, transform .6s ease; 
  will-change: opacity, transform; 
}

.reveal-visible { opacity: 1; transform: none; }

.reveal-left { 
  opacity: 0; 
  transform: translateX(calc(-1 * clamp(80px, 12vw, 240px)));
  transition: opacity .6s ease, transform .8s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform; 
}
.reveal-right { 
  opacity: 0; 
  transform: translateX(clamp(80px, 12vw, 240px));
  transition: opacity .6s ease, transform .8s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform; 
}
.reveal-visible.reveal-left, .reveal-visible.reveal-right { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media (max-width: 640px) {
  .reveal-left, .reveal-right { transform: translateY(12px); }
}

.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.article-card {
  display: flex;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15,20,28,.45);
  backdrop-filter: blur(10px);
  transition: transform .3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.article-card:hover { transform: translateY(-2px); }
.article-card-media {
  flex: 0 0 280px;
  align-self: stretch;
}
.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-card-content {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.article-card h3 { margin: 0 0 12px 0; font-size: 20px; font-weight: 600; color: var(--text); line-height: 1.3; }
.article-card p { margin: 0 0 16px 0; font-size: 16px; color: var(--muted); line-height: 1.6; }
.article-card a { color: inherit; text-decoration: none; display: block; }
.article-card-link { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 500; font-size: 14px; text-decoration: none; transition: color .3s ease; }
.article-card-link:hover { color: var(--link); }
.article-card-link::after { content: '→'; transition: transform .3s ease; }
.article-card:hover .article-card-link::after { transform: translateX(4px); }

.video-embed { position: relative; width: 100%; max-width: var(--videow); margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(15,20,28,.45); box-shadow: var(--shadow); }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: relative; width: 100%; height: 100%; cursor: pointer; }
.video-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.video-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; background: rgba(255,0,0,.8); border: none; border-radius: 12px; color: #fff; font-size: 20px; cursor: pointer; transition: background .3s ease; }
.video-play-btn:hover { background: rgba(255,0,0,1); }

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: transparent !important;
  border: none;
  border-radius: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  z-index: 100;
  box-shadow: none;
  outline: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

html.preloader-lock, body.preloader-lock { overflow: hidden; }

.preloader-overlay {
  position: fixed;
  inset: 0;
  background: #0b0f14;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .3s ease, visibility .3s ease;
}

.preloader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-dots { display: inline-flex; gap: 10px; }
.preloader-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text);
  opacity: .85;
  animation: preloaderBounce 1s infinite ease-in-out;
}
.preloader-dots span:nth-child(2) { animation-delay: .15s; }
.preloader-dots span:nth-child(3) { animation-delay: .3s; }

@keyframes preloaderBounce {
  0%, 80%, 100% { transform: scale(.6); opacity: .5; }
  40% { transform: scale(1); opacity: 1; }
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.back-to-top::before {
  content: '↑';
}

h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 24px 0;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(26px, 4.5vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  margin: 36px 0 20px 0;
  color: var(--text);
  text-align: center;
}

h3 {
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 600;
  line-height: 1.4;
  margin: 26px 0 16px 0;
  color: var(--text);
}

p {
  margin: 0 0 18px 0;
  line-height: 1.75;
  color: var(--text);
}

main > section {
  margin: 48px auto;
  padding: 0 16px;
  position: relative;
}

main > section:first-child { margin-top: 24px; }

main > section > h2,
main > section > h3,
main > section > p,
main > section > ol,
main > section > ul,
main > section > table,
main > section > details,
main > section > blockquote { max-width: var(--textw); margin-left: auto; margin-right: auto; }

article > h1,
article > h2,
article > h3,
article > p,
article > ol,
article > ul,
article > table,
article > details,
article > blockquote { max-width: var(--textw); margin-left: auto; margin-right: auto; }

article section::before { display: none !important; content: none !important; }
article img, article figure { display: none !important; }

.faq-section {
  max-width: min(var(--textw), 800px);
  margin: 0 auto;
}

.faq-item {
  background: rgba(15,20,28,.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .3s ease;
  background: rgba(45,212,191,.05);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover {
  background: rgba(45,212,191,.1);
  color: var(--primary);
}

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--primary);
  transition: transform .3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-content {
  padding: 0 24px 24px 24px;
  color: var(--muted);
  line-height: 1.7;
  animation: fadeIn .3s ease;
  text-align: left;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.faq-item .faq-content p { margin: 12px 0 0 0; }
.faq-item .faq-content p:first-child { margin-top: 16px; }
.faq-item .faq-content ul,
.faq-item .faq-content ol { margin: 12px 0 0 0; padding-left: 20px; }
.faq-item .faq-content li { margin: 6px 0; }

@media (max-width: 640px) {
  .faq-item summary { padding: 16px 18px; font-size: 15px; }
  .faq-item .faq-content { padding: 0 18px 18px 18px; }
}

@media (max-width: 420px) {
  .faq-item summary { padding: 14px 16px; font-size: 14px; }
  .faq-item .faq-content { padding: 0 16px 16px 16px; }
}

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

article {
  max-width: 900px;
  margin: 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 32px;
  box-shadow: none;
  backdrop-filter: none;
}

article header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

article header nav { 
  font-size: 14px; 
  color: var(--muted); 
  margin-bottom: 10px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px; 
  line-height: 1.4;
  white-space: nowrap;
}

article header nav.breadcrumbs .sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 16px;
  color: var(--muted);
  margin-left: 0px;
  margin-right: 10px;
}

article section { margin: 32px 0 }
article section:first-of-type { margin-top: 0 }

@media (max-width: 768px) {
  .header nav { 
    flex-direction: column; 
    gap: 12px; 
    padding: 0 12px;
  }
  
  .articles-grid {
    margin: 24px 0;
  }
  
  .article-card {
    flex-direction: column;
  }
  
  .article-card-media {
    flex: none;
    width: 100%;
  }
  
  .article-card-media img {
    height: 180px;
  }
  
  .article-card-content {
    text-align: left;
    padding: 16px 16px 20px;
  }
  
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}
