:root{
  --bg:#ffffff;
  --muted:#6b7280;
  --text:#111827;
  --line:rgba(17,24,39,.12);
  --soft:#f3f4f6;
  --soft2:#f7f7f9;
  --shadow:0 18px 60px rgba(0,0,0,.12);
  --shadow2:0 10px 30px rgba(0,0,0,.10);
  --radius:16px;
  --max:1100px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.92}

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 20px;
}

.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{
  font-weight:600;
  letter-spacing:.2px;
}
.nav{
  display:flex;
  gap:18px;
  font-size:14px;
  color:#111827;
}
.nav a{
  padding:8px 8px;
  border-radius:10px;
}
.nav a.active{
  background:var(--soft);
}
.social{
  display:flex;
  gap:10px;
  align-items:center;
}
.icon{
  width:34px;height:34px;
  display:grid;place-items:center;
  border:1px solid var(--line);
  border-radius:12px;
  font-size:13px;
  color:#111827;
  background:#fff;
}
.icon:hover{box-shadow:var(--shadow2)}

.page{
  opacity:1;
  transform:none;
  transition:opacity .22s ease, transform .22s ease;
}
.page.exit{
  opacity:0;
  transform:translateY(8px);
}

/* Hero */
.hero-wrap{
  background:var(--soft2);
  padding:44px 0 22px;
}
.hero{
  text-align:center;
}
.hero h1{
  margin:0 auto;
  max-width:900px;
  font-weight:300;
  font-size:44px;
  letter-spacing:.2px;
}
.hero p{
  margin:14px auto 0;
  max-width:760px;
  color:var(--muted);
  font-size:14px;
}
.hero-cta{
  margin-top:18px;
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}
.btn{
  border:1px solid var(--line);
  background:#fff;
  padding:10px 16px;
  border-radius:999px;
  font-size:14px;
  cursor:pointer;
}
.btn.primary{
  background:#111827;
  color:#fff;
  border-color:#111827;
}
.btn:hover{box-shadow:var(--shadow2)}

.hero-image{
  margin:26px auto 0;
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow);
  max-width:var(--max);

  position: relative; /* <-- ВАЖНО: чтобы карточка могла быть поверх картинки */
}

.hero-image img{
  width:100%;
  height:auto;
  display:block;
}

/* ===== Overlay About on top of hero image ===== */
.hero-card{
  position:absolute;
  left:22px;
  right:22px;
  bottom:22px;
  max-width:820px;
  margin:0 auto;

  background:rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border:1px solid rgba(17,24,39,.14);
  border-radius:18px;
  padding:18px 18px 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
}

.hero-card-title{
  font-size:14px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(17,24,39,.7);
  margin-bottom:8px;
}

.hero-card-text{
  font-size:14px;
  color:#111827;
  line-height:1.55;
}

.hero-card-actions{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

@media (max-width: 640px){
  .hero-card{
    left:14px; right:14px; bottom:14px;
    padding:14px;
  }
}


/* Sections */
.section{
  padding:54px 0;
}
.section h2{
  margin:0 0 14px;
  font-size:28px;
  font-weight:400;
}
.section .sub{
  color:var(--muted);
  max-width:860px;
  font-size:14px;
}

.card{
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 1px 0 rgba(0,0,0,.02);
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}
@media (max-width: 920px){
  .grid-3{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 640px){
  .grid-3{grid-template-columns:1fr}
  .nav{display:none}
}

.course-card{
  position:relative;
  cursor:pointer;
  min-height:240px;
  display:flex;
  align-items:flex-end;
}
.course-card img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(105%);
  transform:scale(1);
  transition:transform .35s ease;
}
.course-card:hover img{transform:scale(1.03)}
.course-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.06));
  opacity:.92;
}
.course-card .meta{
  position:relative;
  z-index:2;
  padding:16px;
  color:#fff;
  width:100%;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
}
.course-card .title{
  font-size:18px;
  font-weight:500;
  margin:0;
}
.course-card .summary{
  margin:6px 0 0;
  font-size:13px;
  opacity:.9;
}
.details-pill{
  border:1px solid rgba(255,255,255,.28);
  padding:9px 14px;
  border-radius:999px;
  font-size:12px;
  background:rgba(255,255,255,.08);
}
.course-card:hover .details-pill{background:rgba(255,255,255,.16)}

.details-panel{
  margin-top:18px;
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  background:#fff;
  box-shadow:var(--shadow2);
  overflow:hidden;

  max-height:0;
  padding-top:0;
  padding-bottom:0;
  opacity:0;
  transition:max-height .35s ease, opacity .25s ease, padding .25s ease;
}
.details-panel.open{
  max-height:900px;
  opacity:1;
  padding-top:18px;
  padding-bottom:18px;
}
.details-panel h3{
  margin:0;
  font-weight:500;
  font-size:20px;
}
.details-panel p{color:var(--muted); margin:10px 0 0}
.details-panel ul{margin:12px 0 0; padding-left:18px}
.details-panel li{margin:6px 0}
.links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.link-chip{
  border:1px solid var(--line);
  background:var(--soft);
  padding:9px 12px;
  border-radius:999px;
  font-size:13px;
}
.link-chip:hover{box-shadow:var(--shadow2)}

.form{
  display:grid;
  gap:10px;
  max-width:520px;
}
.input, textarea{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 12px;
  font-size:14px;
  font-family:var(--font);
}
textarea{min-height:130px; resize:vertical}
.small{font-size:12px;color:var(--muted)}
.footer{
  border-top:1px solid var(--line);
  padding:28px 0;
  color:var(--muted);
  font-size:13px;
}
.reveal{
  opacity:0;
  transform:translateY(10px);
  transition:opacity .5s ease, transform .5s ease;
}
.reveal.on{
  opacity:1;
  transform:none;
}
.hero-overlay { position: relative; }

.hero-card{
  position:absolute;
  left:22px;
  right:22px;
  bottom:22px;
  max-width:820px;
  margin:0 auto;

  background:rgba(255,255,255,.86);
  backdrop-filter: blur(2px);
  border:1px solid rgba(17,24,39,.14);
  border-radius:18px;
  padding:18px 18px 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
}

.hero-card-title{
  font-size:14px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(17,24,39,.7);
  margin-bottom:8px;
}

.hero-card-text{
  font-size:14px;
  color:#111827;
  line-height:1.55;
}

.hero-card-actions{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

@media (max-width: 640px){
  .hero-card{
    left:14px; right:14px; bottom:14px;
    padding:14px;
  }
}

/* ===== HOME ONLY: fullscreen hero background ===== */
body.home .hero-wrap{
  position: relative;
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: transparent;
}

body.home .hero-wrap::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("assets/images/hero.png") center/cover no-repeat;
  filter: blur(2px) brightness(.55) saturate(1.05);
  transform: scale(1.10);
  z-index:0;
}

body.home .hero-wrap::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.40);
  z-index:1;
}

body.home .hero-wrap .container{
  position: relative;
  z-index: 2;
}

body.home .hero{
  text-align: center;
  padding: 0 16px;
}

body.home .hero h1{
  color: rgba(255,255,255,.96);
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 52px);
  max-width: 980px;
}

body.home .hero p{
  color: rgba(255,255,255,.86);
  font-size: 16px;
  max-width: 880px;
}

body.home .hero-cta{
  justify-content: center;
}

.hero-kicker{
  display:inline-block;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 14px;
}

.hero-free{
  margin-top: 14px;
  color: rgba(255,255,255,.88);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
}

body.home .header{
  background: rgba(255,255,255,.80);
}

/* ===== Research: dark card (white text) without changing the whole page ===== */
.research-card{
  background: #0b0f1a;
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.10);
}

.research-card h2,
.research-card h3,
.research-card p,
.research-card li{
  color: rgba(255,255,255,.92);
}

.research-card a{
  color: rgba(255,255,255,.92);
  text-decoration: underline;
}
/* ===== Home hero background (ONLY on index.html) ===== */
.home-hero{
  position: relative;
  padding: 0;
  min-height: calc(100vh - 72px); /* 72px = header height */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: #0b1020;
}

/* background image layer */
.home-hero::before{
  content:"";
  position:absolute;
  inset:-22px; /* gives space for blur edges */
  background: url("assets/images/hero.png") center/cover no-repeat;

  /* SHARPNESS: уменьши/увеличь blur */
  filter: blur(2px) brightness(.85) saturate(110%);
  transform: scale(1.04);
}

/* dark vignette for readability */
.home-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(60% 60% at 50% 20%, rgba(0,0,0,.15), rgba(0,0,0,.65));
}

.home-hero__content{
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  padding-top: 64px;
  padding-bottom: 72px; /* pushes About lower */
}

/* make hero text readable on background */
.hero--on-bg h1{
  color:#fff;
}
.hero--on-bg p{
  color: rgba(255,255,255,.82);
}

/* About card centered + white frame */
.hero-card--center{
  position: relative;
  margin: 26px auto 0;
  max-width: 860px;

  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.65);
  backdrop-filter: blur(2px);
}

/* mobile tweaks */
@media (max-width: 640px){
  .home-hero__content{ padding-top: 44px; padding-bottom: 56px; }
  .hero--on-bg h1{ font-size: 34px; }
}
/* ===== HOME: hero image + overlay mission card (Wix-style) ===== */
.home-mission{
  padding: 28px 0 0;
}

.home-hero-image{
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.home-hero-image img{
  width: 100%;
  height: auto;
  display: block;
  /* sharpness control */
  filter: blur(0px) contrast(1.03) saturate(1.05);
}

/* the white card that sits ON the image */
.mission-card{
  max-width: 760px;
  margin: -120px auto 0;   /* <-- это делает "наезд" на картинку */
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.12);
  padding: 42px 44px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.mission-title{
  font-size: 22px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #111827;
  margin-bottom: 18px;
}

.mission-text{
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
  max-width: 620px;
  margin: 0 auto;
}

.mission-actions{
  margin-top: 26px;
}

/* mobile */
@media (max-width: 720px){
  .mission-card{
    margin: -80px 14px 0;
    padding: 28px 22px;
  }
}
/* ===== About typography ===== */
.mission-text{
  text-align: justify;          /* ровные края */
  text-justify: inter-word;
  font-size: 16px;
  line-height: 1.85;
  color: #2b2f36;
  max-width: 640px;
  margin: 0 auto;
}

.mission-text p{
  margin: 0 0 14px;
}

/* красивый "VectorSTEM" как бренд */
.mission-brand{
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
  color: #111827;
}

/* первая строка чуть сильнее */
.mission-lead{
  font-size: 16.5px;
}

/* финальная строка более “закрывающая” */
.mission-foot{
  margin-top: 2px;
}

/* чтобы justified не выглядел странно на мобилке */
@media (max-width: 640px){
  .mission-text{ text-align: left; }
}
/* ===== Header brand ===== */
.brand{
  font-size: 22px;         /* больше */
  font-weight: 800;        /* жирнее */
  letter-spacing: -0.02em; /* более “премиум” */
  color: #0f172a;
}

.brand:hover{
  opacity: .9;
}
/* ===== PDF embed card ===== */
.pdf-card{
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 40px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.06);
  margin: 18px 0;
}

.pdf-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(248,250,252,.95);
}

.pdf-title{
  font-weight: 800;
  color: #0f172a;
}

.pdf-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pdf-frame{
  width: 100%;
  height: 720px;
  border: 0;
  display:block;
}

@media (max-width: 640px){
  .pdf-frame{ height: 520px; }
}
.pdf-list{
  display:grid;
  gap:10px;
  max-width: 980px;
}

.pdf-item{
  text-align:left;
  padding:14px 16px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.pdf-item:hover{
  border-color: rgba(0,0,0,.16);
}

.pdf-viewer{
  margin-top: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  overflow: hidden;
  max-width: 980px;
}

.pdf-viewer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.pdf-title{
  font-weight: 700;
}

.pdf-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

.pdf-frame-wrap{
  height: 650px; /* можешь менять */
  background: #111;
}

.pdf-frame-wrap iframe{
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
/* ===== PDF Cards (Wix-like) ===== */
.pdf-h2{
  margin: 8px 0 14px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.pdf-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 980px;
}

@media (max-width: 800px){
  .pdf-grid{ grid-template-columns: 1fr; }
}

.pdf-card{
  width:100%;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.92);
  border-radius: 18px;
  padding: 16px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  cursor:pointer;
  text-align:left;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pdf-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
  border-color: rgba(17,24,39,.18);
}

.pdf-card:focus-visible{
  outline: 3px solid rgba(59,130,246,.35);
  outline-offset: 2px;
}

.pdf-card-left{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}

.pdf-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  color: #0b1220;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(240,244,255,.95));
  border: 1px solid rgba(17,24,39,.10);
}

.pdf-text{
  display:flex;
  flex-direction:column;
  gap: 3px;
  min-width: 0;
}

.pdf-title{
  font-weight: 800;
  font-size: 15px;
  color: #0b1220;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-sub{
  font-size: 13px;
  color: rgba(11,18,32,.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-open{
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.90);
  font-weight: 700;
  font-size: 13px;
  color: #0b1220;
  transition: background .18s ease, border-color .18s ease;
}

.pdf-card:hover .pdf-open{
  background: rgba(11,18,32,.06);
  border-color: rgba(17,24,39,.18);
}

/* ===== Modal PDF Window ===== */
.pdf-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.pdf-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(6px);
}

.pdf-shell{
  position: relative;
  width: min(980px, calc(100vw - 28px));
  height: min(78vh, 760px);
  margin: 80px auto 0;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  display:flex;
  flex-direction: column;
}

@media (max-width: 800px){
  .pdf-shell{ margin-top: 56px; height: min(80vh, 820px); }
}

.pdf-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(11,18,32,.08);
  background: rgba(255,255,255,.85);
}

.pdf-topbar-title{
  font-weight: 800;
  color: #0b1220;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-topbar-actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

.pdf-btn{
  appearance:none;
  border: 1px solid rgba(11,18,32,.12);
  background: rgba(255,255,255,.92);
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  color: #0b1220;
  text-decoration: none;
}

.pdf-btn.primary{
  background: #0b1220;
  color: #fff;
  border-color: #0b1220;
}

.pdf-x{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,.12);
  background: rgba(255,255,255,.92);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.pdf-frame-wrap{
  flex: 1;
  background: #111;
}

.pdf-frame-wrap iframe{
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.pdf-h2{ margin: 8px 0 14px; font-size: 22px; letter-spacing: -0.02em; }

.pdf-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 980px;
}
@media (max-width: 800px){ .pdf-grid{ grid-template-columns: 1fr; } }

.pdf-card{
  width:100%;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.92);
  border-radius: 18px;
  padding: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  cursor:pointer;
  text-align:left;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pdf-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
  border-color: rgba(17,24,39,.18);
}

.pdf-card-left{ display:flex; align-items:center; gap:12px; min-width:0; }
.pdf-icon{
  width:44px; height:44px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:12px; letter-spacing:.08em;
  color:#0b1220;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(240,244,255,.95));
  border:1px solid rgba(17,24,39,.10);
}
.pdf-text{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.pdf-title{
  font-weight:800; font-size:15px; color:#0b1220;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.pdf-sub{
  font-size:13px; color: rgba(11,18,32,.62);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.pdf-open{
  padding:10px 14px; border-radius:999px;
  border:1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.90);
  font-weight:700; font-size:13px; color:#0b1220;
}

/* Modal */
.pdf-modal{ position:fixed; inset:0; z-index:9999; }
.pdf-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(6px);
}
.pdf-shell{
  position:relative;
  width:min(980px, calc(100vw - 28px));
  height:min(78vh, 760px);
  margin:80px auto 0;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.35);
  border-radius:22px;
  overflow:hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  display:flex; flex-direction:column;
}
.pdf-topbar{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:12px 14px;
  border-bottom: 1px solid rgba(11,18,32,.08);
  background: rgba(255,255,255,.85);
}
.pdf-topbar-title{
  font-weight:800; color:#0b1220; max-width:60%;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.pdf-topbar-actions{ display:flex; align-items:center; gap:10px; }
.pdf-btn{
  border:1px solid rgba(11,18,32,.12);
  background: rgba(255,255,255,.92);
  padding:9px 12px;
  border-radius:999px;
  font-weight:700; font-size:13px;
  cursor:pointer; color:#0b1220; text-decoration:none;
}
.pdf-btn.primary{ background:#0b1220; color:#fff; border-color:#0b1220; }
.pdf-x{
  width:36px; height:36px; border-radius:999px;
  border:1px solid rgba(11,18,32,.12);
  background: rgba(255,255,255,.92);
  font-size:20px; cursor:pointer;
}
.pdf-frame-wrap{ flex:1; background:#111; }
.pdf-frame-wrap iframe{ width:100%; height:100%; border:0; background:#fff; }
.pdf-section-title{
  margin: 22px 0 14px;
}

.pdf-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.pdf-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.pdf-left{
  min-width: 0;
}

.pdf-name{
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.pdf-meta{
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.pdf-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

@media (max-width: 640px){
  .pdf-item{
    align-items:flex-start;
    flex-direction: column;
  }
  .pdf-actions{
    width: 100%;
    justify-content:flex-start;
  }
}
.pdf-viewer{
  margin-top: 16px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: var(--shadow);
}

.pdf-viewer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.pdf-viewer-title{
  font-weight: 700;
}

.pdf-viewer-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pdf-viewer-frame{
  width: 100%;
  height: 820px; /* можешь поменять */
  border: 0;
  display:block;
}
.pdf-viewer{
  margin-top: 16px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: var(--shadow);
}

.pdf-viewer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.pdf-viewer-title{
  font-weight: 700;
}

.pdf-viewer-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pdf-viewer-frame{
  width: 100%;
  height: 820px;
  border: 0;
  display:block;
}
.pdf-viewer{
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
}

.pdf-viewer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.02);
}

.pdf-viewer-title{
  font-weight: 700;
  font-size: 14px;
}

.pdf-viewer-frame{
  width: 100%;
  height: 78vh;      /* можно поменять */
  border: 0;
  display:block;
  background: #f7f7f7;
}
